View Single Post
Old 12-22-2015, 06:13 PM   #6
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,691
Karma: 205039118
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Thanks for bringing this to our attention.

If a file has a valid html5 doctype, Sigil will leave it alone.
If a file has a valid xhtml doctype, Sigil will leave it alone.

If a file has an irregular or missing doctype, then Sigil will give it an xhtml (epub2) doctype (at least that is my understanding, Kevin will be able to better answer this). This was done to fix a bug where files with irregular doctypes couldn't be opened by Sigil at all. If EpubCheck is OK with no doctype (which is what the calibre editor is producing), then we'll probably need to add an additional check for files with no doctype to determine if they are part of an epub3 or not. The problem is that html files can be imported into Sigil with no opf file to indicate epub2 vs epub3.

For now, your best bet is to make sure your html files already have the correct doctype before opening them with Sigil until we can see if there's a better way to handle files with no doctype.

EDIT: Kevin obviously responded while I was composing.

Last edited by DiapDealer; 12-22-2015 at 06:15 PM.
DiapDealer is offline   Reply With Quote