![]() |
#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. |
![]() |
![]() |
![]() |
#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 | |
|
![]() |
#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. |
![]() |
![]() |
![]() |
#4 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,897
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
![]() |
![]() |
![]() |
![]() |
Tags |
head, language, metadata, sigil |
|
![]() |
||||
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 |