02-15-2008, 10:29 AM | #1 |
creator of calibre
Posts: 44,530
Karma: 24495948
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. |
02-15-2008, 10:53 AM | #2 |
Wizard
Posts: 3,442
Karma: 300001
Join Date: Sep 2006
Location: Belgium
Device: PRS-500/505/700, Kindle, Cybook Gen3, Words Gear
|
Awesome!
|
Advert | |
|
02-15-2008, 10:57 AM | #3 |
Bookaholic
Posts: 14,391
Karma: 54969924
Join Date: Oct 2007
Location: Minnesota
Device: iPad Mini 4, AuraHD, iPhone XR +
|
This is great, thanks Kovid.
|
02-15-2008, 11:14 AM | #4 |
eBook Enthusiast
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
Jolly good show!
|
02-15-2008, 04:41 PM | #5 |
Junior Member
Posts: 1
Karma: 10
Join Date: Jan 2008
Device: PRS-505
|
Thanks!
|
Advert | |
|
02-15-2008, 08:01 PM | #6 |
Resident Curmudgeon
Posts: 76,370
Karma: 136466962
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
I just took a look at the changelog. Very impressive!
|
02-15-2008, 09:21 PM | #7 |
creator of calibre
Posts: 44,530
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Thanks
|
02-15-2008, 11:20 PM | #8 |
Wizard
Posts: 2,624
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
|
02-18-2008, 08:19 PM | #9 |
Groupie
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. |
02-18-2008, 08:23 PM | #10 |
Resident Curmudgeon
Posts: 76,370
Karma: 136466962
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
I'm going to grab a few mobi format eBooks from the library and try mobi2lrf to test it out.
|
02-18-2008, 09:23 PM | #11 |
creator of calibre
Posts: 44,530
Karma: 24495948
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.
|
02-18-2008, 10:57 PM | #12 |
Resident Curmudgeon
Posts: 76,370
Karma: 136466962
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
I'll dig up a few Mobi files and send them your way tomorrow.
|
02-23-2008, 01:42 PM | #13 |
Fanfic Idiot
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! |
02-23-2008, 01:56 PM | #14 |
creator of calibre
Posts: 44,530
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Send me one of these files.
|
02-24-2008, 03:08 PM | #15 |
Fanfic Idiot
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 |
Tags |
libprs500, mobi2lrf |
|