Publishing on Kindle: Guidelines for Publishers
Kindle Publishing Guidelines
18 Appendix D: Guidelines for Converting XMDF to KF8
Kindlegen accepts the folder containing the XMDF source file as input. Use the command:
kindlegen <folder name>
You can use an additional command line option (-intermediate_only) to generate intermediate
kindlegen -intermediate_only <folder name>
This option generates intermediate files as OPF/HTML files in a new folder next to the input folder.
Kindlegen names this folder with the input folder name followed by _dump. To change anything in the
intermediate files, use these intermediate HTML or OPF files.
The OPF file is named current_content.opf and can be found at the same location as the main.xml file.
Use the following command to generate the KF8 from OPF/HTML files:
kindlegen <OPF File>
An XMDF source can have multiple issues that degrade the reading experience on Kindle. You can
correct these issues to improve the reading experience. The following sections list a few of the top source
issues found in our testing,
18.2.1 Poor Image Quality
Bad quality images will result in the cover or other image being displayed too small. To avoid this, provide
good quality images. For quality requirements, see section 4 Cover Image Guidelines and section 9.4
18.2.2 Blurred Gaiji characters
Replace Gaiji characters with corresponding code characters or provide high quality images of at least 64
x 64 to avoid blurring.
Requirements for Gaiji image files:
Image format: PNG (8-bit) format or JPEG format (8-bit transparent image recommended)
Size: 128 x 128 pixels or greater is recommended
18.2.3 TOC Entries Hanging Style
Use the proper style of positive margin and negative indent to create TOC text with the proper
<p top_line_indent = "-1em" top = "1em">
<char_id char_id = "CR0002">Part 1</char_id><br/>