Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 03-30-2010, 01:02 AM   #1
jonj
Junior Member
jonj began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Mar 2010
Device: Kindle
Question Easiest way to start creating .mobi from HTML using C#?

My language of choice is C#. I've gotten a feel for the Huffman algorithms that mobi seems to be based on. However, being new to algorithms and compression coding I'm seeking some guidance. What would be the best way to begin creating a C# library for .mobi conversion? (HTML to .mobi)... Is there anything out there like this already short of calling a command line (which I don't want to do)?
jonj is offline   Reply With Quote
Old 03-31-2010, 05:05 AM   #2
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
I honestly have to ask what the point in reinventing the wheel is. The official Mobi tools, Mobipocket Creator, and its command-line equivalent, "mobigen", are the "standard" way of doing it. I'm not denigrating your desire to write a useful program in C#, but this doesn't really sound like a very productive way to use your time.
HarryT is offline   Reply With Quote
Advert
Old 03-31-2010, 12:35 PM   #3
=X=
Wizard
=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.
 
=X='s Avatar
 
Posts: 3,671
Karma: 12205348
Join Date: Mar 2008
Device: Galaxy S, Nook w/CM7
Quote:
Originally Posted by jonj View Post
My language of choice is C#. I've gotten a feel for the Huffman algorithms that mobi seems to be based on. However, being new to algorithms and compression coding I'm seeking some guidance. What would be the best way to begin creating a C# library for .mobi conversion? (HTML to .mobi)... Is there anything out there like this already short of calling a command line (which I don't want to do)?
Yes there are three open source tools that generate MOBI files. All of the tools start from HTML then convert to MOBi. Partly because mobi is nothing more than a Palm Database file with HTML stored in the database.

The tools are, Calibre, eBookTools, and mobiperl. Calibre is written in Python, and the other two are written in perl. Calibre has a GUI, but in the end they are nothing more than comand line tools.

Look in the MobiRead Wiki page for more information on the MOBI format.

What you are proposing to do is not a light and easy task. All of the tools listed today do an okay job creating MOBI. Only calibre does a good job, (mobigen/Mobi Creator are also great) but that is only because calibre has spent years perfecting this

=X=
=X= is offline   Reply With Quote
Old 08-02-2011, 12:23 AM   #4
slcoleg
Junior Member
slcoleg began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Jul 2011
Device: Kindle
I think there are a couple of good reasons to port existing app to C# or Java:
1. Java and C# are more popular languages, so we will have a better support for new engine than we have now.
2. 99% of existing apps have something missing or very generic. Mostly you have yo use 2 or more app to do simple stuff.
3. Performance and extensibilty are another reasons.
4. name it yourself, but it will be a huge list.

Thanks for advise.

O/
slcoleg is offline   Reply With Quote
Old 08-02-2011, 12:45 AM   #5
WT Sharpe
Bah, humbug!
WT Sharpe ought to be getting tired of karma fortunes by now.WT Sharpe ought to be getting tired of karma fortunes by now.WT Sharpe ought to be getting tired of karma fortunes by now.WT Sharpe ought to be getting tired of karma fortunes by now.WT Sharpe ought to be getting tired of karma fortunes by now.WT Sharpe ought to be getting tired of karma fortunes by now.WT Sharpe ought to be getting tired of karma fortunes by now.WT Sharpe ought to be getting tired of karma fortunes by now.WT Sharpe ought to be getting tired of karma fortunes by now.WT Sharpe ought to be getting tired of karma fortunes by now.WT Sharpe ought to be getting tired of karma fortunes by now.
 
WT Sharpe's Avatar
 
Posts: 39,072
Karma: 157049943
Join Date: Jun 2009
Location: Chesapeake, VA, USA
Device: Kindle Oasis, iPad Pro, & a Samsung Galaxy S9.
Quote:
Originally Posted by HarryT View Post
I honestly have to ask what the point in reinventing the wheel is. The official Mobi tools, Mobipocket Creator, and its command-line equivalent, "mobigen", are the "standard" way of doing it. I'm not denigrating your desire to write a useful program in C#, but this doesn't really sound like a very productive way to use your time.
Harry, I just went to mobipocket.com and when I clicked on the Mobipocket Creator 4.2 download button, the following message poped up:
Quote:
System Requirements:
Microsoft Windows 2000/XP
Do you know if the software is compatible with newer versions of Windows?
WT Sharpe is offline   Reply With Quote
Advert
Old 08-02-2011, 05:02 AM   #6
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
Quote:
Originally Posted by WT Sharpe View Post
Harry, I just went to mobipocket.com and when I clicked on the Mobipocket Creator 4.2 download button, the following message poped upo you know if the software is compatible with newer versions of Windows?
Yes, Mobi Creator works fine with both 32- and 64-bit versions of Windows 7.
HarryT is offline   Reply With Quote
Old 08-02-2011, 11:50 AM   #7
WT Sharpe
Bah, humbug!
WT Sharpe ought to be getting tired of karma fortunes by now.WT Sharpe ought to be getting tired of karma fortunes by now.WT Sharpe ought to be getting tired of karma fortunes by now.WT Sharpe ought to be getting tired of karma fortunes by now.WT Sharpe ought to be getting tired of karma fortunes by now.WT Sharpe ought to be getting tired of karma fortunes by now.WT Sharpe ought to be getting tired of karma fortunes by now.WT Sharpe ought to be getting tired of karma fortunes by now.WT Sharpe ought to be getting tired of karma fortunes by now.WT Sharpe ought to be getting tired of karma fortunes by now.WT Sharpe ought to be getting tired of karma fortunes by now.
 
WT Sharpe's Avatar
 
Posts: 39,072
Karma: 157049943
Join Date: Jun 2009
Location: Chesapeake, VA, USA
Device: Kindle Oasis, iPad Pro, & a Samsung Galaxy S9.
Thanks, Harry. (Off to download.)
WT Sharpe is offline   Reply With Quote
Old 08-21-2011, 03:23 PM   #8
Raptyr
Junior Member
Raptyr began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Aug 2011
Device: Kindle
Having done precisely what JonJ proposed to do (Its a developer thing, we have to write our own at least once :-P) I now have a C# program that reads .MOBI, .AZW and .PRC files (lets face it, they're all the same thing) but I can only create uncompressed files. My compressed files (using the LZ77 algorithm) look fine, and my reader can read them fine, but they crash the Kindle for PC app. Which forum should I use to discuss this, because I'd really like to put this little app to bed.
Raptyr is offline   Reply With Quote
Old 08-22-2011, 12:24 PM   #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
This forum is the correct place.
HarryT is offline   Reply With Quote
Old 12-10-2011, 12:30 PM   #10
Limey
Junior Member
Limey plays well with othersLimey plays well with othersLimey plays well with othersLimey plays well with othersLimey plays well with othersLimey plays well with othersLimey plays well with othersLimey plays well with othersLimey plays well with othersLimey plays well with othersLimey plays well with others
 
Posts: 9
Karma: 2831
Join Date: Dec 2011
Device: Kindle
*EDITED* - nevermind, I think Caliber will suit my needs!

Last edited by Limey; 12-10-2011 at 12:44 PM.
Limey is offline   Reply With Quote
Reply

Tags
.net c#, conversion, creation, html, mobi


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
creating a mobi file with hyperlinks. jimbbq Amazon Kindle 11 09-29-2010 04:53 PM
Creating MOBI rather than PRC MosesSiregarIII Kindle Formats 16 09-22-2010 04:28 AM
PRS-300 What's the easiest way to start from scratch? *Angie* Sony Reader 2 09-16-2010 10:01 PM
What's the easiest way to get a book on the kindle from TXT or HTML? QU2C371FcY Amazon Kindle 7 05-27-2009 09:55 AM
Zipped HTML only creating file with one page Katelyn Calibre 3 08-27-2008 04:35 PM


All times are GMT -4. The time now is 05:31 PM.


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