View Full Version : LRF formatter (convert LRFs to your favourable settings)


lionfish
09-13-2008, 03:53 AM
I wrote this program mainly to make vertical oriented (TbRl) LRF Chinese books but most functions can also be used for Western languages. Detailed tooltips are provided in the program so no more description are given here.

As usual, this program use lrf2lrs and then lrs2lrf to make the formatting. The lrs2lrf used is the very old version from Librie. It is really slow-motioned and patience is needed. If you want faster conversion, you can copy Kovid's lrs2lrf.exe (with the necessary libraries altogether) to /lrs2lrf/ but Kovid's version has some bugs treating Chinese.

Mind you this program is only amateur level.

* JRE 5.0 or above is required.
* Not all Lrf can convert to Lrs successfully.
* Not all Lrs can convert to Lrf successfully.

http://img504.imageshack.us/img504/8182/34959662dm2.gif (http://imageshack.us)

Rewrite the code, it works much faster now. Besides you can choose Kovid's lrf2lrs & lrs2lrf.

19/dec/08 add more line space options. Just cover the latest files to odder version.

kovidgoyal
09-13-2008, 04:36 AM
What are TOC Column # and Replace Text for?

lionfish
09-13-2008, 06:05 AM
What are TOC Column # and Replace Text for?
Hi, Kovid.

TOC Column # is only valid when you select vert-oriented. I'd better explain it with a picture.

http://img526.imageshack.us/img526/619/tocvw5.gif (http://imageshack.us)

For vertical-oriented text, if the TOC items are short, there will be a lot of blank space and hence not so good-looking.

Replace text is also mainly for vertical-orientation. Vertical-orientation is achieved by rotating each characters by 270 degree. E.g. a small colon : cannot rotate while a big one :can or a small number 1 cannot while a big 1can. Some punctuation marks have 2 versions (each for one orientation) while some are dual purposed. So, it is necessary to replace those horizontal-oriented punctuation marks with vertical ones in order to make a correct display. The replacement rules are set in C(n).txt files. I think this function is not quite useful for western languages.

JSWolf
09-13-2008, 08:38 AM
How long does this take to finish reformatting an eBook?

lionfish
09-13-2008, 08:50 AM
How long does this take to finish reformatting an eBook?

Hi, JSWolf

For a 300K Lrf book, it takes several minutes. For a 2M book, it might require 10-15 minutes. The old version lrs2lrf.exe works astonishingly slow and most of the time is wasted here.

JSWolf
09-13-2008, 08:57 AM
Would it be possible to change the Line Space to add in 1.0? Thanks!

kovidgoyal
09-13-2008, 01:22 PM
Ah I see, cool.

lionfish
09-14-2008, 01:13 AM
Would it be possible to change the Line Space to add in 1.0? Thanks!

Done.

yekim54
09-14-2008, 12:36 PM
Thanks, this looks like a useful tool.

A minor spelling correction: "Header Seperator" should be "Header Separator".

JSWolf
09-16-2008, 04:36 PM
Done.
Thank you very much! This will make a much more useful tool for me.

lovebeta
10-30-2008, 06:15 PM
Thank you for the cool app.

maxhyl
12-04-2008, 12:32 AM
How to set a bigger line space, ex. 2.00 or more?
The biggest line space number on my Lrf Formatter is 1.20,
any bigger one?

RWood
12-04-2008, 12:52 AM
Great tool. Thank you.

I have found a few non-DRM LRF files that will not convert. What makes a file not convert?

JSWolf
12-12-2008, 10:16 PM
How to set a bigger line space, ex. 2.00 or more?
The biggest line space number on my Lrf Formatter is 1.20,
any bigger one?
Why is it you want such huge space?

lionfish
12-19-2008, 05:53 AM
How to set a bigger line space, ex. 2.00 or more?
The biggest line space number on my Lrf Formatter is 1.20,
any bigger one?

Add more line space options now

lionfish
12-19-2008, 05:57 AM
Great tool. Thank you.

I have found a few non-DRM LRF files that will not convert. What makes a file not convert?

As far as I know, some Lrf creation software such as BBebinder makes Lrf which cannot pass through both Lrf2lrs.

maxhyl
12-21-2008, 07:30 AM
Thank you , it help a lot.
Thank you again.

el.astrologo
03-23-2009, 04:56 PM
What does "swap fonts" do? Does it change the font family?