Publishing on Kindle: Guidelines for Publishers that pops up, you should see a folder called documents. Put the dictionary file into this folder, and eject your Kindle from the computer.
• Look up a variety of words to see what definition is returned. This can only be done on an e Ink device. To do this, set the test dictionary as default, and look up words in other books. To set this dictionary as the default dictionary: o
Kindle Keyboard: Go to Home > Menu > Settings >Menu > Change Primary
Dictionary. o
Kindle 4 or Kindle Touch: Go to Home > Menu > Settings > Dictionaries.
Open a different title, select a word, and note the definition returned. If words are not returning the correct definition (or any definition), there is probably a problem with the HTML tagging.
Suggestions of words to look up include: o
Root words and conjugations of regular and irregular verbs. Example: walk, walks, walked, walking; go, goes, went, gone, going. o
Nouns, adjectives, adverbs and their conjugations/declensions if they exist. Example: desk, desks; wolf, wolves; hot, hotter, hottest. o
Any type of word or grammatical/punctuation convention commonly used in the language and not listed above. Example: contractions.
• Check the index view of the dictionary. This can only be done on an e Ink device. To do this, open the dictionary and start typing a word in the Search box. An alphabetized list of headwords should appear and should dynamically update based on which letters are typed.
8 Media Queries
The new Kindle Format 8 (KF8) includes greater support for Cascading Style Sheets (CSS). For devices without KF8 support, content creators may require more control over the Mobi 7 experience than provided by the standard conversions supported by KindleGen. To address this need, Amazon has implemented media queries as a way to apply the best CSS styles for each file format. This allows complex CSS formatting to be used for KF8 and more basic formatting to be used for the Mobi format. Media queries are part of the W3 standard. For more information, visit http://www.w3.org/TR/css3-mediaqueries/
Support for two new media types enables content creators to use specific CSS based on the Mobi or KF8 file format: amzn-mobi and amzn-kf8.
• For KF8 CSS styles, use the media query @media amzn-kf8. This is only applied for the KF8 format.
• For Mobi CSS styles, use the media query @media amzn-mobi. This is only applied for the
Mobi format.
The @media screen and @media all styles continue to apply to both KF8 and Mobi. If the media type is not amzn-mobi, amzn-kf8, screen, or all, Kindle ignores it.
8.1 Using Media Queries
The following table outlines examples of supported media queries and the CSS applied to KF8, Mobi, and other readers:
Media Queries in CSS CSS Applied to KF8 CSS Applied to
Mobi
CSS Applied to
Other Readers
- - @media amzn-mobi
{ font-
Kindle Publishing Guidelines Amazon.com 56
Publishing on Kindle: Guidelines for Publishers
Media Queries in CSS
.class1
{
font=size:3em;
font-weight: bold;
}
}
.class1
{
font-style: italic;
font-size:2em;
}
@media amzn-mobi
{
.class1
{
font-size:3em;
font-weight: bold;
}
}
}
}
@media amzn-mobi
{
.class1
{
font-size:3em
!important;
font-weight: bold
!important;
CSS Applied to KF8 CSS Applied to
Mobi size:3em;
CSS Applied to
Other Readers font-weight: bold;
font-style: italic; font-style: italic;
font-size: 2em; font-size:
3em; font-weight: bold;
font-style: italic;
font-size:2em; font-style: italic;
font-size:2em; font-style: italic; fontsize:3em; font-weight: bold;
font-style: italic;
font-size:2em;
Kindle Publishing Guidelines Amazon.com 57
Publishing on Kindle: Guidelines for Publishers
Media Queries in CSS
.class1
{
font-style: italic;
font-size:2em;
}
@media not amzn-mobi
{
.firstletter
{
float: left;
font-size: 3em;
line-height: 1;
font-weight: bold;
padding-right: .2em;
margin: 10px
}
}
@media amzn-mobi
{
.firstletter { font-size: 3em;
}
}
@media amzn-kf8
{
p {
color: red;
}
}
CSS Applied to KF8 CSS Applied to
Mobi
CSS Applied to
Other Readers
.firstletter
{
float: left;
font-size:
3em;
line-height:
1;
font-weight: bold;
padding-right:
.2em;
margin: 10px
} firstletter
.firstletter
{ { font-size:
3em;
}
float: left;
font-size:
3em;
line-height:
1;
font-weight: bold;
padding-right:
.2em;
margin: 10px
}
}
p {
color: red;
}
Kindle Publishing Guidelines Amazon.com 58