View Single Post
Old 04-13-2009, 06:56 AM   #18
user_none
Sigil & calibre developer
user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.
 
user_none's Avatar
 
Posts: 2,487
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
Quote:
Originally Posted by ldolse
That was why I originally added the check for 85 characters to the second expression. That way only lines which are approaching the length of the entire page are wrapped, as they would likely have been wrapped anyway.
The only thing I worry with this is it assumes the source pdf is an 8.5x11 page and the font is a certain size (12 point I'm assuming). Do you have any ideas for cases such as a pdf sized for an e-reader? The Cybook's page size would be 3.5x4.7 inches.

Quote:
Originally Posted by ldolse
Here are the latest changes, and this creates the cleanest looking results yet
I'll merge them soon.
user_none is offline   Reply With Quote