|
|
#1 |
|
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 84
Karma: 1166
Join Date: Apr 2007
Location: New Jersey, Outside of Philadelphia
Device: Sony Reader
|
bd2mobi - Application to convert Book Designer html0 to .mobi
This will automatically generate the table of contents from the "Titles" in the original BD file. I've attached a zip file with a compiled .exe file, and the Perl source for this file for anyone who'd like to contribute. You'll need to extract the .exe and download mobigen from Mobipocket (available at http://www.mobipocket.com/dev/) The easiest way to use this is to create a shortcut to the .exe in your "Send To" folder. Then you can simply right click on any .html0 file and choose Send To>bd2mobi, and it will convert the file for you. Let me know how it works for you! p.s.- Thanks to HarryT for the excellent tutorial that I followed in creating this script. version 2 now attached This version now properly converts books with PNGs and GIFs in the source. version 3 now attached This version works properly with newer versions of mobigen and allows you to specify author, title and cover image. Last edited by maggotb0y; 04-07-2008 at 09:24 PM. |
|
|
|
|
|
#2 |
|
The Introvert
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,308
Karma: 1000077497
Join Date: Jan 2007
Location: United Kingdom
Device: Sony Reader PRS-650 & 505 & 500
|
Uhm. BD creates books for Kindle or CyBook Gen3 or Iliad without any additional tools. Why would you write another tool for the purpose?
__________________
Only Two Things Are Infinite, The Universe and Human Stupidity, and I'm Not Sure About The Former. Albert Einstein |
|
|
|
|
Enthusiast
|
|
|
|
#3 | |
|
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 84
Karma: 1166
Join Date: Apr 2007
Location: New Jersey, Outside of Philadelphia
Device: Sony Reader
|
Quote:
Doing research on the topic, I found HarryT's thread http://www.mobileread.com/forums/showthread.php?t=17914 and automated the process. |
|
|
|
|
|
|
#4 |
|
The Introvert
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,308
Karma: 1000077497
Join Date: Jan 2007
Location: United Kingdom
Device: Sony Reader PRS-650 & 505 & 500
|
I was under the impression that BD can create mobi pocket books. Because Harry_T creates his books in BD. I was aware about TOC problems. I see why you wanted to automate the process.
Thanks.
__________________
Only Two Things Are Infinite, The Universe and Human Stupidity, and I'm Not Sure About The Former. Albert Einstein |
|
|
|
|
|
#5 | |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,503
Karma: 2150615
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Nexus 7, Nexus S, iPad 2, Notion Ink Adam Qi, Kindle WiFi
|
Quote:
My MobiPerl contains opf2mobi which generated true MobiPocket books.
__________________
DRM is EVIL! /Tommy Persson |
|
|
|
|
|
|
#6 |
|
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 84
Karma: 1166
Join Date: Apr 2007
Location: New Jersey, Outside of Philadelphia
Device: Sony Reader
|
You're welcome to grab this code for inclusion in mobiperl - it basically automatically creates a table of contents and an OPF directly from the HTML0 file, then calls mobigen to build the .mobi file, finally deleting the files it creates for the conversion.
Last edited by maggotb0y; 01-20-2008 at 08:30 PM. |
|
|
|
|
|
#7 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,503
Karma: 2150615
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Nexus 7, Nexus S, iPad 2, Notion Ink Adam Qi, Kindle WiFi
|
I put it on the list of possible things to do. I thought about it a couple of days ago but then decided that since HTML0 is a Windows specific format in the sence that the only tool that generates it runs only in Windows it was less interesting to do it.
__________________
DRM is EVIL! /Tommy Persson |
|
|
|
|
|
#8 |
|
Creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,475
Karma: 2944574
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
As motivation, html2lrf has a BD preprocessor
|
|
|
|
|
|
#9 | |
|
eBook Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 54,658
Karma: 26165759
Join Date: Nov 2006
Location: UK
Device: Kindle Touch, PW, Fire HD, iPad 3, iPhone 4, Samsung Tab 2 7 + More
|
Quote:
It's a lot better to use BD as a book editor, but then to use the "Mobigen" or "MobiPocket Creator" tools to create a "proper" Mobipocket book. That's what I do now, and what this thread is all about.
__________________
Harry Currently proofreading The Poison Belt, by Sir Arthur Conan Doyle. |
|
|
|
|
|
|
#10 | |
|
The Introvert
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,308
Karma: 1000077497
Join Date: Jan 2007
Location: United Kingdom
Device: Sony Reader PRS-650 & 505 & 500
|
Quote:
WOW I am a little bit surprised and disappointed ![]() When I was doing a research on iRex iLiad, I have asked a couple of times whether creating books for iRex iLiad would be more difficult or different than creating lrf files for Sony in BD and whether they would be of the same quality and as nice looking as lrf files. Besides pointing out to me that I will have to "manually" (use a certain command in BD) add TOC in the beginning of a book and that pics will be smaller, noone has mentioned all the problems that I hear now.
__________________
Only Two Things Are Infinite, The Universe and Human Stupidity, and I'm Not Sure About The Former. Albert Einstein |
|
|
|
|
|
|
#11 |
|
Mobile Reader Geek
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 34,205
Karma: 13801264
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad
|
Does BD2Mobi create a proper table of contents and proper metadata?
Also, how does an eBook created using bd2mobi compare to doing it using Harry's tutorial?
__________________
|
|
|
|
|
|
#12 |
|
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 84
Karma: 1166
Join Date: Apr 2007
Location: New Jersey, Outside of Philadelphia
Device: Sony Reader
|
Does the same thing as HarryT's tutorial
BD2Mobi reads the "titles" from the BD html0 file to generate the table of contents, and extracts the Author and Title of the book as well.
bd2mobi does exactly what HarryT's tutorial walks you through- it just automates it all. The only thing it does not automate is converting any non-jpeg images to jpeg. If it sees any gifs or pngs in the source, it will let you know that you need to fix that. Last edited by maggotb0y; 01-21-2008 at 10:42 AM. |
|
|
|
|
|
#13 |
|
Mobile Reader Geek
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 34,205
Karma: 13801264
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad
|
Sounds good. What version of Perl would I need for Windows in order to use your program?
__________________
|
|
|
|
|
|
#14 |
|
Technogeezer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,237
Karma: 148834
Join Date: Nov 2006
Location: Virginia, USA
Device: Sony PRS-500
|
vvv has stated that the BD output for mobi is several versions behind the current mobi level. It is one of the items on his enhancement list which itself has no publicly released milestone dates -- it may be released this week, it may be released in a year or more.
When we first released mobi books (with the PRC extension) there were only a few takers as the iLiad had just acquired the ability to read them. With the release of the Gen3 and now the Kindle the number of downloads for mobi books has grown. For most books the number of downloads for mobi is still below that of Sony but the gap is closing and for a few the mobi is format is more popular than the Sony. |
|
|
|
|
|
#15 | |
|
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 84
Karma: 1166
Join Date: Apr 2007
Location: New Jersey, Outside of Philadelphia
Device: Sony Reader
|
Quote:
If you want to modify the Perl script, you should be able to do this in just about any version of Perl- it isn't doing anything particularly fancy. |
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| EPUB to MOBI: "Failed: Convert book 1 of 1" | Jillo | Introduce Yourself | 4 | 02-20-2010 06:49 PM |
| Mobi book won't convert to ePub | HarryT | Calibre | 4 | 08-09-2009 11:20 AM |
| Using Book Designer to convert Lit to Lrf? | Gibbo | Sony Reader | 11 | 07-22-2007 10:33 AM |
| Book Designer - I'm a Convert! | HarryT | Sony Reader | 114 | 05-25-2007 10:15 PM |
| Handy Perl Script to convert HTML0 files to smartquotes | maggotb0y | Sony Reader | 0 | 04-12-2007 11:49 AM |