Thread: PRS-500 lit2lrf.exe
View Single Post
Old 01-06-2007, 08:42 AM   #1
waykohler
Member
waykohler began at the beginning.
 
waykohler's Avatar
 
Posts: 10
Karma: 25
Join Date: Jan 2007
Location: Los Angeles,USA
lit2lrf.exe

Made a command line tool that converts Microsoft reader .lit files to the sony reader .lrf.

I reformat the html inside the .LIT to a layout I like .

Try it out .
It can convert whole directory structures or individual files.

lit2lrf is written in C++ and works as follows.
I use convertlit to extract the html from the lit.
I convert the html to .LRS using my own code.
I compile the LRS to .LRF using lrsparser. LrsParser is faster than lrs2lrf.

It's all done in unicode so non english books should work. But since I dont have anything to test with who knows.

I do not use the DLLs from the Toolbar for LIBRIe. They crash on large html files.

EDIT:
0.2: Hm, that first version was QUITE buggy.

0.3: msvcrt dependencies. I created a new version that is linked with a static libc.

0.4: Vista compability. Also made the tool less verbose.

0.5: Oops, Windows XP compability.

0.6: Support <BR> tag and other minor formating enhancements.

http://www.waykohler.com/lit2lrf/lit2lrf-0.6.zip

Last edited by waykohler; 01-23-2007 at 01:54 AM.
waykohler is offline   Reply With Quote