View Single Post
Old 01-23-2007, 06:29 AM   #19
kacir
Wizard
kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.
 
kacir's Avatar
 
Posts: 3,463
Karma: 10684861
Join Date: May 2006
Device: PocketBook 360, before it was Sony Reader, cassiopeia A-20
Quote:
Originally Posted by CommanderROR
I have just sent a file to staretek to demonstrate what we don't like about the .stk format.
Enjoy!
Well, it looks as if word wrapping of the text is broken somehow. It doesn't break the text properly when when dot, coma, ' character and other "non-alphanumerics characters" are on the position after the last letter on the line. Also spaces are not wrapped properly.

This is fortunately very, very easy to correct when you are creating your own .stk files.

Simply format the text, so the lines are wrapped at the 44th character and then create .stk file.
Of course you will have create a text pre-formated width for each font size. Because the font is monospaced this can work very well.

For wrapping the text to fixed length you can use many UNIX tools, and also numerous Windows utilities, from fancy text editors to simple programs.

One of the best tools for formating the text is program par
http://jmcpherson.org/par.html
Example of use of the par program.
par.exe -w44 < alice30.txt > formatted.txt
Please read the documentation at
http://www.nicemice.net/par/par-doc.var
and download the windows version at
http://www.nicemice.net/par/par152ex.zip
kacir is offline   Reply With Quote