View Single Post
Old 03-10-2011, 01:05 AM   #1
nikev
Connoisseur
nikev began at the beginning.
 
Posts: 53
Karma: 10
Join Date: Sep 2009
Device: PRS 505
Sony epub conversion issues

Hi,

I have been experimenting with customizing some of the eBooks I found in the MR uploads section, but I ran in to some conversion issues going from LRF to epub.

i) It seems that if you run the conversion in Calibre multiple times (eg, didn't like the result the first time), then any extra CSS gets appended multiple times as well. I found this happened specifically with new font declarations -- the HTML files had the same font declarations added again with each conversion. Is this a bug, or is it meant to work this way for some reason?

ii) There seems to be some inconsistency between the way that Calibre interprets HTML and renders the file as compared to how it is rendered by the Sony Reader software and the actual PRS reader. For instance, Calibre seems to put in links (eg in the toc) entries that point to things like

<content src="72.xhtml#196"/>

and the links work but these tags get munged in the Sony interpretation. For some reason clicking on the corresponding link in the Sony rendered table of contents doesn't actually resolve to 72.xhtml#196; it goes somewhere else, in fact in a different file. If I remove the #196 and just point to 72.xhtml, all works well. Is there some way to make Calibre render the same way Sony does?

Thanks in advance,

Nike
nikev is offline   Reply With Quote