![]() |
#316 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 56
Karma: 3274
Join Date: Dec 2011
Device: iPad
|
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.
|
![]() |
![]() |
![]() |
#317 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,087
Karma: 91577715
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
|
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.
|
![]() |
![]() |
![]() |
#318 | |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 56
Karma: 3274
Join Date: Dec 2011
Device: iPad
|
Quote:
|
|
![]() |
![]() |
![]() |
#319 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
![]() |
#320 | ||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,733
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
![]() Quote:
Code:
%USERPROFILE%\AppData\Local\Amazon\Kindle Previewer 3\lib\fc\bin The usage is: Code:
mobicontentdumper dump_mobi7|dump_mobi8 [-outdir=XXX] Another interesting file is yjhtmlcleanerapp. The usage is: Code:
yjhtmlcleanerapp inputJsonFile yjhtmlcleanerapp inputHTMLFile outputHTMLFile |
||
![]() |
![]() |
![]() |
#321 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
![]() |
![]() |
![]() |
#322 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 56
Karma: 3274
Join Date: Dec 2011
Device: iPad
|
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.
|
![]() |
![]() |
![]() |
#323 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,087
Karma: 91577715
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
|
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.
|
![]() |
![]() |
![]() |
#324 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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 Last edited by baf; 02-16-2016 at 11:40 AM. Reason: link expired |
![]() |
![]() |
![]() |
#325 | |
The Grand Mouse 高貴的老鼠
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 74,015
Karma: 315160596
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
|
Quote:
|
|
![]() |
![]() |
![]() |
#326 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 405
Karma: 2330752
Join Date: May 2012
Device: kt
|
|
![]() |
![]() |
![]() |
#327 | |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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:
|
|
![]() |
![]() |
![]() |
#328 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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 |
![]() |
![]() |
![]() |
#329 |
The Grand Mouse 高貴的老鼠
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
![]() |
![]() |
![]() |
#330 | |
eBook Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,556
Karma: 93383099
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
Quote:
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
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 |