[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: texi to epub
From: |
Patrice Dumas |
Subject: |
Re: texi to epub |
Date: |
Mon, 20 Dec 2021 01:33:56 +0100 |
On Wed, Dec 15, 2021 at 07:06:37PM +0100, Kurt Hornik wrote:
> Friends,
>
> In the discussions in the bug report for R, someone wrote
>
> calibre does not guarantee that an EPUB produced by it is valid. The
> only guarantee it makes is that if you feed it valid XHTML 1.1 + CSS
> 2.1 it will output a valid EPUB.
>
> and of course makeinfo gives HTML 4.01 Transitional: I also tried the
> effect of going through HTML tidy to turn that into XHTML, but that did
> not make epubcheck happy.
>
> Any ideas/suggestions/... how to best move forward?
This issue should be solveable now. With a conversion with something
like
-c DOCTYPE='<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">' -c
'USE_XML_SYNTAX 1' -c 'NO_CUSTOM_HTML_ATTRIBUTE 1' -c
'HTML_ROOT_ELEMENT_ATTRIBUTES xmlns="http://www.w3.org/1999/xhtml"'
the output is not bad in term of validity. It is not perfect, but my
feeling is that it is good enough.
Now there are all the other files to generate.
My superficial readings on the web make me think that it is similar with
chm, and the implementation could be something similar with
tp/init/chm.pm.
If there is somewhere some clear explanation of what to generate, and
maybe even better some examples, I could have a look.
--
Pat
- Re: texi to epub, (continued)
- Re: texi to epub, Jacob Bachmeyer, 2021/12/18
- Re: texi to epub, Jean-Christophe Helary, 2021/12/18
- Re: texi to epub, Gavin Smith, 2021/12/19
- Re: texi to epub, Patrice Dumas, 2021/12/19
- Re: texi to epub, Patrice Dumas, 2021/12/19
- Re: texi to epub, Per Bothner, 2021/12/19
- Re: texi to epub, Patrice Dumas, 2021/12/20
Re: texi to epub, Per Bothner, 2021/12/15
Re: texi to epub,
Patrice Dumas <=