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 10-25-2017, 03:57 PM   #61
Sella174
Enthusiast
Sella174 began at the beginning.
 
Sella174's Avatar
 
Posts: 46
Karma: 10
Join Date: Feb 2015
Device: Paperbacks
Quote:
Originally Posted by JSWolf View Post
You can do that with Sigil or Calibre Editor and you can see what the result of the CSS code is very easily. Your way you create the CSS, edit the HTML, run Kindlegen, see what you get and what you don't realize is you may very well NOT be seeing the Mobi. You may be seeing the KF8.
Some of us can see without WYSIWYG; well, I hope Kindle Previewer knows what is what.
Sella174 is offline   Reply With Quote
Old 10-25-2017, 04:10 PM   #62
Sella174
Enthusiast
Sella174 began at the beginning.
 
Sella174's Avatar
 
Posts: 46
Karma: 10
Join Date: Feb 2015
Device: Paperbacks
Quote:
Originally Posted by Doitsu View Post
Can you give some specific examples of these mysterious “spices”?
Linked files need not be defined in the OPF under <manifest>, e.g. external stylesheets or images (other than the cover). KindleGen either finds them by itself or throws a warning. (Warnings do not stop compilation of the mobi, just like with a “real” compiler.)

How the <guide> section in the OPF is interpreted.

Depreciated method (in terms of HTML5) for declaring UTF-8 as the character encoding.
Sella174 is offline   Reply With Quote
Advert
Old 10-26-2017, 04:33 AM   #63
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,582
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by Sella174 View Post
Linked files need not be defined in the OPF under <manifest>, e.g. external stylesheets or images (other than the cover). KindleGen either finds them by itself or throws a warning. (Warnings do not stop compilation of the mobi, just like with a “real” compiler.)
Using unmanifested files with KindleGen might work, but you're not following best practices; it'll also ensure that an epub book assembled from these files will be invalid.

Quote:
Originally Posted by Sella174 View Post
How the <guide> section in the OPF is interpreted.
Even though most epub2 apps will ignore the guide section, adding the guide items recommended by Amazon won't invalidate an epub book, because they're a part of the epub2 specs. BTW, Sigil has a dedicated menu option for adding guide items (Add Semantics...).

Quote:
Originally Posted by Sella174 View Post
Depreciated method (in terms of HTML5) for declaring UTF-8 as the character encoding.
Epub2 books are supposed to contain utf-8 or utf-16 encoded (X)HTML files and, AFAIK, KindleGen does not require deprecated character encoding declarations.
In fact, according to section 2.2.1 of the Kindle Publishing Guidelines, Amazon recommends using valid epub books.
Doitsu is offline   Reply With Quote
Old 10-26-2017, 05:32 AM   #64
Sella174
Enthusiast
Sella174 began at the beginning.
 
Sella174's Avatar
 
Posts: 46
Karma: 10
Join Date: Feb 2015
Device: Paperbacks
Quote:
Originally Posted by Doitsu View Post
Using unmanifested files with KindleGen might work, but you're not following best practices; it'll also ensure that an epub book assembled from these files will be invalid.
It does work and is documented in the “official” examples, but wasn’t that the point: me giving an example of something valid for KindleGen that produces an invalid ePub?

Quote:
Originally Posted by Doitsu View Post
Even though most epub2 apps will ignore the guide section, adding the guide items recommended by Amazon won't invalidate an epub book, because they're a part of the epub2 specs. BTW, Sigil has a dedicated menu option for adding guide items (Add Semantics...).
True, but KindleGen makes certain assumptions based on the <guide> section in the OPF.

Quote:
Originally Posted by Doitsu View Post
Epub2 books are supposed to contain utf-8 or utf-16 encoded (X)HTML files and, AFAIK, KindleGen does not require deprecated character encoding declarations.
Character encoding in HTML5 is done with <meta charset="UTF-8">, but KindleGen still requires the depreciated HTML 4.01 method of <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">, even though the file is read as HTML5 if defined as such.

Quote:
Originally Posted by Doitsu View Post
In fact, according to section 2.2.1 of the Kindle Publishing Guidelines, Amazon recommends using valid epub books.
Not in version 2017.4 of that document.

------

I must say this thread has become tedious. After five pages nothing constructive has been said about creating mobi files - I do not count pushing automated software for a round-about method as a viable solution. However, I've taught myself how to do it using source files fed directly into KindleGen by reading the Publishing Guidelines and perusing the myriad example provided by Amazon.
Sella174 is offline   Reply With Quote
Old 10-26-2017, 05:34 AM   #65
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,839
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
You don't need HTML5. The Mobi part of the dual-mobi file doe snot support HTML5. KF8 does not need HTML5. So stop trying to use HTML5.
JSWolf is online now   Reply With Quote
Advert
Old 10-26-2017, 05:45 AM   #66
Sella174
Enthusiast
Sella174 began at the beginning.
 
Sella174's Avatar
 
Posts: 46
Karma: 10
Join Date: Feb 2015
Device: Paperbacks
Quote:
Originally Posted by JSWolf View Post
You don't need HTML5. The Mobi part of the dual-mobi file doe snot support HTML5. KF8 does not need HTML5. So stop trying to use HTML5.
As an example, <article> is an HTML5 tag, hence if I want to use it, I must define the source file as HTML5. Same with <aside>, <figure> and <footer>. Also, the Publishing Guidelines states that <font>, <center> and <big> are depreciated, all valid HTML 4.01 tags.

As I said, tedious.
Sella174 is offline   Reply With Quote
Old 10-26-2017, 07:27 AM   #67
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,582
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by Sella174 View Post
Quote:
Originally Posted by Doitsu View Post
Using unmanifested files with KindleGen might work, but you're not following best practices; it'll also ensure that an epub book assembled from these files will be invalid.
It does work and is documented in the “official” examples [...]
What "official" examples are you referring to?

Quote:
Originally Posted by Sella174 View Post
[...] but wasn’t that the point: me giving an example of something valid for KindleGen that produces an invalid ePub?
Not really, if you manifested all unmanifested files, KindleGen would continue to work and you'd end up with a valid epub.
You also claimed that it isn't possible to create valid epubs with Amazon guide items with Sigil, which simply isn't true.

Quote:
Originally Posted by Sella174 View Post
Character encoding in HTML5 is done with <meta charset="UTF-8">, but KindleGen still requires the depreciated HTML 4.01 method of <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">, even though the file is read as HTML5 if defined as such.
The current KindleGen version does not require these declarations.

Quote:
Originally Posted by Sella174 View Post
Quote:
Originally Posted by Doitsu View Post
In fact, according to section 2.2.1 of the Kindle Publishing Guidelines, Amazon recommends using valid epub books.
Not in version 2017.4 of that document.
Quote:
Originally Posted by Kinde Publishing Guidelines version 2017.4

2.2.1 KindleGen

Publishers can create Kindle files in-house by using a free software program called KindleGen. [...]

To create Kindle files using KindleGen, you need:

Last edited by Doitsu; 10-26-2017 at 07:48 AM.
Doitsu is offline   Reply With Quote
Old 10-26-2017, 07:59 AM   #68
Sella174
Enthusiast
Sella174 began at the beginning.
 
Sella174's Avatar
 
Posts: 46
Karma: 10
Join Date: Feb 2015
Device: Paperbacks
Quote:
Originally Posted by Doitsu View Post
What "official" examples are you referring to?
https://www.amazon.com/gp/feature.html?docId=1000765211 ... on the right.

Quote:
Originally Posted by Doitsu View Post
Not really, if you manifested all unmanifested file, KindleGen would continue to work and you'd end up with a valid epub.
If, but I don't have to for KindleGen to work.

Quote:
Originally Posted by Doitsu View Post
You also claimed that it isn't possible to create valid epubs with Amazon guide items with Sigil, which simply isn't true.
When Sigil stopped supporting Windows XP, it was still struggling with EPUB version 2. Maybe it has caught up with EPUB version 3 by now, but yes, I wouldn't know and neither do I care about Sigil.

ePub 2 was XHTML 1.1, whereas ePub 3 is XHTML5 (according to http://www.idpf.org/epub/30/spec/epu...changed-xhtml5). In that same document it states that <guide> and NCX has been depreciated in ePub 3 (http://www.idpf.org/epub/30/spec/epu...c-deprecations).

So which version of ePub do you make with Sigil? If ePub 2, then you can't use HTML5 tags; if ePub 3, then NCX - which KindleGen requires in an ePub - and <guide> are gone. Or do you go for a hybrid ePub 2/3 that might or might not work as expected on all devices?

Quote:
Originally Posted by Doitsu View Post
The current KindleGen version does not require these declarations.
Yes, it does. Maybe not for the languages in which you publish your books, but in mine it's certainly required.

Quote:
Originally Posted by Doitsu View Post
...
There is an “or” in there, so the use of an ePub is optional.
Sella174 is offline   Reply With Quote
Old 10-26-2017, 08:05 AM   #69
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,839
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by Sella174 View Post
As an example, <article> is an HTML5 tag, hence if I want to use it, I must define the source file as HTML5. Same with <aside>, <figure> and <footer>. Also, the Publishing Guidelines states that <font>, <center> and <big> are depreciated, all valid HTML 4.01 tags.

As I said, tedious.
But what do you do about Mobipocket format that doesn't support those features? How can you make it so things work in both formats? That's the problem at Amazon. You have to deal with an obsolete format.
JSWolf is online now   Reply With Quote
Old 10-26-2017, 08:13 AM   #70
Sella174
Enthusiast
Sella174 began at the beginning.
 
Sella174's Avatar
 
Posts: 46
Karma: 10
Join Date: Feb 2015
Device: Paperbacks
Quote:
Originally Posted by JSWolf View Post
But what do you do about Mobipocket format that doesn't support those features? How can you make it so things work in both formats?
I assume KindleGen knows how to convert these tags into Amazon's own proprietary encoding.

Quote:
Originally Posted by JSWolf View Post
You have to deal with an obsolete format.
So is HTML5, JPEG, paperbacks, internal combustion engines, nuclear power, farming in dirt ... the list goes on and on.
Sella174 is offline   Reply With Quote
Old 10-26-2017, 08:17 AM   #71
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,582
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by Sella174 View Post
If ePub 2, then you can't use HTML5 tags; if ePub 3, then NCX - which KindleGen requires in an ePub - and <guide> are gone.
You can compile epub3 books with KindleGen, if you define cover and toc with landmarks instead of guide items. For details see section 5.3.1 Defining Cover and TOC in the Kindle Publishing Guidelines.
Doitsu is offline   Reply With Quote
Old 10-26-2017, 08:47 AM   #72
Sella174
Enthusiast
Sella174 began at the beginning.
 
Sella174's Avatar
 
Posts: 46
Karma: 10
Join Date: Feb 2015
Device: Paperbacks
Quote:
Originally Posted by Doitsu View Post
You can compile epub3 books with KindleGen, if you define cover and toc with landmarks instead of guide items. For details see section 5.3.1 Defining Cover and TOC in the Kindle Publishing Guidelines.
What's it now? Five pages? Five pages of you all pushing the EPUB-to-(MOBI/KF8)-mobi methodology using Sigil and Calibre as the only way to create a (MOBI/KF8)-mobi. It’s not.

EOD
Sella174 is offline   Reply With Quote
Old 10-26-2017, 09:34 AM   #73
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 11,459
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
Quote:
Originally Posted by Sella174 View Post
As an example, <article> is an HTML5 tag, hence if I want to use it, I must define the source file as HTML5. Same with <aside>, <figure> and <footer>. Also, the Publishing Guidelines states that <font>, <center> and <big> are depreciated, all valid HTML 4.01 tags.

As I said, tedious.
Well, you may well find it tedious, but generally, most of the responders here are trying to help you, based on years of experience and tried and true best practices, all built from those years of experience and realistically, between all of us, thousands of books. Thousands. My firm alone has done more than 3500 eBooks/mobi files.

For example--you want to use article? Aside? Figure? Footer? Good luck with that, because NONE of those will work on the PRC/KF side of your MOBI file. That's what Jon (Wolfie) was saying, in his own way, when he said, "HTML5 doesn't work," or words to that effect.

Most of us have learned--the hard way--that thinking that X is a great idea, or that we can do X, because it works in Y, doesn't work in MOBI format, or at best, only works in KF8, and not in KF7. And sometimes, it won't work consistently or reliably across KF8, OR, it will work for Amazon KF8, but you can't make it work decently in iOS readers for Kindle.

For that matter, I'll tell you that there's crap in the KPG that flatly DOES. NOT. BLOODY. WORK, and if you get into it with Amazon--I mean, Seattle, not some guy at the call center/CSR in India--you'll find two completely different divisions telling you completely, and I mean, completely opposite things, coding-wise.

The KPG came around from two standpoints--one was Mobipocket, and the other was Word--period. To this day, it's a bit of a mishmosh, constantly being updated and tweaked and FIXED. The examples are, by and large--wrong. They have been for years.

BUT, hey: good luck with your MOBI files. As far as how tedious or tiring or boring, etc., this thread is, you asked about making a MOBI, by its lonesome, w/o ePUB. Fine. I told you several different ways to do it, all of them pretty much the ONLY ways to do it.

As far as ePUB, ANYONE at Amazon will tell you that ePUB is definitely preferred, and moreover, EVERY BPH loads ePUB, and only ePUB, to Amazon. Without exception. So, you can sit here and argue with us--those of us who've made thousands of mobis--that you know better, because, bygod, you read the INSTRUCTIONS--but when Doits tells you that ePUB is preferred, it was, it is, and it has been, and yes, it's been in the KPG practically since the beginning. Because Amazon's come out with those two godawful tools, the KindleCreate tools, they've dropped that last line from the KPG, but for professional publishers, I think you can reasonably infer that they'll be uploading ePUBs, in both 2 and 3 format, for years to come.


/hopefully, done with this thread now.

Hitch
Hitch is offline   Reply With Quote
Old 10-26-2017, 09:36 AM   #74
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 11,459
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
Quote:
Originally Posted by Sella174 View Post
I assume KindleGen knows how to convert these tags into Amazon's own proprietary encoding.
NO, it bloody well does NOT. That's why the table in the KPG shows you that it's ONLY KF8 supported.


Quote:
So is HTML5, JPEG, paperbacks, internal combustion engines, nuclear power, farming in dirt ... the list goes on and on.
Whatever.


Hitch
Hitch is offline   Reply With Quote
Old 10-26-2017, 01:25 PM   #75
Notjohn
mostly an observer
Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.
 
Posts: 1,515
Karma: 987654
Join Date: Dec 2012
Device: Kindle
Quote:
Originally Posted by Doitsu View Post
In fact, according to section 2.2.1 of the Kindle Publishing Guidelines, Amazon recommends using valid epub books.
I got all excited about that, but when I looked at 2.2.1, it appears to be merely one of two possibilities for using KindleGen:

>To create Kindle files using KindleGen, you need:
> A single HTML file that represents the entire book; or
> EPUB-compliant files.
Notjohn 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
18MB EPUB converts to 40MB Mobi! What can I do to reduce Mobi file size? perdman Conversion 11 12-09-2017 04:18 AM
PDF to MOBI and EPUB to MOBI bob-e-reader Kindle Formats 2 06-08-2015 05:47 AM
mobi > epub > mobi = changed line spacing? SampleAndy Conversion 3 03-01-2013 06:18 PM
Conversion from mobi (to mobi, or epub) breaks internal links bounder Conversion 1 10-09-2012 11:56 AM
Is the epub-mobi/mobi-epub convertion "lossless"? tanteoma Calibre 14 06-07-2012 10:57 AM


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


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