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

Kornel Benko kornel at lyx.org
Mon Feb 8 15:56:33 UTC 2021


Am Mon, 8 Feb 2021 16:18:17 +0100
schrieb Thibaut Cuvelier <tcuvelier at lyx.org>:

> On Mon, 8 Feb 2021 at 12:35, Pavel Sanda <sanda at lyx.org> wrote:
> 
> > 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
> >
> 
> There should not be any significant differences between the XSLT
> processors.

Would be nice to create 2 formats e.g. Epub1, Epub2.

Epub1 created with xsltproc, Epub2 with java.

	Kornel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: Digitale Signatur von OpenPGP
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20210208/0aeb9391/attachment.asc>


More information about the lyx-devel mailing list