[LyX/master] ePub: detect and use xsltproc.

Pavel Sanda sanda at lyx.org
Mon Feb 8 11:34:31 UTC 2021


On Sun, Feb 07, 2021 at 08:49:56PM +0100, Thibaut Cuvelier wrote:
> commit 9d4ffac7fbc06893e79a19097ae1b5c762d830e0
> Author: Thibaut Cuvelier <tcuvelier at lyx.org>
> Date:   Sun Feb 7 20:33:06 2021 +0100
> 
>     ePub: detect and use xsltproc.
> ---
>  lib/configure.py            |    7 +++++--
>  lib/scripts/docbook2epub.py |   38 ++++++++++++++++++++++++++++----------
>  2 files changed, 33 insertions(+), 12 deletions(-)
> 
> diff --git a/lib/configure.py b/lib/configure.py
> index 93ad624..47d1034 100644
> --- a/lib/configure.py
> +++ b/lib/configure.py
> @@ -1007,8 +1007,10 @@ def checkConverterEntries():
>          rc_entry = [ r'\converter docbook5      pdf9      "%%"	""' ])
>      #
>      global java
> -    if java != '':
> -        addToRC('\\converter docbook5 epub "python $$s/scripts/docbook2epub.py \\"' + java + '\\" $$i $$o" ""')
> +    if xsltproc != '':
> +        addToRC('\\converter docbook5 epub "python $$s/scripts/docbook2epub.py none \\"' + xsltproc + '\\" $$i $$o" ""')
> +    elif java != '':
> +        addToRC('\\converter docbook5 epub "python $$s/scripts/docbook2epub.py \\"' + java + '\\" none $$i $$o" ""')

I am happy to give xsltproc a try under linux. Is the output supposed to give
identical result to saxon -- or is there some realistic way how to tell that
xslproc output is on par with saxon, which you tested already?

I don't have trained eyes to look on xml/epub and see possible issues.
Pavel


More information about the lyx-devel mailing list