Hello everyone.
First, thanks to the developers for their work on this great tool.
I have had this doubt for a long time (epub3):
Why is the header of the nav file different from the rest of xhtml files?
Section0001.xhtml
Code:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops">
<head>
<title></title>
</head>
nav.xhtml
Code:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops" lang="es" xml:lang="es">
<head>
<title>ePub NAV</title>
<meta charset="utf-8"/>
<link href="../Styles/sgc-nav.css" rel="stylesheet" type="text/css"/>
</head>
That is to say:
1. Why is the 'charset' line added only in nav? Is the 'encoding' of the first line not enough?
If the answer above is "no":
-Why isn't it added to the rest of the xhtml files?
-Shouldn't it be before the < title >, in case it has 'special' characters? (in previous versions of Sigil it was like this.)
2. Why are language tags added only in nav? (in my books, by default in Spanish.)
Same case above: shouldn't they be automatically added to all xhtml?
3. (epub2): I know that language tags do need to be added (at least 'xml:lang="es"'), but should 'charset' be added as well? (toc + xhtmls)
4. Finally, if I may compare, Calibre Editor automatically adds this initial line to each CSS:
but Sigil doesn't. Is it also necessary?
(Actually,
in real life, I've only seen it in Standard Ebooks...

)
Thank you so much! (and sorry for the automatic translation.)