View Single Post
Old 01-04-2007, 12:45 PM   #8
mogui
eNigma
mogui is no ebook tyro.mogui is no ebook tyro.mogui is no ebook tyro.mogui is no ebook tyro.mogui is no ebook tyro.mogui is no ebook tyro.mogui is no ebook tyro.mogui is no ebook tyro.mogui is no ebook tyro.mogui is no ebook tyro.
 
mogui's Avatar
 
Posts: 503
Karma: 1335
Join Date: Dec 2006
Location: The Philippines
Device: HTC G1 Android FBReader
Wink Reformatting the text to fit

Quote:
Originally Posted by mogui
. . . but the reader itself has a flaw. Word wrap doesn't take place on word boundaries so words are often chopped in two across lines.
As I said in an earlier post, this MP4 player cum reader does not break the words on word boundaries. I actually got used to this, but not being able to leave well enough alone, I tried to fix it.

My first attempt was to build a web page and use javascript to format the text. This worked well except for being way too slow. To format a book of about 750K it would have taken . . . Well, I am ashamed to say. I did not let it run to completion. Someday I will install a C compiler.

I needed to reformat a few books quickly so I pulled them into my pfe (freeware, downloadable) programmer's editor, selected all the text, and told it to format it all to a 24 character line. This worked quickly and flawlessly.

Last edited by mogui; 01-05-2007 at 10:59 PM.
mogui is offline   Reply With Quote