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 12-20-2015, 11:57 AM   #316
AaronShep
Connoisseur
AaronShep could sell banana peel slippers to a Deveel.AaronShep could sell banana peel slippers to a Deveel.AaronShep could sell banana peel slippers to a Deveel.AaronShep could sell banana peel slippers to a Deveel.AaronShep could sell banana peel slippers to a Deveel.AaronShep could sell banana peel slippers to a Deveel.AaronShep could sell banana peel slippers to a Deveel.AaronShep could sell banana peel slippers to a Deveel.AaronShep could sell banana peel slippers to a Deveel.AaronShep could sell banana peel slippers to a Deveel.AaronShep could sell banana peel slippers to a Deveel.
 
Posts: 56
Karma: 3274
Join Date: Dec 2011
Device: iPad
Quote:
Originally Posted by jhowell View Post
Aaron, it sounds like you have made contact with someone knowledgeable about KFX at Amazon.

Did you discover whether these problems need to be fixed in the central KFX generation process or individual reading devices or both?
I'm afraid there's a limit to what I can say for now, and there's much more that I don't know. But I think it has already become clear that changes can happen at any time, so at least some of these must be made in the processing. KFX is definitely a work in progress and likely always will be.
AaronShep is offline   Reply With Quote
Old 12-25-2015, 07:28 PM   #317
jhowell
Grand Sorcerer
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 7,087
Karma: 91577715
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
Quote:
Originally Posted by AaronShep View Post
I'm afraid there's a limit to what I can say for now, ...
I noticed that in your book HTML Fixes for Kindle you use white-space: nowrap and that it seems to be effective even in the KFX version of the book. Hopefully you will be able to share other useful tidbits in the future.
jhowell is offline   Reply With Quote
Old 12-26-2015, 02:28 AM   #318
AaronShep
Connoisseur
AaronShep could sell banana peel slippers to a Deveel.AaronShep could sell banana peel slippers to a Deveel.AaronShep could sell banana peel slippers to a Deveel.AaronShep could sell banana peel slippers to a Deveel.AaronShep could sell banana peel slippers to a Deveel.AaronShep could sell banana peel slippers to a Deveel.AaronShep could sell banana peel slippers to a Deveel.AaronShep could sell banana peel slippers to a Deveel.AaronShep could sell banana peel slippers to a Deveel.AaronShep could sell banana peel slippers to a Deveel.AaronShep could sell banana peel slippers to a Deveel.
 
Posts: 56
Karma: 3274
Join Date: Dec 2011
Device: iPad
Quote:
Originally Posted by jhowell View Post
I noticed that in your book HTML Fixes for Kindle you use white-space: nowrap and that it seems to be effective even in the KFX version of the book. Hopefully you will be able to share other useful tidbits in the future.
It does work, and I recommend it in place of the nonbreaking hyphen, which causes problems on some Kindles. But you shouldn't need it in place of the nonbreaking space if KFX recognizes that in the form of an HTML entity, or if the Kindle team fixes the problem with the nonbreaking space character being ignored -- which is what I hope.
AaronShep is offline   Reply With Quote
Old 02-08-2016, 02:02 PM   #319
jhowell
Grand Sorcerer
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 7,087
Karma: 91577715
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
I downloaded the new Kindle Previewer 3 (Beta), which adds support for Enhanced Typesetting (KFX).

The list of file types it opens are: .kpf, .mobi, .azw, .epub, .htm, .html, .xhtml, .opf, .prc, .azw3, and .azw8. (azw8 is an alternate extension for kfx.)

There are some interesting file names in the previewer software. For example:
Kindle Previewer 3\lib\fc\lib\EpubToKFXConverter-1.0.jar

So it looks like there may be a way to convert our own books to KFX using this software. I am sure that there is a lot to be learned from it.

ETA: Kindle Package Format (.kpf) is the format produced by Kindle Textbook Creator.

Last edited by jhowell; 02-08-2016 at 04:58 PM.
jhowell is offline   Reply With Quote
Old 02-10-2016, 08:30 AM   #320
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,733
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by jhowell View Post
I downloaded the new Kindle Previewer 3 (Beta), which adds support for Enhanced Typesetting (KFX).
I had a quick look at it, too. The preview, which is currently limited to Kindle Fire and Kindle for iOS, appears to working, but it won't generate .kfx files for sideloading.

Quote:
Originally Posted by jhowell View Post
There are some interesting file names in the previewer software. For example:
Kindle Previewer 3\lib\fc\lib\EpubToKFXConverter-1.0.jar
There are also interesting files in:

Code:
%USERPROFILE%\AppData\Local\Amazon\Kindle Previewer 3\lib\fc\bin
For example, MobiContentDumper.exe dumps the mobi7 and mobi8 parts of KindleGen generated .mobi files as .json files.

The usage is:

Code:
mobicontentdumper dump_mobi7|dump_mobi8 [-outdir=XXX]
Hopefully, this tool will eventually allow the KindleUnpack developers to reverse-engineer the KFX format.

Another interesting file is yjhtmlcleanerapp. The usage is:

Code:
yjhtmlcleanerapp inputJsonFile
yjhtmlcleanerapp inputHTMLFile outputHTMLFile
Doitsu is offline   Reply With Quote
Old 02-12-2016, 02:01 PM   #321
jhowell
Grand Sorcerer
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 7,087
Karma: 91577715
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
Amazon is continuing to expand their use of KFX. I just downloaded a graphic novel using the latest version of the Android app and I noticed that, even though the Amazon web page for it shows "Enhanced Typesetting: Not Enabled", the book downloaded to the device as a series of KFX files.
jhowell is offline   Reply With Quote
Old 02-13-2016, 12:13 AM   #322
AaronShep
Connoisseur
AaronShep could sell banana peel slippers to a Deveel.AaronShep could sell banana peel slippers to a Deveel.AaronShep could sell banana peel slippers to a Deveel.AaronShep could sell banana peel slippers to a Deveel.AaronShep could sell banana peel slippers to a Deveel.AaronShep could sell banana peel slippers to a Deveel.AaronShep could sell banana peel slippers to a Deveel.AaronShep could sell banana peel slippers to a Deveel.AaronShep could sell banana peel slippers to a Deveel.AaronShep could sell banana peel slippers to a Deveel.AaronShep could sell banana peel slippers to a Deveel.
 
Posts: 56
Karma: 3274
Join Date: Dec 2011
Device: iPad
Quote:
Originally Posted by Doitsu View Post
Another interesting file is yjhtmlcleanerapp. The usage is:

Code:
yjhtmlcleanerapp inputJsonFile
yjhtmlcleanerapp inputHTMLFile outputHTMLFile
This supports a new theory of mine that processing for KFX/Enhanced Typesetting doesn't so much add anything as just remove or clean up any code that would get in the way. Then it signals the Kindle to use a different rendering engine.
AaronShep is offline   Reply With Quote
Old 02-15-2016, 11:17 PM   #323
jhowell
Grand Sorcerer
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 7,087
Karma: 91577715
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
Quote:
Originally Posted by Doitsu View Post
I had a quick look at it, too. The preview, which is currently limited to Kindle Fire and Kindle for iOS, appears to working, but it won't generate .kfx files for sideloading.
The previewer produces a new file type, KDF, which is basically KFX data in an sqlite3 database instead of a KFX container. I wonder if that is something specific to the previewer software or if this is an intermediate format produced as part of their production tool chain. I'm learning quite a bit from examining these files.
jhowell is offline   Reply With Quote
Old 02-16-2016, 09:23 AM   #324
baf
Evangelist
baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.
 
Posts: 405
Karma: 2330752
Join Date: May 2012
Device: kt
I also played with some temporary files created during conversion. That gives an idea about optimization process.
For example have a look at changes introduced to the original xhtml file, while converting epub to enhanced mobi.

UPDATE: The link expired, so I am posting the files here
Attached Files
File Type: txt enhanced.txt (5.1 KB, 234 views)
File Type: txt original.txt (1.8 KB, 240 views)

Last edited by baf; 02-16-2016 at 11:40 AM. Reason: link expired
baf is offline   Reply With Quote
Old 02-16-2016, 09:30 AM   #325
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: 74,015
Karma: 315160596
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
Quote:
Originally Posted by baf View Post
For example have a look at changes introduced to the original xhtml file, while converting epub to enhanced mobi.
Which is which?
pdurrant is offline   Reply With Quote
Old 02-16-2016, 09:33 AM   #326
baf
Evangelist
baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.
 
Posts: 405
Karma: 2330752
Join Date: May 2012
Device: kt
Quote:
Originally Posted by pdurrant View Post
Which is which?
Original file from epub on the left
baf is offline   Reply With Quote
Old 02-16-2016, 09:36 AM   #327
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,808
Karma: 6000000
Join Date: Nov 2009
Device: many
Wow! - what a mess it makes! Every element seems to have height and width attribute. They also remove the link to external css. It looks like they are making some sort fixed layout epub.

You can actually find the javascripts they use to make these adjustments in the Kindle Previewer 3 app as well.

I simply can not get Previewer to actually make a kfx (or kfd) file of any kind no matter which device I pick. Any hints on how to invoke it to see it actually it make a kfx file from an azw3?

KevinH


Quote:
Originally Posted by baf View Post
I also played with some temporary files created during conversion. That gives an idea about optimization process.
For example have a look at changes introduced to the original xhtml file, while converting epub to enhanced mobi.
KevinH is offline   Reply With Quote
Old 02-16-2016, 09:39 AM   #328
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,808
Karma: 6000000
Join Date: Nov 2009
Device: many
baf, can you get a dump of the environment variables that are set during the conversion to kfx? The internal Epub conversion jar seems to look for AMZN_ prefixed environment variables in places but so it might help to see what is getting set.

KevinH
KevinH is offline   Reply With Quote
Old 02-16-2016, 09:41 AM   #329
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: 74,015
Karma: 315160596
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
I suspect that all those hard coded values in the HTML will change depending on the destination device. If so, the KFX format must be intended to move the processing of complex CSS layouts to Amazon's servers rather than the ebook reader processor, leaving much more straightforward HTML for the ebook reader to set.
pdurrant is offline   Reply With Quote
Old 02-16-2016, 09:46 AM   #330
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,556
Karma: 93383099
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
Quote:
Originally Posted by pdurrant View Post
I suspect that all those hard coded values in the HTML will change depending on the destination device. If so, the KFX format must be intended to move the processing of complex CSS layouts to Amazon's servers rather than the ebook reader processor, leaving much more straightforward HTML for the ebook reader to set.
We did know that one of the goals of the KFX format was to supply device-specific formatting - eg image resolutions tailored to the device.
HarryT is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Using Kindle format vs ePub format is like using a compiler vs winzip? Julius Caesar Workshop 1 09-01-2013 07:34 PM
iPhone Convert epub format to kindle for iPhone format. Is it possible? thecyberphotog Apple Devices 16 03-14-2013 01:04 AM
No 'epub' format shown in Plugboards Format dropdown list kakkalla Library Management 3 06-16-2012 04:23 AM
Ebook in PRC format will not convert to any other format Katelyn Calibre 0 10-01-2010 07:02 PM
Master Format for multi-format eBook Generation? cerement Workshop 43 04-01-2009 12:00 PM


All times are GMT -4. The time now is 07:21 PM.


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