|04-05-2012, 05:25 PM||#1|
Join Date: May 2011
TWO OPF files or something like Media Queries in the OPF file for KF8 and MOBI?
So, I have a fixed layout book that looks great on the Kindle Fire, and just fine on the older Kindles. I used media queries in the css (lots of display:none !important and other silliness going on)… but it works.
However, these lines of code in the OPF are breaking the Kindle book, and when removed they ruin the fixed layout version:
<meta name="fixed-layout" content="true"/> <meta name="original-resolution" content="600x1024"/> <meta name="orientation-lock" content="portrait"/> <meta name="RegionMagnification" content="true"/>
1) Use something like a media query so that Legacy Kindle readers ignore these four lines of code
2) Create two OPF files, one for the Fire, and one for MOBI
Incidentally, the cover looks pretty bad on the MOBI version, because the Kinidle Fire uses a different aspect ratio. Either of these solutions (or perhaps there's something I haven't thought of yet) would allow me to call two covers in this metadata as well, which would be fantastic.
Thanks in advance… I have looked around, can't find anything regarding this particular issue.
|04-07-2012, 08:36 PM||#2|
Join Date: Dec 2010
Device: Kindle 3
Since Kindlegen creates the mobi and KF8 parts separately, you could theoretically try to generate the non-KF8 mobi without the metadata and merge it with the KF8 part.
For more information on this highly experimental method see the Generating mobi and KF8 parts of Kindle file from separate sources thread.
However, there's no guarantee that the combined file will be accepted by KDP.
Also there's a distinct possibility that fixed layout mobis will be made available only to Kindle Fire users and Kindle apps with KF8 support. I.e. the non-KF8 mobi part might be discarded anyway.
Last edited by Doitsu; 04-08-2012 at 03:52 AM.
|04-07-2012, 10:25 PM||#3|
Join Date: Jan 2010
Device: Kindle Fire HD, Kindle 2
|04-17-2012, 05:06 AM||#4|
Join Date: Jul 2011
Device: Amazon Kindle
If you're just producing books for your personal enjoyment, or at least distribution through outlets other than Amazon, the "master mobi" files created by KindleGen will load properly on devices and apps supporting either Kindle Format 8 or the older MobiPocket format. However, if you're intending to sell the books through Amazon there's really no point in even worrying about the legacy readers since customers won't be able to download the books to those devices.
|Thread Tools||Search this Thread|
|Thread||Thread Starter||Forum||Replies||Last Post|
|Fixed Layout Sample ".mobi" file with package(html, css, opf, ncx files).||Sushil||Kindle Fire||1||01-13-2012 08:16 AM|
|Mobi - missing opf files||nemo1966||Kindle Formats||2||08-09-2011 02:35 PM|
|Do I need to encode anchorr hashes (#) within Mobi and OPF files?||Stodder||Kindle Formats||2||06-06-2011 07:53 PM|
|OPF file OPS/package.opf is missing||Run2Eat||ePub||2||05-31-2011 07:52 PM|
|Help! Customize output file name? OPF files?||jaeneva||Calibre||17||04-12-2009 07:16 PM|