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?
|