User`s guide

Publishing on Kindle: Guidelines for Publishers
Table of Contents ............................................................................................................... 55
6.15
Guidance on Media Captions ............................................................................................. 56
6.16
Custom Sample File ........................................................................................................... 56
6.17
7 Dictionary Overview .................................................................................................................. 56
Dictionary Entry Template .................................................................................................... 57 7.1
Metadata: Creating the OPF File .......................................................................................... 57
7.2
Basic Dictionary HTML ......................................................................................................... 58
7.3
7.3.1 Format ........................................................................................................................................................... 58
7.3.2 Frameset element .......................................................................................................................................... 58
7.3.3 Headword Index ............................................................................................................................................. 59
Inflections for Dictionaries .................................................................................................... 60 7.4
7.4.1 Inflection Index ............................................................................................................................................... 60
7.4.2 Exact-match parameter .................................................................................................................................. 61
Building a Dictionary with Kindlegen .................................................................................... 61 7.5
Testing Kindle Dictionaries ................................................................................................... 62
7.6
7.6.1 Format Testing ............................................................................................................................................... 62
7.6.2 Lookup Testing .............................................................................................................................................. 62
8 Media Queries ............................................................................................................................ 63
Media Query Guidelines ....................................................................................................... 63 8.1
Media Query Guideline #1: Use Correct CSS Syntax ............................................................................................. 63
8.1.1 63
8.1.2 Media Query Guideline #2: Add a CSS Comment Before Each Media Query ................................................. 64
8.1.3 Media Query Guideline #3: Always Use Non-Media Query Code To Target E-Ink Devices............................. 64
8.1.4 Media Query Guideline #4: Media Queries Should Appear After Non-Media Query Code .............................. 64
8.1.5 Media Query Guideline #5: Avoid Duplicating Code ....................................................................................... 65
Using Media Queries ............................................................................................................ 66 8.2
Using Media Queries for Backward Compatibility With Mobi ............................................... 68
8.3
Submitting a Media Query .................................................................................................... 69
8.4
8.4.1 Option 1: Using One CSS File. ....................................................................................................................... 70
8.4.2 Option 2: Using Different CSS Files ............................................................................................................... 70
8.4.3 Option 3: Using Style tags .............................................................................................................................. 70
8.4.4 Option 4: Using @import ................................................................................................................................ 71
Using the display:none Property with Media Queries .......................................................... 71 8.5
8.5.1 Using the display:none Property with Complex Tables ................................................................................... 71
8.5.2 Using the display:none Property with SVG Images......................................................................................... 73
8.5.3 Limitation on Using the display:none Property ................................................................................................ 73
9 Kindle Best Practices ............................................................................................................... 73
Testing Kindle Books ............................................................................................................ 73 9.1
10 Kindle Quality Guidelines ...................................................................................................... 74
11 Appendices .............................................................................................................................. 76
Kindle Publishing Guidelines Amazon.com 6