Thread: EPUB output
View Single Post
Old 07-24-2010, 02:05 PM   #745
jayman
Enthusiast
jayman began at the beginning.
 
Posts: 33
Karma: 10
Join Date: Dec 2009
Device: iphone
Quote:
Originally Posted by nrapallo View Post
If the right margin on the ebook reader is NOT honoured, then it's a bug!



Another mode of attack would be to change the font to a fixed point and be as small as is legible, so as to fit the max. amount of line text on the screen before it runs off. If the original .chm had a finite length (which is common for letter-sized pages) then perhaps this approach may work. In my reader, I would simply use:
Code:
<pre style="font-family: smallfont; font-size: xx-small">...</pre>
and the text would appear like this Attachment 55624.

Within .epub files, that syntax may have to be change to something like
Code:
<pre style="font-family: courier; font-size: 1">...</pre>
If this doesn't work, then cropping the lines or reflowing them would be the only alternative (other than getting a large screened ebook reader... ). That's why you would need to remove the <pre> tags, reflow the text using <p> tags and then manually breaking each line with <br /> to avoid them running into each other.

Any way you do it, if the original (e)book was not formatted for small screened ebook readers, then doing so afterward will NOT yield good results! That's why I avoid .pdf ebooks at all cost even though they are wonderfully presented and visually stunning most of the time; substance over form?
Thanks for the suggestion. Will try it when I get home. Thanks again.
jayman is offline   Reply With Quote