Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Formats > Other formats > LRF

Notices

Reply
 
Thread Tools Search this Thread
Old 09-13-2008, 03:53 AM   #1
lionfish
Connoisseur
lionfish doesn't litterlionfish doesn't litter
 
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.
Attached Files
File Type: rar Lrf Formatter.part2.rar (14.00 MB, 2117 views)
File Type: rar Lrf Formatter.part3.rar (5.87 MB, 1943 views)
File Type: rar Lrf Formatter.part1.rar (14.00 MB, 2144 views)
File Type: rar Lrf Formatter.rar (66.8 KB, 1826 views)

Last edited by lionfish; 12-19-2008 at 05:52 AM. Reason: upload a newer version
lionfish is offline   Reply With Quote
Old 09-13-2008, 04:36 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,744
Karma: 22446736
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
What are TOC Column # and Replace Text for?
kovidgoyal is offline   Reply With Quote
Old 09-13-2008, 06:05 AM   #3
lionfish
Connoisseur
lionfish doesn't litterlionfish doesn't litter
 
Posts: 54
Karma: 146
Join Date: Mar 2008
Device: E-Book Reader
Quote:
Originally Posted by kovidgoyal View Post
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.



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.
lionfish is offline   Reply With Quote
Old 09-13-2008, 08:38 AM   #4
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,510
Karma: 126422064
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?
JSWolf is offline   Reply With Quote
Old 09-13-2008, 08:50 AM   #5
lionfish
Connoisseur
lionfish doesn't litterlionfish doesn't litter
 
Posts: 54
Karma: 146
Join Date: Mar 2008
Device: E-Book Reader
Quote:
Originally Posted by JSWolf View Post
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.
lionfish is offline   Reply With Quote
Old 09-13-2008, 08:57 AM   #6
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,510
Karma: 126422064
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!
JSWolf is offline   Reply With Quote
Old 09-13-2008, 01:22 PM   #7
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,744
Karma: 22446736
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Ah I see, cool.
kovidgoyal is offline   Reply With Quote
Old 09-14-2008, 01:13 AM   #8
lionfish
Connoisseur
lionfish doesn't litterlionfish doesn't litter
 
Posts: 54
Karma: 146
Join Date: Mar 2008
Device: E-Book Reader
Quote:
Originally Posted by JSWolf View Post
Would it be possible to change the Line Space to add in 1.0? Thanks!
Done.
lionfish is offline   Reply With Quote
Old 09-14-2008, 12:36 PM   #9
yekim54
What the Dog Saw
yekim54 ought to be getting tired of karma fortunes by now.yekim54 ought to be getting tired of karma fortunes by now.yekim54 ought to be getting tired of karma fortunes by now.yekim54 ought to be getting tired of karma fortunes by now.yekim54 ought to be getting tired of karma fortunes by now.yekim54 ought to be getting tired of karma fortunes by now.yekim54 ought to be getting tired of karma fortunes by now.yekim54 ought to be getting tired of karma fortunes by now.yekim54 ought to be getting tired of karma fortunes by now.yekim54 ought to be getting tired of karma fortunes by now.yekim54 ought to be getting tired of karma fortunes by now.
 
yekim54's Avatar
 
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".
yekim54 is offline   Reply With Quote
Old 09-16-2008, 04:36 PM   #10
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,510
Karma: 126422064
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by lionfish View Post
Done.
Thank you very much! This will make a much more useful tool for me.
JSWolf is offline   Reply With Quote
Old 10-30-2008, 06:15 PM   #11
lovebeta
Groupie
lovebeta has a complete set of Star Wars action figures.lovebeta has a complete set of Star Wars action figures.lovebeta has a complete set of Star Wars action figures.lovebeta has a complete set of Star Wars action figures.lovebeta has a complete set of Star Wars action figures.
 
Posts: 176
Karma: 406
Join Date: Jan 2008
Device: Amazon Kindle 2, Amazon Kindle, Sony PRS-505
Thank you for the cool app.
lovebeta is offline   Reply With Quote
Old 12-04-2008, 12:32 AM   #12
maxhyl
Member
maxhyl began at the beginning.
 
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?
maxhyl is offline   Reply With Quote
Old 12-04-2008, 12:52 AM   #13
RWood
Technogeezer
RWood ought to be getting tired of karma fortunes by now.RWood ought to be getting tired of karma fortunes by now.RWood ought to be getting tired of karma fortunes by now.RWood ought to be getting tired of karma fortunes by now.RWood ought to be getting tired of karma fortunes by now.RWood ought to be getting tired of karma fortunes by now.RWood ought to be getting tired of karma fortunes by now.RWood ought to be getting tired of karma fortunes by now.RWood ought to be getting tired of karma fortunes by now.RWood ought to be getting tired of karma fortunes by now.RWood ought to be getting tired of karma fortunes by now.
 
RWood's Avatar
 
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?
RWood is offline   Reply With Quote
Old 12-12-2008, 10:16 PM   #14
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,510
Karma: 126422064
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by maxhyl View Post
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?
JSWolf is offline   Reply With Quote
Old 12-19-2008, 05:53 AM   #15
lionfish
Connoisseur
lionfish doesn't litterlionfish doesn't litter
 
Posts: 54
Karma: 146
Join Date: Mar 2008
Device: E-Book Reader
Quote:
Originally Posted by maxhyl View Post
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 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 03:50 AM.


MobileRead.com is a privately owned, operated and funded community.