[Top][All Lists]

[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
 -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 
'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

If there is somewhere some clear explanation of what to generate, and
maybe even better some examples, I could have a look.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]