View Single Post
Old 06-23-2021, 03:12 PM   #6
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by abraum View Post
But this doesn't work for my perhaps because of wrong or missing "xml:lang"? where can i add this to the epub?
1. Which language is your book?

You use this information to figure out which codes to use. For example:

en = English
de = German
fr = French
es = Spanish

2. You go into your chapters and add a:

Code:
lang="en" xml:lang="en"
to your <html>. So, if this is the original:

Code:
<html xmlns="http://www.w3.org/1999/xhtml">
you change it to:

Code:
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
This now says: "Hey, all the HTML inside of here is English."

3. Go into your EPUB's metadata and make sure the language is correct too.

In Sigil, you get there by Tools > Metadata Editor.

You should see a Language or dc:language column:

Code:
Language   |   en
This is saying: "Hey, this entire book is English"!

4. To double-check the languages are all applied correctly, you can also use Sigil's/Calibre's Spellcheck Lists.

In Sigil, press Tools > Spellcheck > Spellcheck.

In Calibre, press Tools > Check Spelling.

This will pop up a list of all Words + # of Times Used + Language.
Tex2002ans is offline   Reply With Quote