Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 05-20-2011, 12:48 AM   #1
jttraverse
Enthusiast
jttraverse knows what time it isjttraverse knows what time it isjttraverse knows what time it isjttraverse knows what time it isjttraverse knows what time it isjttraverse knows what time it isjttraverse knows what time it isjttraverse knows what time it isjttraverse knows what time it isjttraverse knows what time it isjttraverse knows what time it is
 
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
jttraverse is offline   Reply With Quote
Old 05-20-2011, 01:53 AM   #2
huebi
Zealot
huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!
 
Posts: 121
Karma: 5070
Join Date: Dec 2010
Device: none
Why didnt you mention what exactly you've specified (and where)?
huebi is offline   Reply With Quote
Old 05-20-2011, 03:16 AM   #3
jttraverse
Enthusiast
jttraverse knows what time it isjttraverse knows what time it isjttraverse knows what time it isjttraverse knows what time it isjttraverse knows what time it isjttraverse knows what time it isjttraverse knows what time it isjttraverse knows what time it isjttraverse knows what time it isjttraverse knows what time it isjttraverse knows what time it is
 
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
jttraverse is offline   Reply With Quote
Old 05-20-2011, 03:57 AM   #4
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 2,862
Karma: 2714881
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-300, PRS-T1
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.
Toxaris is offline   Reply With Quote
Old 05-20-2011, 04:16 AM   #5
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 5,985
Karma: 4346919
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
The OPF 2.0.1 spec, which directs here seems to say that "en-US" is a valid language tag too.
Jellby is offline   Reply With Quote
Old 05-20-2011, 02:41 PM   #6
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 2,862
Karma: 2714881
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-300, PRS-T1
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.
Toxaris is offline   Reply With Quote
Old 05-20-2011, 08:16 PM   #7
DaleDe
Grand Sorcerer
DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.
 
DaleDe's Avatar
 
Posts: 9,501
Karma: 4597184
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2
Quote:
Originally Posted by Toxaris View Post
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.
there could also be en-gb but of course this is a variation of the real English
DaleDe is offline   Reply With Quote
Old 05-23-2011, 05:27 AM   #8
Valloric
Created Sigil, FlightCrew
Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.
 
Valloric's Avatar
 
Posts: 1,978
Karma: 350515
Join Date: Feb 2008
Device: Sony Reader PRS 505
Quote:
Originally Posted by Jellby View Post
The OPF 2.0.1 spec, which directs here seems to say that "en-US" is a valid language tag too.
The 2.0.1 OPF update redefined it, and I failed to notice this change. It used to require a two character code before.

Make an issue on the tracker about this.
Valloric is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

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


All times are GMT -4. The time now is 11:19 AM.


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