![]() |
#1 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 35
Karma: 2000
Join Date: Dec 2010
Device: none
|
'Language' specification disappears?
A quick question...is it just me or does Sigil have a problem with dropping the language specification whenever you open or save a file? I've had an epub with the language specified (English) and tested it and it works fine and passes validation.
Then I open the file in Sigil and do anything, and save the file. When I open it again or try to validate it...the language setting is gone, and validation reports it as missing? Is this something I'm doing...or is it happening everywhere? Why does it do this? -JTT |
![]() |
![]() |
![]() |
#2 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 121
Karma: 5070
Join Date: Dec 2010
Device: none
|
Why didnt you mention what exactly you've specified (and where)?
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 35
Karma: 2000
Join Date: Dec 2010
Device: none
|
The ePub 3.0 specification (RFC5646) indicates that this is good:
<dc:language>en-US</dc:language> I've checked and this is used in other ePub files (meant to specify "US English"). But apparently Sigil only wants >en< and if the '-US' is there then it simply deletes the whole thing. Why it wouldn't simply change the entry to what it wants rather than just wipe out the entire line is perplexing. But okay, I'll leave just the 'en' in there, and it works. What I don't understand is why Sigil chooses to remove this line of the metadata when I simply open the file. It's another instance of a great program doing something totally beyond reason with no warnings, nothing helpful, just poof...and then it fails validation because the line is missing. -JTT |
![]() |
![]() |
![]() |
#4 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Sigil does not use the ePub 3.0 specification as it is still not finalized and approved. Therefore Sigil uses the 2.0 specifications. I remember reading something about it on the forum with regards to the language setting.
As to why Sigil removes the line I don't know. The version you use could be the main factor. For version 0.3.4 I could image that this would happen. You can set the language in the meta editor (F7 I believe) and upon saving the opf would be recreated with the metadata. Since that version could not read/understand the setting you had, it would ignore it. As no language is set, it will not be there while saving and thus failing validation. Any custom metadata which is not within specs would be deleted. In version 0.4 you can prevent recreation of the opf-file (you can choose to maintain it yourself), which would keep your meta-data. I think you use version 0.3.4. If you search on the forum, there is a post somewhere from Valloric in which he explains why he decided to recreate the ncx and opf when saving the epub. Last edited by Toxaris; 05-20-2011 at 04:00 AM. |
![]() |
![]() |
![]() |
#6 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
The way I read it, is that a "en" should be used. The other format is allowed when there is no 2-character code available.
Anyway, I still think it is because he uses Sigil 0.3.4. |
![]() |
![]() |
![]() |
#7 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
|
|
![]() |
![]() |
![]() |
#8 | |
Created Sigil, FlightCrew
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
|
Quote:
Make an issue on the tracker about this. |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
ePub and top margin specification | tompe | Upload Help | 6 | 01-02-2010 11:24 AM |
Ask about specification | bthoven | PocketBook | 35 | 11-13-2009 12:33 PM |
BeBook 2 Specification | keng2000 | BeBook | 6 | 11-02-2009 01:17 PM |
(x)html ebook specification | rogue_ronin | Other formats | 60 | 07-12-2009 01:13 AM |
PRS-500 lrf file specification | Dave Berk | Sony Reader Dev Corner | 2 | 05-01-2007 02:12 AM |