|
![]() |
|
Thread Tools | Search this Thread |
![]() |
#1 |
Junior Member
![]() 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" to "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//PT" I get an error message each time I open the EPUB. "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> 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:
Thank you for your attention
![]() |
![]() |
![]() |
![]() |
#2 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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 |
![]() |
![]() |
![]() |
#4 |
Junior Member
![]() 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
![]() |
![]() |
![]() |
![]() |
|
![]() |
||||
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 |