Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Formats > Kindle Formats

Notices

Reply
 
Thread Tools Search this Thread
Old 05-04-2012, 06:01 AM   #1
Thisiswhatiam
Member
Thisiswhatiam began at the beginning.
 
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.
Thisiswhatiam is offline   Reply With Quote
Old 05-04-2012, 11:16 AM   #2
DaleDe
Grand Sorcerer
DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.
 
DaleDe's Avatar
 
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:
Originally Posted by Thisiswhatiam View Post
Hi guys,

Does anyone know where the source code is for converting html to mobi.
There is a perl version in the sticky section of this forum. Mobi is undocumented except by reverse engineering and is documented in our wiki. There are several conversion programs in different source languages.

Dale
DaleDe is offline   Reply With Quote
Old 05-04-2012, 10:34 PM   #3
Thisiswhatiam
Member
Thisiswhatiam began at the beginning.
 
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.
Thisiswhatiam is offline   Reply With Quote
Old 05-04-2012, 10:43 PM   #4
wallcraft
reader
wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.
 
wallcraft's Avatar
 
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).
wallcraft is offline   Reply With Quote
Old 05-05-2012, 12:06 AM   #5
Thisiswhatiam
Member
Thisiswhatiam began at the beginning.
 
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.
Thisiswhatiam is offline   Reply With Quote
Old 05-05-2012, 09:50 AM   #6
wallcraft
reader
wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.
 
wallcraft's Avatar
 
Posts: 6,975
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3, Kobo Glo HD
Quote:
Originally Posted by Thisiswhatiam View Post
Yes. That is what i want. But i am unable to run the html2mobi perl script as a standalone script .
The usual place to look for missing perl dependencies is CPAN. Search there for Palm::PDB
wallcraft is offline   Reply With Quote
Old 05-05-2012, 10:03 AM   #7
pdurrant
The Grand Mouse 高貴的老鼠
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 71,367
Karma: 305065800
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
Quote:
Originally Posted by Thisiswhatiam View Post
Hi guys,

Does anyone know where the source code is for converting html to mobi.
Calibre has python code in it that creates Mobi files.
pdurrant is offline   Reply With Quote
Old 05-21-2012, 09:56 PM   #8
Thisiswhatiam
Member
Thisiswhatiam began at the beginning.
 
Posts: 11
Karma: 10
Join Date: May 2012
Device: Kindle
Source code for converting html to mobi

Where exactly is this python code.
Thisiswhatiam is offline   Reply With Quote
Old 05-25-2012, 02:46 AM   #9
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
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.
HarryT is offline   Reply With Quote
Old 06-04-2012, 02:12 PM   #10
Oldpilot
Groupie
Oldpilot plays well with othersOldpilot plays well with othersOldpilot plays well with othersOldpilot plays well with othersOldpilot plays well with othersOldpilot plays well with othersOldpilot plays well with othersOldpilot plays well with othersOldpilot plays well with othersOldpilot plays well with othersOldpilot plays well with others
 
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.)
Oldpilot is offline   Reply With Quote
Old 06-04-2012, 02:47 PM   #11
pdurrant
The Grand Mouse 高貴的老鼠
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 71,367
Karma: 305065800
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.
pdurrant is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

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


All times are GMT -4. The time now is 07:43 AM.


MobileRead.com is a privately owned, operated and funded community.