View Single Post
Old 05-05-2015, 04:03 PM   #1
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 2,625
Karma: 3120635
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
EPUB3 and DOCTYPE

Hi

I just produced an EPUB3. The xhtml files began this way:

Code:
<!DOCTYPE html>
<html lang="fr-FR" xml:lang="fr-FR" xmlns="http://www.w3.org/1999/xhtml">
 
  <head>
    <title>Title</title>
    <meta charset="UTF-8" />
    <link href="styles/styles.css" rel="stylesheet" type="text/css" />
  </head>
The files validate with Epubcheck as EPUB3.

Once "beautified" with the Calibre editor, it looks this way:

Code:
<?xml version='1.0' encoding='utf-8'?>
<html xmlns="http://www.w3.org/1999/xhtml" lang="fr-FR" xml:lang="fr-FR">

  <head>
    <title>Title</title>
    <link href="styles/styles.css" rel="stylesheet" type="text/css"/>
  </head>
This second file validates also with Epubcheck as EPUB3.
Both files agree on utf8.

However, I would have rather, for EPUB3 files, let this part untouched, as it looks correct (even if the second one is correct too).

Would it be possible to make the above change optional for EPUB3 files?
roger64 is offline   Reply With Quote