![]() |
#1 |
Connoisseur
![]() 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? |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,170
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
conversion_options = { 'language': 'de' }
if your input document is epubcheck compliant then your output will be too. Though IMO epubcheck is the world's stupidest idea. |
![]() |
![]() |
Advert | |
|
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
"Settings," then "311" - Int'l Kindle searches for wireless providers in the area | Dr. Drib | Amazon Kindle | 2 | 08-28-2011 10:27 AM |
Yep. It's official. Sony Reader has "ruined" books for me. A final "review." | WilliamG | Sony Reader | 48 | 01-14-2011 03:49 AM |
Woher bekomme ich "Infinite Jest" oder "Unendlicher Spaß" von David Foster Wallace? | bitschnau | Erste Hilfe | 3 | 11-01-2010 01:22 PM |
"Balanced copyright" and feedback from real people (not just corporate "persons") | llreader | News | 16 | 02-15-2010 08:27 AM |
"Zeit-Odyssee"-Trilogie droht das "dunkle Turm"-Schicksal | ThR | E-Books | 4 | 02-10-2010 05:18 AM |