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 02-15-2008, 09:29 AM   #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: 25,416
Karma: 4961459
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
mobi2lrf

After an 8-hour hackathon I'm happy to announce mobi2lrf. Converts (non DRMed) .mobi/.prc files to LRF. Supports all three levels of compression in .mobi files. Also converts metadata. Part of libprs500 v0.4.37. It's integrated into the GUI as well as a commandline tool, so using it is just as easy as using the rest of libprs500.

This is an initial release, so it likely is crawling with bugs. Thanks to darkninja for the HUFF/CDIC decompression code.
kovidgoyal is offline   Reply With Quote
Old 02-15-2008, 09:53 AM   #2
igorsk
Wizard
igorsk reads XML... blindfoldedigorsk reads XML... blindfoldedigorsk reads XML... blindfoldedigorsk reads XML... blindfoldedigorsk reads XML... blindfoldedigorsk reads XML... blindfoldedigorsk reads XML... blindfoldedigorsk reads XML... blindfoldedigorsk reads XML... blindfoldedigorsk reads XML... blindfoldedigorsk reads XML... blindfolded
 
Posts: 3,443
Karma: 52235
Join Date: Sep 2006
Location: Belgium
Device: PRS-500/505/700, Kindle, Cybook Gen3, Words Gear
Awesome!
igorsk is offline   Reply With Quote
 
Enthusiast
Old 02-15-2008, 09:57 AM   #3
AnemicOak
Bookaholic
AnemicOak ought to be getting tired of karma fortunes by now.AnemicOak ought to be getting tired of karma fortunes by now.AnemicOak ought to be getting tired of karma fortunes by now.AnemicOak ought to be getting tired of karma fortunes by now.AnemicOak ought to be getting tired of karma fortunes by now.AnemicOak ought to be getting tired of karma fortunes by now.AnemicOak ought to be getting tired of karma fortunes by now.AnemicOak ought to be getting tired of karma fortunes by now.AnemicOak ought to be getting tired of karma fortunes by now.AnemicOak ought to be getting tired of karma fortunes by now.AnemicOak ought to be getting tired of karma fortunes by now.
 
AnemicOak's Avatar
 
Posts: 10,023
Karma: 28126419
Join Date: Oct 2007
Location: Minnesota
Device: HDX 8.9, AuraHD, Nook HD+, Kindle 2,3,T , Opus, Nexus7, iPhone5, etc
This is great, thanks Kovid.
AnemicOak is offline   Reply With Quote
Old 02-15-2008, 10:14 AM   #4
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 62,694
Karma: 40373079
Join Date: Nov 2006
Location: UK
Device: PW2, iPad Retina Mini, iPhone 4, MS Surface Pro, Onyx T68, N7,
Jolly good show!
HarryT is online now   Reply With Quote
Old 02-15-2008, 03:41 PM   #5
Minigal
Junior Member
Minigal began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Jan 2008
Device: PRS-505
Thanks!
Minigal is offline   Reply With Quote
Old 02-15-2008, 07:01 PM   #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: 36,197
Karma: 17169472
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad, nook STR
I just took a look at the changelog. Very impressive!
JSWolf is online now   Reply With Quote
Old 02-15-2008, 08:21 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: 25,416
Karma: 4961459
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Thanks
kovidgoyal is offline   Reply With Quote
Old 02-15-2008, 10:20 PM   #8
Ervserver
Wizard
Ervserver ought to be getting tired of karma fortunes by now.Ervserver ought to be getting tired of karma fortunes by now.Ervserver ought to be getting tired of karma fortunes by now.Ervserver ought to be getting tired of karma fortunes by now.Ervserver ought to be getting tired of karma fortunes by now.Ervserver ought to be getting tired of karma fortunes by now.Ervserver ought to be getting tired of karma fortunes by now.Ervserver ought to be getting tired of karma fortunes by now.Ervserver ought to be getting tired of karma fortunes by now.Ervserver ought to be getting tired of karma fortunes by now.Ervserver ought to be getting tired of karma fortunes by now.
 
Ervserver's Avatar
 
Posts: 2,625
Karma: 1008294
Join Date: Dec 2007
Location: Iowa, USA
Device: Nook Simple Touch
Good stuff, converted 2 books thus far. Didn't notice any bugs
Ervserver is offline   Reply With Quote
Old 02-18-2008, 07:19 PM   #9
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
Thanks so much. It is a god send for us with both Kindle & PRS.

I tried with one of my mobi file and it seemed that the ToC identification/generation was not working.
lovebeta is offline   Reply With Quote
Old 02-18-2008, 07:23 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: 36,197
Karma: 17169472
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad, nook STR
I'm going to grab a few mobi format eBooks from the library and try mobi2lrf to test it out.
JSWolf is online now   Reply With Quote
Old 02-18-2008, 08:23 PM   #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: 25,416
Karma: 4961459
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Yeah the mobi files probably use special markup for the TOC. If someone can send me a few samples I can fix that.
kovidgoyal is offline   Reply With Quote
Old 02-18-2008, 09:57 PM   #12
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: 36,197
Karma: 17169472
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad, nook STR
I'll dig up a few Mobi files and send them your way tomorrow.
JSWolf is online now   Reply With Quote
Old 02-23-2008, 12:42 PM   #13
sindget41
Fanfic Idiot
sindget41 began at the beginning.
 
sindget41's Avatar
 
Posts: 19
Karma: 11
Join Date: Jul 2007
Location: Park City, Utah
Device: Sony PRS 500, PRS 505, PRS 300, iTouch
HI Kovid: I am so happy to see you getting around to MOBI PRC's... I tested the program this morning and found that it has problems with all my MOBI files (all non-DRM'ed from a single source in .NL)

Here's the error messages:

IndexError: string index out of range
Failed to perform job: Convert book:This_Means_War
Detailed traceback:
Traceback (most recent call last):
File "parallel.py", line 95, in run_job
File "libprs500\ebooks\lrf\any\convert_from.pyo", line 166, in main
File "libprs500\ebooks\lrf\any\convert_from.pyo", line 143, in process_file
File "libprs500\ebooks\lrf\mobi\convert_from.pyo", line 40, in process_file
File "libprs500\ebooks\lrf\mobi\convert_from.pyo", line 29, in generate_html
File "libprs500\ebooks\mobi\reader.pyo", line 168, in extract_content
File "libprs500\ebooks\mobi\reader.pyo", line 213, in extract_text
File "libprs500\ebooks\mobi\huffcdic.pyo", line 123, in decompress
File "libprs500\ebooks\mobi\huffcdic.pyo", line 116, in sizeof_trailing_entries
File "libprs500\ebooks\mobi\huffcdic.pyo", line 104, in sizeof_trailing_entry
IndexError: string index out of range

I hope you can fix it -- as I have 3GB of MOBI files I would like to convert!
Thanks for ALL your efforts!
sindget41 is offline   Reply With Quote
Old 02-23-2008, 12:56 PM   #14
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: 25,416
Karma: 4961459
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Send me one of these files.
kovidgoyal is offline   Reply With Quote
Old 02-24-2008, 02:08 PM   #15
sindget41
Fanfic Idiot
sindget41 began at the beginning.
 
sindget41's Avatar
 
Posts: 19
Karma: 11
Join Date: Jul 2007
Location: Park City, Utah
Device: Sony PRS 500, PRS 505, PRS 300, iTouch
MOBI file from FanFic site

Kovid:

Thanks for the reply! Here's a random PRC file from this site in .NL that converts fanfic into PRC format for the palm. I have about 1200 of these files!
408.prc

-- Bob
sindget41 is offline   Reply With Quote
Reply

Tags
libprs500, mobi2lrf

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump


All times are GMT -4. The time now is 10:35 AM.


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