Mobileread
mobi2oeb
#1  kovidgoyal 02-15-2008, 09:34 AM
After an 8-hour hackathon I'm happy to announce mobi2oeb. Converts (non DRMed) .mobi/.prc files to an exploded OEBPS ebook. Supports all three levels of compression in .mobi files. Part of libprs500 v0.4.37. To use

Code
mobi2oeb book.mobi
This is an initial release, so expect bugs. Thanks to darkninja for the HUFF/CDIC decompression code.
Reply 

#2  HarryT 02-15-2008, 09:55 AM
Great! Thanks, Kovid; this will make it very easy to edit a MobiPocket book. Use your tool to explode to OEB, make the edits, then use Mobi Creator to rebuild it.
Reply 

#3  Ortep 02-16-2008, 09:25 AM
Quote kovidgoyal
After an 8-hour hackathon I'm happy to announce mobi2oeb. Converts (non DRMed) .mobi/.prc files to an exploded OEBPS ebook. Supports all three levels of compression in .mobi files. Part of libprs500 v0.4.37.


Sounds great, But look what I got when I clicked on the link:

Code
There is a problem with this website's security certificate. The security certificate presented by this website was not issued by a trusted certificate authority.
Security certificate problems may indicate an attempt to fool you or intercept any data you send to the server. We recommend that you close this webpage and do not continue to this website. Click here to close this webpage. Continue to this website (not recommended). More information
If you arrived at this page by clicking a link, check the website address in the address bar to be sure that it is the address you were expecting.
When going to a website with an address such as https://example.com, try adding the 'www' to the address, https://www.example.com.
If you choose to ignore this error and continue, do not enter private information into the website.
For more information, see "Certificate Errors" in Internet Explorer Help.
Reply 

#4  Nate the great 02-16-2008, 09:40 AM
That's because he doesn't have the money to pay for a security certificate. His site has alway been that way. I just checked again; his site is still there. I canvouch for him.
Reply 

#5  Ortep 02-16-2008, 10:13 AM
Ok, thanks

We can't be to carefull these days
Reply 

#6  FixB 02-16-2008, 10:30 AM
Thanks kovidgoyal !
Once again, your work helps us all so much !!
Reply 

#7  nrapallo 02-17-2008, 01:02 AM
Quote kovidgoyal
After an 8-hour hackathon I'm happy to announce mobi2oeb. Converts (non DRMed) .mobi/.prc files to an exploded OEBPS ebook. Supports all three levels of compression in .mobi files. Part of libprs500 v0.4.37. To use

Code
mobi2oeb book.mobi
This is an initial release, so expect bugs. Thanks to darkninja for the HUFF/CDIC decompression code.
I used my 'mobi2imp' (version 5) to output 'SpaceEncyclopedia.mobi' into OEBFF (.oeb) output. I use:
Code
mobi2imp --oeb 'SpaceEncyclopedia.mobi' Space
Can you check it against the output of mobi2oeb? Can you load my .oeb in mobicreator or use it with libprs500 utils?

Our (ebook format) worlds are crossing...

-Nick
[zip] Mobipocket - Space Encyclopedia-oeb.zip (689.4 KB, 1909 views)
Reply 

#8  kovidgoyal 02-17-2008, 11:03 AM
There are really only a handful of things to do in mobi->oeb conversion so I see no reason why your OEB output should be wrong. THey are
1) Read metadata from the EXTH header to create the .opf file
2) Decompress the text using the three possible compression chemes
3) Replace the filepos attributes
4) Replace the mobi specific tags like <mbpagebreak>
5) Extract the images and replace the <img recindex> tags

At the moment, the only not fullly implemented step is 4). The only mobi specific markup that mobi2oeb replaces is <mbpagebreak>
Reply 

#9  nrapallo 02-17-2008, 11:37 AM
Quote kovidgoyal
There are really only a handful of things to do in mobi->oeb conversion so I see no reason why your OEB output should be wrong. THey are
1) Read metadata from the EXTH header to create the .opf file
2) Decompress the text using the three possible compression chemes
3) Replace the filepos attributes
4) Replace the mobi specific tags like <mbpagebreak>
5) Extract the images and replace the <img recindex> tags

At the moment, the only not fullly implemented step is 4). The only mobi specific markup that mobi2oeb replaces is <mbpagebreak>
Hey, this reads like psuedo-code and would be a great guide to 'rolling-your-own' program.

However, for me, this was all accomplished by using tompe's 'mobi2html' and making my .IMP specific changes to get 'mobi2imp'.

So, in the end, it appears we get the same result.

Cool!

-Nick
Reply 

#10  brecklundin 03-04-2008, 07:05 PM
kovid....kovid...kovid....awesome...thanks!!

here is the best I can offer in return:

image »

She is yours...
Reply 

  Next »  Last »  (1/6)
Today's Posts | Search this Thread | Login | Register