|
|
#1 |
|
Junior Member
![]() Posts: 8
Karma: 10
Join Date: Oct 2012
Location: Córdoba, Spain
Device: kindle 4
|
Language declaration tn the head section
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. |
|
|
|
|
|
#2 |
|
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 91
Karma: 8474
Join Date: Mar 2008
Location: Berlin, Germany
Device: 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> |
|
|
|
|
Enthusiast
|
|
|
|
#3 |
|
Junior Member
![]() Posts: 8
Karma: 10
Join Date: Oct 2012
Location: Córdoba, Spain
Device: kindle 4
|
OK. I just modified the language in the Metadata editor and Sigil instantly adds it to the OPF.
Thx Sunlite. |
|
|
|
|
|
#4 |
|
Staff to 4 Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,707
Karma: 2485850
Join Date: Aug 2009
Location: The (original) Silicon Valley, USA
Device: Galaxy Tab 2,Black Astak PEz, K4NT(now Wifes)
|
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
__________________
Using: Ubuntu(32 bit):Oneric,Precise and XPpro SP3, W7HP(64)- - Libre Office w/Writer2EPUB
|
|
|
|
![]() |
| Tags |
| head, language, metadata, sigil |
| Thread Tools | Search this Thread |
|
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 |