|  12-01-2012, 12:30 PM | #1 | 
| Connoisseur  Posts: 53 Karma: 10 Join Date: Jul 2012 Location: Seattle, USA Device: Nook | 
				
				Write .mobi files by hand?
			 
			
			Hi everybody, So far I've written .epub files myself, with the help of some hand-crafted scripts that digest larger content. That was a good exercise to learn the file format and about eBooks in general. Now I move forward to EPUB3 but that's for another thread. Given the validated .epub file, I have used kindlegen and Calibre to generate a .mobi file, both of which have produced rather poor results for one book or another. So I'm at the point where I'd like to build a .mobi book by hand, look through all the files, structure, and the assembling process that delivers the final eBook. And I'm looking for documentation on this. The wiki here seems to contain a lot, but I haven't found an "easing into" sort of thing. Does anybody have pointers, hints, experiences, etc as to how to go about this? Thanks! Jens | 
|   |   | 
|  12-01-2012, 12:38 PM | #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 | 
			
			The wiki is your friend. Use the links to the mobipocket site for documentation on this. You cannot build one directly as it is compiled but you can build a source file and compile it using the mobi compiler called MobiPocket Creator. However, the recommended way is to use ePub and then KindleGen. If you look at the documentation you will notice that pre-KF8 formats from Kindle do not support all the features of ePub so this may be what youi saw in your conversion. You do have to limit the source to what mobi can understand. Dale | 
|   |   | 
|  12-06-2012, 07:40 PM | #3 | |||
| Connoisseur  Posts: 53 Karma: 10 Join Date: Jul 2012 Location: Seattle, USA Device: Nook | Quote: 
 Quote: 
 Quote: 
 Thanks! | |||
|   |   | 
|  12-06-2012, 08:22 PM | #4 | 
| Grand Sorcerer            Posts: 28,855 Karma: 207000000 Join Date: Jan 2010 Device: Nexus 7, Kindle Fire HD | 
			
			There should be no problems with a validated ePub (v2) becoming a fully functioning MOBI file using Kindlegen. Whether or not it will look identical to the original ePub in every way is, of course, another story.
		 | 
|   |   | 
|  12-06-2012, 08:43 PM | #5 | |
| 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 | |
|   |   | 
|  12-07-2012, 01:01 AM | #6 | |
| Connoisseur  Posts: 53 Karma: 10 Join Date: Jul 2012 Location: Seattle, USA Device: Nook | Quote: 
 Interestingly (and to my great annoyance, considering my dislike of it) Calibre produced a functioning .mobi file. I noticed that the look-alike is a whole different issue, yes  I wonder if using Pali characters (UTF8 encoded) would be an issue... Thanks! | |
|   |   | 
|  12-07-2012, 01:18 AM | #7 | |
| Connoisseur  Posts: 53 Karma: 10 Join Date: Jul 2012 Location: Seattle, USA Device: Nook | Quote: 
 I didn't know about the lack of CSS support; I just started to read up on the MOBI format. How is it handled then, by using plain HTML attributes, and styling text with Code: <i>italic</i> Code: <span style="font-style:italic;">italic</span> | |
|   |   | 
|  12-08-2012, 09:58 AM | #8 | 
| Evangelist            Posts: 450 Karma: 343115 Join Date: Nov 2009 Location: Romania Device: PW2 2014 | 
			
			I think you want to use <em></em> and <strong></strong> for italics and for bolds, because <i> and <b> are deprecated. But I don't know why. I vaguely remember reading something about why, but I forgot. They make more sense to me than <em> and <strong>. | 
|   |   | 
|  12-08-2012, 12:15 PM | #9 | |
| 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 | |
|   |   | 
|  12-08-2012, 07:49 PM | #10 | 
| Connoisseur  Posts: 53 Karma: 10 Join Date: Jul 2012 Location: Seattle, USA Device: Nook | 
			
			Thanks DSpider!  I do use <em> quite a bit and style it using CSS, but so far I haven't used <strong> yet.  Perhaps I ought to go that way to be able to target both EPUB and MOBI files alike.
		 | 
|   |   | 
|  12-08-2012, 07:57 PM | #11 | |
| Connoisseur  Posts: 53 Karma: 10 Join Date: Jul 2012 Location: Seattle, USA Device: Nook | Quote: 
  Coming from the EPUB side of things I almost feel spoiled by the things I could do, provided the eReaders out there would support EPUB properly.  But now, with MOBI in mind, it's even more difficult and constraining to "design" eBooks that actually look like something beyond just flowing text. It's the browser war all over again  The other day I played with the Mobipocket Creater but that's too much clicking around for my taste; I'm more of a scripting kinda guy. However, I'm beginning to wonder which way to go: kindlegen or Creator? I assume since Amazon is the target market, it's kindlegen? | |
|   |   | 
|  12-08-2012, 08:05 PM | #12 | |
| Connoisseur  Posts: 53 Karma: 10 Join Date: Jul 2012 Location: Seattle, USA Device: Nook | Quote: 
  Why not use EPUB in the first place? I guess that's already a long debated issue. Seriously though, providing a less expressive/styleable format as the target of conversion from a more expressive/styleable format is just a disagreeable decision from Amazon's side. It's like castrating a LaTeX document for viewing in a plain-text editor  (I like these smileys here  ) | |
|   |   | 
|  12-08-2012, 11:45 PM | #13 | 
| Booklegger            Posts: 1,801 Karma: 7999816 Join Date: Jun 2009 Location: Toronto, Ontario, Canada Device: BeBook(1 & 2010), PEZ, PRS-505, Kobo BT, PRS-T1, Playbook, Kobo Touch | 
			
			I believe we are supposed to use <em> and <strong> because they are semantic markup, whereas <i> and <b> are presentational. We are supposed to use css to describe how we want things presented, and only have the structure put into the text. It's a matter of purity, although how you present italics or bold in a text to speech transcription is an obvious case in point.
		 | 
|   |   | 
|  12-09-2012, 01:12 AM | #14 | |
| 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 | |
|   |   | 
|  12-10-2012, 04:07 PM | #15 | |
| Evangelist            Posts: 450 Karma: 343115 Join Date: Nov 2009 Location: Romania Device: PW2 2014 | Quote: 
 | |
|   |   | 
|  | 
| 
 | 
|  Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| Do you write your story long hand? Well, here's some useful advice | Harper Kingsley | Writers' Corner | 10 | 02-19-2012 08:03 AM | 
| I want to merge short mobi book files into a mega mobi file | vugtitan | Conversion | 5 | 12-25-2011 11:04 AM | 
| Write MetaData changes to book files | tbergman | Calibre | 3 | 01-03-2011 06:02 PM | 
| can't write more files on sd card? | ns66 | Sony Reader | 12 | 11-10-2008 02:34 AM |