|
|||||||
|
You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community today, you will have fewer ads, access to post topics, communicate privately with other members, respond to polls, upload content and access many other special features. If you have any problems with the registration process or your account login, please contact us. Hint: Don't have time to visit us daily? Subscribe to our main RSS feed to receive our frontpage posts at your convenience. |
| Mobi Mobipocket Mobi is a widely-supported format; the Amazon Kindle format is based on it |
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
|
#1 |
|
Creator of calibre, Ph.D.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
Posts: 8,944
Karma: 37478
Join Date: Oct 2006
Location: Albuquerque, NM
Device: PRS-500/505/700, K2, BeBook
|
mobi2oeb
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 |
|
|
|
|
|
#2 |
|
eBook Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
Posts: 22,302
Karma: 39165
Join Date: Nov 2006
Location: UK
Device: Gen3, Opus, iRex DR1000S, iPod Touch, HTC Touch, PRS-600, Kindle 2
|
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.
__________________
Harry |
|
|
|
|
|
#3 | |
|
Evangelist
![]() ![]() ![]() ![]() ![]()
Posts: 436
Karma: 468
Join Date: Sep 2007
Location: The Netherlands
Device: Cybook G3
|
Quote:
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.
|
|
|
|
|
|
|
#4 |
|
Sir Penguin of Edinburgh
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
Posts: 7,287
Karma: 48386
Join Date: Apr 2007
Location: Northern Virginia
Device: Airpanel 100, Jornada 720, Kindle, Smart Q7, Zelda has Sony 600 & 700
|
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.
|
|
|
|
|
|
#5 |
|
Evangelist
![]() ![]() ![]() ![]() ![]()
Posts: 436
Karma: 468
Join Date: Sep 2007
Location: The Netherlands
Device: Cybook G3
|
Ok, thanks
We can't be to carefull these days |
|
|
|
|
|
#6 |
|
Groupie
![]() ![]() ![]() ![]() ![]()
Posts: 180
Karma: 499
Join Date: Oct 2007
Location: France, Toulouse
Device: Sony PRS500
|
Thanks kovidgoyal !
Once again, your work helps us all so much !! |
|
|
|
|
|
#7 | |
|
GuteBook/Mobi2IMP Creator
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
Posts: 2,386
Karma: 24558
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200, EBW1150 Device: REB1100, iLiad v2 System: WinXP SP3
|
Quote:
Code:
mobi2imp --oeb 'SpaceEncyclopedia.mobi' Space Our (ebook format) worlds are crossing... -Nick |
|
|
|
|
|
|
#8 |
|
Creator of calibre, Ph.D.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
Posts: 8,944
Karma: 37478
Join Date: Oct 2006
Location: Albuquerque, NM
Device: PRS-500/505/700, K2, BeBook
|
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 <mbp agebreak>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 <mbp agebreak>
|
|
|
|
|
|
#9 | |
|
GuteBook/Mobi2IMP Creator
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
Posts: 2,386
Karma: 24558
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200, EBW1150 Device: REB1100, iLiad v2 System: WinXP SP3
|
Quote:
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 |
|
|
|
|
|
|
#10 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
Posts: 1,050
Karma: 2802
Join Date: Jun 2007
Device: see sig...sigh...
|
kovid....kovid...kovid....awesome...thanks!!
here is the best I can offer in return: ![]() She is yours...
|
|
|
|
|
|
#11 |
|
Creator of calibre, Ph.D.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
Posts: 8,944
Karma: 37478
Join Date: Oct 2006
Location: Albuquerque, NM
Device: PRS-500/505/700, K2, BeBook
|
I appreciate the gesture, but I have to say I like 'em with a leetle more meat on the bones
|
|
|
|
|
|
#12 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
Posts: 1,050
Karma: 2802
Join Date: Jun 2007
Device: see sig...sigh...
|
your wish is our command oh great code breaker...
|
|
|
|
|
|
#13 |
|
Linux User
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
Posts: 304
Karma: 1082
Join Date: Aug 2007
Location: Germany
Device: Cybook Gen3
|
Nice work, thanks! One question though: is it normal that the exploded html file has only three lines? Line one is always "<html><head>" line two is "<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />" and line three is the rest. It's no problem to make some breaks with par, but the resulting html code is not very cleary arranged for manual editing.
|
|
|
|
|
|
#14 | |
|
Reticulator of Tharn
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
Posts: 620
Karma: 2794
Join Date: Jan 2007
Location: EST
Device: Sony PRS-505
|
Quote:
|
|
|
|
|
|
|
#15 |
|
Linux User
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
Posts: 304
Karma: 1082
Join Date: Aug 2007
Location: Germany
Device: Cybook Gen3
|
Thanks for the tip, but I already knew of HTML Tidy and it won't generate a cleaned up version if the source file has errors – which includes most exploded Mobipocket html files.
Anyway, I had a closer look at the html code and it seems that running a search and replace for "> <" with ">\n<" does the trick. Maybe an idea for the next mobi2oeb version? |
|
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|