Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 01-24-2008, 03:12 PM   #1
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: 44,482
Karma: 24495778
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Open source lrs2lrf

version 0.4.34 of libprs500 now has a converter to compile LRS files into LRF files.

Code:
lrs2lrf myfile.lrs
Note that it is preferable to first create an LRF file, then use lrf2lrs on it, rather than using the --lrs option on the libprs500 conversion tools.

Last edited by kovidgoyal; 01-30-2008 at 10:46 PM.
kovidgoyal is offline   Reply With Quote
Old 01-25-2008, 04:16 AM   #2
astra
The Introvert
astra ought to be getting tired of karma fortunes by now.astra ought to be getting tired of karma fortunes by now.astra ought to be getting tired of karma fortunes by now.astra ought to be getting tired of karma fortunes by now.astra ought to be getting tired of karma fortunes by now.astra ought to be getting tired of karma fortunes by now.astra ought to be getting tired of karma fortunes by now.astra ought to be getting tired of karma fortunes by now.astra ought to be getting tired of karma fortunes by now.astra ought to be getting tired of karma fortunes by now.astra ought to be getting tired of karma fortunes by now.
 
astra's Avatar
 
Posts: 8,307
Karma: 1000077497
Join Date: Jan 2007
Location: United Kingdom
Device: Sony Reader PRS-650 & 505 & 500
Does it mean that DRMed LRS files from Sony Connect could be converted into non-DRM LRF files?
astra is offline   Reply With Quote
Advert
Old 01-25-2008, 04:21 AM   #3
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: 44,482
Karma: 24495778
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
No DRMed files are LRX
kovidgoyal is offline   Reply With Quote
Old 01-25-2008, 04:26 AM   #4
astra
The Introvert
astra ought to be getting tired of karma fortunes by now.astra ought to be getting tired of karma fortunes by now.astra ought to be getting tired of karma fortunes by now.astra ought to be getting tired of karma fortunes by now.astra ought to be getting tired of karma fortunes by now.astra ought to be getting tired of karma fortunes by now.astra ought to be getting tired of karma fortunes by now.astra ought to be getting tired of karma fortunes by now.astra ought to be getting tired of karma fortunes by now.astra ought to be getting tired of karma fortunes by now.astra ought to be getting tired of karma fortunes by now.
 
astra's Avatar
 
Posts: 8,307
Karma: 1000077497
Join Date: Jan 2007
Location: United Kingdom
Device: Sony Reader PRS-650 & 505 & 500
Omg, then I am going to ask a very stupid question
What is LRS then?
astra is offline   Reply With Quote
Old 01-25-2008, 10:45 AM   #5
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: 44,482
Karma: 24495778
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
LRS is the open XML format on which LRF is based.
kovidgoyal is offline   Reply With Quote
Advert
Old 01-27-2008, 10:24 AM   #6
FangornUK
Addict
FangornUK has a complete set of Star Wars action figures.FangornUK has a complete set of Star Wars action figures.FangornUK has a complete set of Star Wars action figures.FangornUK has a complete set of Star Wars action figures.
 
FangornUK's Avatar
 
Posts: 205
Karma: 317
Join Date: Oct 2006
Location: England
Device: Sony PRS-505, iPad, Kindle 3
Great stuff kovidgoyal! Tried it with comiclrf but looks like there are quite a few things missing yet, I'll try to log some bug reports.
FangornUK is offline   Reply With Quote
Old 01-27-2008, 02:33 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: 44,482
Karma: 24495778
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Actually, I'm rewriting it, so hold off until the next release.
kovidgoyal is offline   Reply With Quote
Old 01-30-2008, 10:47 PM   #8
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: 44,482
Karma: 24495778
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
version 0.4.35 has a completely re-written implementation that should have far fewer bugs.
kovidgoyal is offline   Reply With Quote
Old 01-31-2008, 09:09 AM   #9
FangornUK
Addict
FangornUK has a complete set of Star Wars action figures.FangornUK has a complete set of Star Wars action figures.FangornUK has a complete set of Star Wars action figures.FangornUK has a complete set of Star Wars action figures.
 
FangornUK's Avatar
 
Posts: 205
Karma: 317
Join Date: Oct 2006
Location: England
Device: Sony PRS-505, iPad, Kindle 3
kovidgoyal, it's looking great. Testing with comiclrf and I haven't found any problems so far.
FangornUK is offline   Reply With Quote
Old 04-11-2008, 08:05 AM   #10
dafire
Member
dafire will become famous soon enoughdafire will become famous soon enoughdafire will become famous soon enoughdafire will become famous soon enoughdafire will become famous soon enoughdafire will become famous soon enough
 
Posts: 20
Karma: 500
Join Date: Mar 2008
Device: PRS505, Kindle DXi
I just want you to thank you for your work with this
dafire is offline   Reply With Quote
Old 04-11-2008, 08:10 AM   #11
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: 44,482
Karma: 24495778
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Glad you find it useful
kovidgoyal is offline   Reply With Quote
Old 07-25-2008, 02:44 AM   #12
lionfish
Connoisseur
lionfish doesn't litterlionfish doesn't litter
 
Posts: 54
Karma: 146
Join Date: Mar 2008
Device: E-Book Reader
Hi Kovid,
I have some Chinese lrf books which I want to modify their font size etc. I used lrf2lrs.exe to convert them successfully into lrs. The lrs file has something like this:

<TextBlock objid="18" blockstyle="138" textstyle="133">
<P> <CR /></P><CR /><P>  脱弦之箭御风疾飞,气势逼人。(....)

You can see there are two big spaces at the beginning of the paragraph which serve as indentation to Chinese text. i.e. lrf2lrs.exe works perfectly.

My problem is that all these spaces disappear after I convert the lrs file back to lrf format by lrs2lrf.exe. Anything I can do to keep these spaces?
lionfish is offline   Reply With Quote
Old 07-25-2008, 03:47 AM   #13
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: 44,482
Karma: 24495778
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Hmm I think this would qualify as a bug in lrs2lrf
kovidgoyal is offline   Reply With Quote
Old 07-25-2008, 09:11 PM   #14
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
Hmm I think this would qualify as a bug in lrs2lrf
So, may I ask if it will be fixed in the near future? THX Kovid
lionfish is offline   Reply With Quote
Old 07-25-2008, 09:17 PM   #15
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: 44,482
Karma: 24495778
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
One can hope But no promises, I have too much on my plate to make firm comittments.
kovidgoyal is offline   Reply With Quote
Reply

Tags
libprs500


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
TomeRaider to go open source MatYadabyte News 27 11-18-2012 12:23 PM
Open source bradrice Kindle Formats 2 12-21-2009 09:30 AM
iRex and Open Source jrial iRex 8 03-03-2009 10:34 AM
Open source LRF viewer kovidgoyal LRF 30 01-18-2009 05:10 AM
TrueCrypt V2.0 Open-Source Alexander Turcic Lounge 1 06-21-2004 02:02 PM


All times are GMT -4. The time now is 07:50 PM.


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