09-13-2008, 04:53 AM | #1 |
Connoisseur
Posts: 54
Karma: 146
Join Date: Mar 2008
Device: E-Book Reader
|
LRF formatter (convert LRFs to your favourite settings)
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. 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. Last edited by lionfish; 12-19-2008 at 06:52 AM. Reason: upload a newer version |
09-13-2008, 05:36 AM | #2 |
creator of calibre
Posts: 44,566
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
What are TOC Column # and Replace Text for?
|
Advert | |
|
09-13-2008, 07:05 AM | #3 |
Connoisseur
Posts: 54
Karma: 146
Join Date: Mar 2008
Device: E-Book Reader
|
Hi, Kovid.
TOC Column # is only valid when you select vert-oriented. I'd better explain it with a picture. 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. |
09-13-2008, 09:38 AM | #4 |
Resident Curmudgeon
Posts: 76,495
Karma: 136564766
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
How long does this take to finish reformatting an eBook?
|
09-13-2008, 09:50 AM | #5 |
Connoisseur
Posts: 54
Karma: 146
Join Date: Mar 2008
Device: E-Book Reader
|
|
Advert | |
|
09-13-2008, 09:57 AM | #6 |
Resident Curmudgeon
Posts: 76,495
Karma: 136564766
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Would it be possible to change the Line Space to add in 1.0? Thanks!
|
09-13-2008, 02:22 PM | #7 |
creator of calibre
Posts: 44,566
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Ah I see, cool.
|
09-14-2008, 02:13 AM | #8 |
Connoisseur
Posts: 54
Karma: 146
Join Date: Mar 2008
Device: E-Book Reader
|
|
09-14-2008, 01:36 PM | #9 |
What the Dog Saw
Posts: 311
Karma: 981684
Join Date: Jul 2008
Location: Dunn Loring
Device: Sony PRS-650, Surface3
|
Thanks, this looks like a useful tool.
A minor spelling correction: "Header Seperator" should be "Header Separator". |
09-16-2008, 05:36 PM | #10 |
Resident Curmudgeon
Posts: 76,495
Karma: 136564766
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
10-30-2008, 07:15 PM | #11 |
Groupie
Posts: 176
Karma: 406
Join Date: Jan 2008
Device: Amazon Kindle 2, Amazon Kindle, Sony PRS-505
|
Thank you for the cool app.
|
12-04-2008, 01:32 AM | #12 |
Member
Posts: 20
Karma: 10
Join Date: Nov 2008
Device: iLiad 2nd
|
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? |
12-04-2008, 01:52 AM | #13 |
Technogeezer
Posts: 7,233
Karma: 1601464
Join Date: Nov 2006
Location: Virginia, USA
Device: Sony PRS-500
|
Great tool. Thank you.
I have found a few non-DRM LRF files that will not convert. What makes a file not convert? |
12-12-2008, 11:16 PM | #14 |
Resident Curmudgeon
Posts: 76,495
Karma: 136564766
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
12-19-2008, 06:53 AM | #15 |
Connoisseur
Posts: 54
Karma: 146
Join Date: Mar 2008
Device: E-Book Reader
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
ePub to lrf via Calibre: best settings? | Shadowjack | LRF | 2 | 07-24-2010 01:46 PM |
Making a TOC for LRFs? Issues with Calibre + LRF TOC editor not working | Magitek | LRF | 0 | 05-06-2009 02:25 PM |
Best Calibre settings to convert Math/Physics textbooks in PDF to LRF? | Cpfoxhunt | Workshop | 1 | 12-01-2008 04:28 PM |
They fixed the Program to convert .LRFs to other formats! | JGB | LRF | 11 | 11-25-2008 07:50 PM |
Best Default LRF Conversion Settings? | Amalthia | Calibre | 0 | 09-08-2008 03:18 PM |