View Single Post
Old 05-31-2016, 01:52 PM   #13
yasteora
Member
yasteora began at the beginning.
 
Posts: 23
Karma: 10
Join Date: Nov 2015
Device: KPW3 kobo touch
Smile

Hi, topquark:

Quote:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
The DOCTYPE declaration is for XHTML that if you wish to use anotherDTD.
And Sigil adds that automatically to every XHTML file if you make a epub2 by Sigil.


If you want to convert your epub2 to epub3, you must do not use the styles for epub3 like epub:type.
Quote:
<?xml version="1.0" encoding="utf-8"?>
<package version="2.0" unique-identifier="BookId" xmlns="http://www.idpf.org/2007/opf">
The declaration in OPF file that tell us that is epub2.0x.
I have change that to be:

Quote:
<?xml version="1.0" encoding="utf-8"?>
<package version="3.0" unique-identifier="BookId" xmlns="http://www.idpf.org/2007/opf">
But Sigil still not consider it as a epub3.0x file.
So I have to set Sigil :
Quote:
Edit - preferences -general setting
Change "Creat the new or empty epub as" option to "Version 3".
Than I copyed all my code to an empty epub, Because I do not know the convert plug at that time.


If you make a epub3 , the DOCTYPE declaration will change to"<!DOCTYPE html>". Because that is HTML5.

And some of the footnotes work good and some of them are not that I have sufferd that you can see my post. I think kindle ignores the epub:type="noteref" "footnote" "rearnote" and so on, So I still saved the them.

Sorry for my poor English.

Last edited by yasteora; 05-31-2016 at 01:58 PM.
yasteora is offline   Reply With Quote