DocBook to ePub

Pavel Sanda sanda at
Sat Feb 6 13:49:04 UTC 2021

On Fri, Feb 05, 2021 at 04:16:11PM +0100, Thibaut Cuvelier wrote:
> I've just pushed the relevant commits.

I tried tu run epub export on intro manual, but so far unsuccesfully:

1. is rnu with 4 parameters here (e.g.: python script_name java Intro.xml Intro.epub)
   Fixed by 
   -    if len(sys.argv) != 3:
   +    if len(sys.argv) != 4:

2. The next error:
Generating ePub:
Temporary output directory:
XSLT style sheet to use:
Command to execute:
"java" -jar "/home/lyx/lyx/devel/lib/scripts/../scripts/saxon6.5.5.jar" Intro.xml /home/lyx/lyx/devel/lib/scripts/../docbook/epub3/chunk.xsl base.dir=/tmp/tmpnc1DfX
docbook2epub fails
sh: 1: java -jar /home/lyx/lyx/devel/lib/scripts/../scripts/saxon6.5.5.jar Intro.xml /home/lyx/lyx/devel/lib/scripts/../docbook/epub3/chunk.xsl base.dir=/tmp/tmpnc1DfX: not found
Systemcall.cpp (291): Systemcall: 'python "/home/lyx/lyx/devel/lib/scripts/" "java" "Intro.xml" "Intro.epub"' finished with exit code 1
Error: Cannot convert file

Not sure what went wrong, but going to terminal I do not see /tmp/tmpnc1DfX created.
Manually creating and running the java command leads to:

Writing /tmp/tmpnc1DfX/OEBPS/ar01-toc.xhtml for article
Writing /tmp/tmpnc1DfX/OEBPS/ar01s02.xhtml for section
Writing /tmp/tmpnc1DfX/OEBPS/ar01s03.xhtml for section(sec.Contrib)
Writing /tmp/tmpnc1DfX/OEBPS/index.xhtml for article
Writing /tmp/tmpnc1DfX/OEBPS/docbook-epub.css for article
Generating EPUB package files.  
Generating image list ...       
Writing /tmp/tmpnc1DfX/OEBPS/package.opf for article
Writing /tmp/tmpnc1DfX/OEBPS/../META-INF/container.xml for article
Writing /tmp/tmpnc1DfX/OEBPS/../mimetype for article
Generating NCX file ...         
Writing /tmp/tmpnc1DfX/OEBPS/toc.ncx for article
<?xml version="1.0" encoding="UTF-8"?>

No epub is created. When I go to /tmp/tmpnc1DfX I see:


More information about the lyx-devel mailing list