View Single Post
Old 11-18-2010, 02:05 PM   #1
miwie
Connoisseur
miwie began at the beginning.
 
Posts: 76
Karma: 12
Join Date: Nov 2010
Device: Android, PB Pro 602
eopub output: omit "lang=XX"

My recipe (main target epub output) creates (X)HTML files which contain duplicated 'lang' attributes like e.g.:

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="de">

in the 'index.html' file of every article. 'epubcheck' complains about these attributes.

How can I omit the 'lang' attribute (and set 'xml:lang' to the desired value of 'de' or 'de-DE')?

Excerpt from my recipe:

language = 'de'
lang = 'de-DE'

conversion_options = {'publisher': publisher,
'language': lang,
}

Michael
PS. Is epub output created from calibre supposed to be 'epubcheck' clean?
miwie is offline   Reply With Quote