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

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 12-29-2008, 05:05 AM   #1
carpii
Enthusiast
carpii began at the beginning.
 
Posts: 38
Karma: 16
Join Date: Nov 2008
Device: Iliad or Sony
Reconvert lrf to lrf

Is there a way I can reconvert an lrf book.
I want it in lrf format, but I want to repaginate it using my own font and margin settings

Thanks
carpii is offline   Reply With Quote
Old 12-29-2008, 03:36 PM   #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: 26,458
Karma: 5383257
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
search for lrftools or use lrf2lrs + lrs2lrf from calibre
kovidgoyal is offline   Reply With Quote
 
Advertisement
Old 12-29-2008, 04:15 PM   #3
Amalthia
Guru
Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.
 
Amalthia's Avatar
 
Posts: 951
Karma: 1960
Join Date: Jan 2007
Location: Anchorage, AK
Device: Sony Reader PRS-505, PRS-650
Quote:
Originally Posted by kovidgoyal View Post
search for lrftools or use lrf2lrs + lrs2lrf from calibre

is the LRF2LRS a command line tool? if so what do we type in? And what directory do we need to be in? Or is all this information in the manual?
Amalthia is offline   Reply With Quote
Old 12-29-2008, 04:51 PM   #4
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: 26,458
Karma: 5383257
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Command line

lrf2lrs myfile.lrf

lrs2lrf myfile.lrs
kovidgoyal is offline   Reply With Quote
Old 12-29-2008, 07:48 PM   #5
Amalthia
Guru
Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.
 
Amalthia's Avatar
 
Posts: 951
Karma: 1960
Join Date: Jan 2007
Location: Anchorage, AK
Device: Sony Reader PRS-505, PRS-650
Quote:
Originally Posted by kovidgoyal View Post
Command line

lrf2lrs myfile.lrf

lrs2lrf myfile.lrs
thanks! this helps a lot. Are you able to change font size using this tool?
Amalthia is offline   Reply With Quote
Old 12-30-2008, 05:28 PM   #6
ShellShock
Guru
ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.
 
ShellShock's Avatar
 
Posts: 986
Karma: 2199790
Join Date: Sep 2008
Device: IPad Mini Retina, Kobo Aura HD
Quote:
Originally Posted by Amalthia View Post
thanks! this helps a lot. Are you able to change font size using this tool?
lrf2lrs creates an LRS file, which is in xml format--that is, you can edit it using a text editor. If you are reasonably confident with xml it is possible to manually edit the xml to change margins and font sizes. You can then use lrs2lrf to convert your edited LRS file back to LRF.

There a number of tools like lrftools which do something similar automatically. They tend to use lrf2lrs and lrs2lrf under the covers. Because they did not do exactly what I wanted I ended up programming my own--this is just a question of writing some code to tweak the xml before calling lrs2lrf to convert back to an LRF.

One thing to note--lrs2lrf is not perfect. The resulting LRF is not exactly the same as the original LRF, even if you do not make any changes to the intermediate LRS file. For example, any page headers are lost by lrs2lrf.

Last edited by ShellShock; 12-30-2008 at 05:30 PM.
ShellShock is offline   Reply With Quote
Old 12-30-2008, 06:02 PM   #7
Amalthia
Guru
Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.
 
Amalthia's Avatar
 
Posts: 951
Karma: 1960
Join Date: Jan 2007
Location: Anchorage, AK
Device: Sony Reader PRS-505, PRS-650
Quote:
Originally Posted by ShellShock View Post
lrf2lrs creates an LRS file, which is in xml format--that is, you can edit it using a text editor. If you are reasonably confident with xml it is possible to manually edit the xml to change margins and font sizes. You can then use lrs2lrf to convert your edited LRS file back to LRF.

There a number of tools like lrftools which do something similar automatically. They tend to use lrf2lrs and lrs2lrf under the covers. Because they did not do exactly what I wanted I ended up programming my own--this is just a question of writing some code to tweak the xml before calling lrs2lrf to convert back to an LRF.

One thing to note--lrs2lrf is not perfect. The resulting LRF is not exactly the same as the original LRF, even if you do not make any changes to the intermediate LRS file. For example, any page headers are lost by lrs2lrf.
thanks for the warning about page headers. I'm beginning to think it'll just be easier to re-create the LRF file with the PRC copy I have. Except I can't get the PRC file to open in Book Designer in order to fix things (like removing the crap cover they inserted) And when I try converting in Calibre I end up with both covers. Except one is super tiny for some reason.
Amalthia is offline   Reply With Quote
Old 12-30-2008, 06:50 PM   #8
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: 38,747
Karma: 19643753
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Aura H2O, Sony PRS-650, Sony PRS-T1, nook STR, iPad 1, iPhone 5
Quote:
Originally Posted by Amalthia View Post
thanks for the warning about page headers. I'm beginning to think it'll just be easier to re-create the LRF file with the PRC copy I have. Except I can't get the PRC file to open in Book Designer in order to fix things (like removing the crap cover they inserted) And when I try converting in Calibre I end up with both covers. Except one is super tiny for some reason.
Use mobi2oeb to convert the PRC to HTML and then load the HTML into Book Designer and format/edit from there.
JSWolf is offline   Reply With Quote
Old 12-30-2008, 09:47 PM   #9
Amalthia
Guru
Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.
 
Amalthia's Avatar
 
Posts: 951
Karma: 1960
Join Date: Jan 2007
Location: Anchorage, AK
Device: Sony Reader PRS-505, PRS-650
Quote:
Originally Posted by JSWolf View Post
Use mobi2oeb to convert the PRC to HTML and then load the HTML into Book Designer and format/edit from there.
Is this in Calibre or a seperate tool?

Thanks so much for helping!
Amalthia is offline   Reply With Quote
Old 12-31-2008, 12:17 AM   #10
Amalthia
Guru
Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.
 
Amalthia's Avatar
 
Posts: 951
Karma: 1960
Join Date: Jan 2007
Location: Anchorage, AK
Device: Sony Reader PRS-505, PRS-650
I think I spoke too soon. I'm in my c directory in the command prompt window but the commands aren't doing anything. I get a message saying command is not recognized.

So where exactly do I run this command line thing at???? I'm not a programmer. And the tutorial doesn't say.

edit: figured it out! apparently I had a typo that made the line not work.

Last edited by Amalthia; 12-31-2008 at 12:36 AM.
Amalthia 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
Pissed off with LRF formatting: LRF/LRS clean tool? grimborg LRF 8 02-15-2010 02:14 PM
CBZ > LRF (LRF>HTML/MOBI????) sideburnt Calibre 4 09-15-2009 07:44 AM
rtf to lrf, is it possible to have images on lrf? sergiodongala Calibre 2 01-12-2009 08:23 PM
libprs500 Issues Converting .LIT to .LRF - .LRF crashes everything vasbinde Calibre 6 02-14-2008 01:16 PM
LRF Reader dboyd Reading and Management 2 07-28-2007 11:42 AM


All times are GMT -4. The time now is 02:03 PM.


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