01-01-2013, 04:13 AM | #1 |
eBook DIYer
Posts: 111
Karma: 10
Join Date: Oct 2012
Location: Europe
Device: K4, KF HD 8.9, Readium
|
Language declaration tn the head section
Hi,
I am writting my eBooks in different languages. In Sigil preferences, I have set up the user interface language and the default language for metadata to spanish (for example). if I add a blank HTML file I was expecting the head declaration to be: <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="es"> Instead, I get: <html xmlns="http://www.w3.org/1999/xhtml"> So... I am not sure if the language declaration is necessary or has an impact or not on the final EPUB package. If it has, I know I can use a RegEx replace but it will be more productive that Sigil creates directly the code extracting the language data from the metadata. Just a suggestion. Thanks. |
01-01-2013, 05:53 AM | #2 |
Addict
Posts: 206
Karma: 547516
Join Date: Mar 2008
Location: Berlin, Germany
Device: KObo Clara, Kobo Aura, PRS-T1, PB602, CyBook Gen3
|
The language of an epub book is defined in its opf file.
There you will find something like this: Code:
<dc:language>en</dc:language> |
Advert | |
|
01-01-2013, 06:09 AM | #3 |
eBook DIYer
Posts: 111
Karma: 10
Join Date: Oct 2012
Location: Europe
Device: K4, KF HD 8.9, Readium
|
OK. I just modified the language in the Metadata editor and Sigil instantly adds it to the OPF.
Thx Sunlite. |
01-01-2013, 06:18 AM | #4 |
Well trained by Cats
Posts: 29,782
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Opening the meta editor and just closing it again seems to set (a blank) Language to the system setting. No need to type if that is what you want
|
Tags |
head, language, metadata, sigil |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Pocket eDGe and Full-size eDGe: Head to Head Comparison | alefor | enTourage Archive | 28 | 12-01-2010 07:44 PM |
Namespace declaration | ChrisI | Sigil | 1 | 08-22-2010 06:02 AM |
Declaration of Independence | bill the smith | News | 140 | 10-02-2009 05:01 PM |
Video Head to Head of Kindle and Reader | Kingston | Which one should I buy? | 30 | 01-24-2008 08:03 PM |