Kindle MOBI: back-compatibility and future-proofing?

Todsplace

Super Member
Registered
Joined
Feb 13, 2011
Messages
161
Reaction score
2
Hi guys,

I was thinking about ebook back-compatibility and future-proofing, and was wondering if anyone knew of the perfect setup for handling for this?

I'm guessing that the areas of concern where are doctypes (XHTML, HTML), charsets, and entity usage (named, numerical, or direct character injection into something like UTF-8?). What's the best combo of these things?

Some things I've started to realize (and please correct me if I'm wrong, as I'm a newbie):


  • Numerical entities are supposed to give old kindles some trouble.
  • UTF-8, in general on the www, does not need entities, and can support direct injection of the character[SUP][1][/SUP][SUP][2][/SUP], but most people who use UTF-8 in ebooks seem to also put the named entities as well.
  • I believe earlier Kindles had initially more support for ISO-8859-1 than UTF-8, making me wonder if UTF-8 HTML docs will be okay on ye olde Kindles.
  • I've read that at one stage, Kindle DTP required people to use named entities over numerical ones--atleast the accounts form people at the DTP forum seem to suggest this[SUP][3][/SUP]. However, the current guide on their site does not mention named entities at all[SUP][4][/SUP].
  • The release notes inside the zip file for the latest version of KindleGen states that Kindlegen has "changed default encoding of the generated books to utf-8."[SUP][Link to download page of latest version.][/SUP]
My head is spinning, lol. I'm not a techhead, and I just need a robust doctype/charset/special character handling suggestion--one that will be back/future compatible. I'm currently using XHTML Transitional with an ISO-8859-1 charset and named entities.

Any help would be great :)
Todsplace
 
Last edited:

davidw

Registered
Joined
May 16, 2011
Messages
15
Reaction score
1
Website
www.liberwriter.com
I think named entities are better than numerical ones. I recently had a customer with some Hebrew characters that were not coming through at all, so we had to choose between rendering them as images and simply avoiding them.

I'd like to see some stats on numbers of different kindles out there, I think that'd be useful in deciding what to support and what not to.
 

Todsplace

Super Member
Registered
Joined
Feb 13, 2011
Messages
161
Reaction score
2
^ Yes, Kindle stats would be great. I'm not quite sure how many Kindle users are using an older model.

If I find stats I'll post them here.
 

Deleted member 42

1. If there's an HTML entity, use it. HTML entities use a now very reliable standardized set of characters. The named convention is the standard one since 4.01 transitional. Here's the list, based on the standard.

2. If you need Unicode for non-Roman characters, for instance Japanese, or Persian, or another language, go with UTF-8, and make sure you've that in your doc declaration. Don't use Unicode if there's an entity.

3. One of the problems with Unicode is that you then need to know that the font the reader will be using has Unicode support, and to what extent; this is what makes it tricky.
 

Todsplace

Super Member
Registered
Joined
Feb 13, 2011
Messages
161
Reaction score
2
Hi Medievalist,

Thanks for the feedback. You raise some good points. I hadn't actually thought about Unicode support and fonts!

May I ask: do you know if older Kindles will have an issue with XHTML?

Cheers,
Todsplace
 

Deleted member 42

Hi Medievalist,

Thanks for the feedback. You raise some good points. I hadn't actually thought about Unicode support and fonts!

May I ask: do you know if older Kindles will have an issue with XHTML?

Cheers,
Todsplace

I don't.

I will note that 4.01 transitional is a safe bet; if the device supports XHTML, it'll be fine with 4.01.
 

Todsplace

Super Member
Registered
Joined
Feb 13, 2011
Messages
161
Reaction score
2
Thanks for the answer. Yes, that does sound like a safer bet. May I ask what's your preference for closing tags?

For example, for one blank line in a page, which would you recommend?

  1. <br><br>
  2. <br></br>
  3. <br/><br/>
  4. <br /><br />
I see Amazon mentions the last one in their guide, but is it really semantically sound? The Jabberwocky example in the KindleGen zip file uses a mixture (<br> for individual lines in poetry and <br/><br/><br/> elsewhere).
 
Last edited:

Deleted member 42

I see Amazon mentions the last one in their guide, but is it really semantically sound? The Jabberwocky example in the KindleGen zip file uses a mixture (<br> for individual lines in poetry and <br/><br/><br/> elsewhere).

<br /><br /> is the XHTML/XML form of <br>

If you're using an XHTML declaration, use <br /><br />; if you're using an HTML declaration up to an including 4.x transitional use <br>, as a single un-paired tag.
 

Todsplace

Super Member
Registered
Joined
Feb 13, 2011
Messages
161
Reaction score
2
Thanks Medievalist :)

I take it that you use the ISO-8859-1 charset for your work?
 

Deleted member 42

Thanks Medievalist :)

I take it that you use the ISO-8859-1 charset for your work?

:D

I'm a sort of specialist in terms of character sets, digital text, and standards.

So I do a lot of consulting about how to present text correctly, particularly in the context of scholarly writing.
 

Todsplace

Super Member
Registered
Joined
Feb 13, 2011
Messages
161
Reaction score
2
Ah, so I'm guessing you've explored alot of the different types? :D

At this point i'm tossing up between the ISO-88591-1 and the UTF-8. But after thinking about it, and considering some of your points, I'm most likely going with HTML4 instead of XHTML.
 

Todsplace

Super Member
Registered
Joined
Feb 13, 2011
Messages
161
Reaction score
2
By the way, do you know if <a id=""></a> is okay with older kindles?
I stopped using <a name=""></a> in favour of the id system, which I'm guessing will probably be more future compatible due to the general shift from names to id values.
 

Deleted member 42

By the way, do you know if <a id=""></a> is okay with older kindles?
I stopped using <a name=""></a> in favour of the id system, which I'm guessing will probably be more future compatible due to the general shift from names to id values.

I'd go with ID, personally, but this is six of one, half a dozen of the other.

What I would concentrate on is keeping a live version of the document you use to generate the ebook, in whatever format.

You will, for one reason or another, have to re-generate your ebooks unless they completely fail commercial viability.
 

Todsplace

Super Member
Registered
Joined
Feb 13, 2011
Messages
161
Reaction score
2
Could you clarify what you mean by live version? Just a stable version?

And as for re-generation, do you mean newer versions of released titles for Amazon's Kindle DTP as their software changes and as newer Kindles come out?
 

Deleted member 42

Could you clarify what you mean by live version? Just a stable version?

Sorry; it's a term of art.

It means a golden master, a file with all the editorial corrections, that you maintain in terms of viability in software.

That is, depending on how serious you are about archival strategies, andpublishing:

1. You have a native word processor file, say in MSWord, that opens and displays and functions perfectly in the current version of the software that you have, and you have a viable version.

2. You have versions of that golden master saved in a non-degrading format, like .pdf or hardcopy or both.

3. You have an easily imported version of that file in a archive-accepted format, like HTML 4.x transitional and / or .rtf.

And as for re-generation, do you mean newer versions of released titles for Amazon's Kindle DTP as their software changes and as newer Kindles come out?

Yes. You need to be able to create a new ebook edition as devices and file formats change--and they will change.

This is not, btw, unique to digital publishing; this is inherent in the technologies of publishing, going back to the 15th century.
 

Todsplace

Super Member
Registered
Joined
Feb 13, 2011
Messages
161
Reaction score
2
Yes. You need to be able to create a new ebook edition as devices and file formats change--and they will change.

Ah, I see. In your experience, does Amazon make it difficult for authors and publishers to replace ebooks with newer versions? As in swapping out a file without changing the metrics, sales page and all that?

I'm going to poke around their help files, but I'm guessing it would be weird to have to delete an out of date format in order to create a page for a newer format of the same product.
 

Todsplace

Super Member
Registered
Joined
Feb 13, 2011
Messages
161
Reaction score
2
Ah, I found the link: https://kdp.amazon.com/self-publishing/help/help?topicId=A2KRM4C8E91086

Yes, it seems you can modify content and (presumably) revise stuff.

Hmm, maybe I'm obssessing over nothing (regarding future-proofing) as files seem to be able to be periodically updated. But thank you for the advice, Medievalist. As always, you've been very helpful! I think you've answered almost all the questions I've ever posted on AW :D
 

Deleted member 42

I'm going to poke around their help files, but I'm guessing it would be weird to have to delete an out of date format in order to create a page for a newer format of the same product.

It's possible, though, keep in mind if you make substantial changes to the text/content, you ought to call it a second edition.
 

Sargentodiaz

Super Member
Registered
Joined
Oct 30, 2007
Messages
1,330
Reaction score
61
There's a place to indicate revisions when you do through the edit process.
Just remember, when you do, it goes off the shelf until someone at Amazon reviews and releases it.
 

Todsplace

Super Member
Registered
Joined
Feb 13, 2011
Messages
161
Reaction score
2
Thanks for the extra info.

I didn't know Amazon had to review it before it went back online. This is for content that is edited through the edit html option, right?
 
Last edited: