05-04-2012, 06:01 AM | #1 |
Member
Posts: 11
Karma: 10
Join Date: May 2012
Device: Kindle
|
Source code for converting html to mobi
Hi guys,
Does anyone know where the source code is for converting html to mobi. |
05-04-2012, 11:16 AM | #2 | |
Grand Sorcerer
Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
|
Quote:
Dale |
|
Advert | |
|
05-04-2012, 10:34 PM | #3 |
Member
Posts: 11
Karma: 10
Join Date: May 2012
Device: Kindle
|
Convert Html to mobi
Could you please point the link to me as i am extremely new and dont know where to look . I searched the internet quite a lot for conversion source code but could find none in any language. If you know the exact place where the source is it would help if you could post it.(It may seem stupid but where and what is the sticky section.)
Last edited by Thisiswhatiam; 05-04-2012 at 10:37 PM. |
05-04-2012, 10:43 PM | #4 |
reader
Posts: 6,975
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3, Kobo Glo HD
|
MobiPerl has links to the source code in a ZIP file or via subversion. What you want is html2mobi or perhaps opf2mobi (the OPF file identifies which HTML files and their reading order).
|
05-05-2012, 12:06 AM | #5 |
Member
Posts: 11
Karma: 10
Join Date: May 2012
Device: Kindle
|
Convert html to mobi
Yes. That is what i want. But i am unable to run the html2mobi perl script as a standalone script . When i try to compile it it keeps throwing the error
Can't locate Palm/PDB.pm in @INC (@INC contains: /root/Desktop /etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at /etc/perl/MobiPerl/MobiFile.pm line 3. BEGIN failed--compilation aborted at /etc/perl/MobiPerl/MobiFile.pm line 3. Compilation failed in require at ./html2mobi line 21. BEGIN failed--compilation aborted at ./html2mobi line 21. What should i tweak in order to get it running. |
Advert | |
|
05-05-2012, 09:50 AM | #6 | |
reader
Posts: 6,975
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3, Kobo Glo HD
|
Quote:
|
|
05-05-2012, 10:03 AM | #7 |
The Grand Mouse 高貴的老鼠
Posts: 71,490
Karma: 306214458
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
|
|
05-21-2012, 09:56 PM | #8 |
Member
Posts: 11
Karma: 10
Join Date: May 2012
Device: Kindle
|
Source code for converting html to mobi
Where exactly is this python code.
|
05-25-2012, 02:46 AM | #9 |
eBook Enthusiast
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
You'd be better off asking on the Calibre forum.
|
06-04-2012, 02:12 PM | #10 |
Groupie
Posts: 184
Karma: 2572
Join Date: Aug 2010
Device: Kindle
|
My html files convert just fine when I upload them to the KDP. Why bring another software into it?
(Just asking! I'm not challenging anyone's modus operandi. Just puzzled at the seemingly roundabout solution to a problem that to me doesn't exist.) |
06-04-2012, 02:47 PM | #11 |
The Grand Mouse 高貴的老鼠
Posts: 71,490
Karma: 306214458
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
|
No-one should be using third-party code to create a mobi to upload to KDP. That's what KindleGen is for.
I recommend using KindleGen rather than just uploading an HTML file because then you get to check the end result locally before uploading, and so can fix any problems more quickly. I don't know why Thisiswhatiam wanted html to mobi source code, but if it was to convert for uploading to KDP it was the wrong approach. |
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Converting HTML to EBUB to MOBI | krnchunsa86 | Conversion | 3 | 11-04-2011 07:55 PM |
Converting .html to .mobi Question | gilvezan | Conversion | 1 | 05-30-2011 01:14 PM |
HTML to epub displays munged source code | haven | Conversion | 4 | 03-10-2011 10:08 PM |
Problem converting HTML to Mobi | AprilHare | Calibre | 3 | 05-02-2009 09:34 PM |
Converting HTML to Mobi? | Sonist | Calibre | 5 | 02-10-2009 01:23 PM |