![]() |
#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 05:52 AM. Reason: upload a newer version |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,300
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
What are TOC Column # and Replace Text for?
|
![]() |
![]() |
Advert | |
|
![]() |
#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. |
![]() |
![]() |
![]() |
#4 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 75,769
Karma: 134321338
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?
|
![]() |
![]() |
![]() |
#5 |
Connoisseur
![]() ![]() Posts: 54
Karma: 146
Join Date: Mar 2008
Device: E-Book Reader
|
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 75,769
Karma: 134321338
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!
|
![]() |
![]() |
![]() |
#7 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,300
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Ah I see, cool.
|
![]() |
![]() |
![]() |
#8 |
Connoisseur
![]() ![]() Posts: 54
Karma: 146
Join Date: Mar 2008
Device: E-Book Reader
|
|
![]() |
![]() |
![]() |
#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". |
![]() |
![]() |
![]() |
#10 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 75,769
Karma: 134321338
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
![]() |
![]() |
![]() |
#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 |
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? |
![]() |
![]() |
![]() |
#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? |
![]() |
![]() |
![]() |
#14 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 75,769
Karma: 134321338
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
![]() |
![]() |
![]() |
#15 |
Connoisseur
![]() ![]() Posts: 54
Karma: 146
Join Date: Mar 2008
Device: E-Book Reader
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
ePub to lrf via Calibre: best settings? | Shadowjack | LRF | 2 | 07-24-2010 12:46 PM |
Making a TOC for LRFs? Issues with Calibre + LRF TOC editor not working | Magitek | LRF | 0 | 05-06-2009 01:25 PM |
Best Calibre settings to convert Math/Physics textbooks in PDF to LRF? | Cpfoxhunt | Workshop | 1 | 12-01-2008 03:28 PM |
They fixed the Program to convert .LRFs to other formats! | JGB | LRF | 11 | 11-25-2008 06:50 PM |
Best Default LRF Conversion Settings? | Amalthia | Calibre | 0 | 09-08-2008 02:18 PM |