Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Recipes

Notices

Reply
 
Thread Tools Search this Thread
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
Old 11-18-2010, 05:16 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,850
Karma: 22666666
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.
kovidgoyal is online now   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 11:08 PM.


MobileRead.com is a privately owned, operated and funded community.