Fixing italics in Calibre EPUB output
- unzip ebook.epub -d tmpbook
- cd tmpbook
perl -i.bak -pe 's/([\s-,.;\'?:]+)\/(.+?)\/([\s-,.;\'?:]+)/$1<i>$2<\/i>$3/sg;' *html- That will create.bak files just in case anything went wrong. To revert the changes, do this:
for i in *.bak; do mv $i ${i%.bak}; done zip -r ebook.zip * && mv ebook.zip ebook.epub
Then, I found out Calibre works beautifully with the Nook, so I just popped it on there and it worked.

