View Single Post
Old 12-02-2015, 11:45 AM   #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,809
Karma: 6000000
Join Date: Nov 2009
Device: many
This is all caused by the html tag being wrong for epub.

In Sigil 0.8.7, since it has no epub3 support and it knew how to fix missing doctypes and missing attributes on the html header line ... in other words **always** set it for epub2.

Sigil 0.9.1 has started the process of epub3 support and can not guess when importing a single html page what doctype you truly wanted and what to add for the html tag attributes if the original you import do not specify them.

If you just pull in raw html that does not have the correct doctype and html attributes, this is what you will get. If you simply edit the doctype and html tag in Sigil-0.9.1, you will see the exact same output.

Sigil has no way of knowing if you are going to import html5 vs html4 vs html3.2, nor what target you are looking for epub3 vs epub2 if what you import does not provide a doctype and the required attributes on the html tags to tell it.

If this bothers enough people, we could always add a default to epub2 Preference setting so that the doctype and html attributes can always be fixed, or alternatively a plugin to fix and set this as epub2 for all xhtml files.

Exactly what DOCTYPE and html tag was provided on the original html file imported (or original epub imported)?

KevinH

Last edited by KevinH; 12-02-2015 at 12:36 PM.
KevinH is offline   Reply With Quote