Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 04-07-2016, 08:55 PM   #1
guidaq
Junior Member
guidaq began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Apr 2016
Device: Asus Memopad 7
In DTD declaration, language other than "EN" will generate warning message.

Hi, I am starting with Sigil - version 0.9.5 (Windows 8) and when I change the language in DTD declaration from
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
to
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//PT"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
I get an error message each time I open the EPUB.
Tried with different files, with the same result.

My current project has 5 different xhtml files which I used to make the experience: change the langage in one or two of them, close and reopen the file; any language different from "EN" generates the warning:
«Cannot perform HTML updates since the file is not well formed: cover.xhtml». (this message appeared when I changed EN" to "PT" ot to "FR" in the file "cover.xhtml"
Changing the language back to "EN" the message doesn't appear on opening, which means there are no other errors.

(allow me two suggestions:
  • the creation of a new forum section for "Bugs"
  • in Sigil, a way of having user's own set of templates - for xhtml, TOC files - I mean, all of those files whose header may have settings different from "EN" .
    These could be saved in a subdirectory under SIGIL directory.
Thank you for your attention :
guidaq is offline   Reply With Quote
Old 04-07-2016, 09:47 PM   #2
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,759
Karma: 5706256
Join Date: Nov 2009
Device: many
That EN represents the language that the DTD is written in NOT the language of the document. The official DTD used in the official set of DOCTYPES for epub2 is written in English.

This in no way says anything about the language of the document itself. That is typically set using the xml:lang attribute on the html tag or alternatively by using dc:language metadata tag in the content.opf for the epub.

Stick with the official doctypes as specified for epub2 and epub3 and properly add your xml:lang attribute to any html tag or better yet, simply set the dc:language metadata.

See the wikipedia entry for doctype and more specifically the FPI here:
https://en.m.wikipedia.org/wiki/Form...lic_Identifier

KevinH

Last edited by KevinH; 04-07-2016 at 09:50 PM.
KevinH is offline   Reply With Quote
Advert
Old 04-07-2016, 10:02 PM   #3
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,759
Karma: 5706256
Join Date: Nov 2009
Device: many
Also, bug reports often are not bugs and when they are bugs are typically rapidly fixed and therefore are very release specific. A thread dedicated to bug reports (true or not) would not naturally go away once bugs are fixed and thus would be flled with basically meaningless pieces of outdated junk. Real bugs can be reported on our official github site:

https://github.com/Sigil-Ebook/Sigil

Or here on MR, typically in the release announcement thread that it was discovered in. MR is aleo a good place if you are unsure if something is a bug or not and can get support from a number of users as well as the current developers.

That is why there is no dedicated bug reporting thread on Sigil.

KevinH
KevinH is offline   Reply With Quote
Old 04-07-2016, 10:48 PM   #4
guidaq
Junior Member
guidaq began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Apr 2016
Device: Asus Memopad 7
Thank you, Kevin, for your quick and clear reply
My knowlege of HTML is average, and I used to always declare language in DTD as PT.

I edited Metadata as soon as I started discovering Sigil features, and of course saw the language definition immediately echoed in content.opf

Please excuse my question!
I am using Sigil to edit some portuguese epubs (free e-books of Portuguese litterauture) which have some spelling mistakes, so I can read them later in my tablet - and share them, too.

I didn't like the way Calibre filled my files with <span> tags each time it found some accented character (like "agradável", "manhã" - quite common portuguese words).
Altough this is for personal use, I like things properly done, and Sigil allows me that.
Thank you again
guidaq is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Run Generate Cover if "send to device" ILB Calibre 3 02-02-2015 02:51 PM
A warning for Linux users: slow "Add Books", "Unknown" title and Author rolgiati Library Management 8 07-24-2013 04:36 PM
Unfortunately, another "Failed: Generate catalog" Sigwolf Library Management 4 11-10-2012 02:24 PM
Calibre: How to generate "print replica" mobi? JerrySmile Conversion 2 11-09-2012 10:02 AM
Error message : "Invalid Format" " Do you want to format your internal memory" narbeauchamp Sony Reader 11 07-22-2009 12:39 PM


All times are GMT -4. The time now is 12:29 AM.


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