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. docbook2epub.py 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:
/home/lyx/lyx/devel/lib/scripts/docbook2epub.py
Intro.xml
Intro.epub
Temporary output directory:
/tmp/tmpnc1DfX
XSLT style sheet to use:
/home/lyx/lyx/devel/lib/scripts/../docbook/epub3/chunk.xsl
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/docbook2epub.py" "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:
./OEBPS                         
./OEBPS/index.xhtml             
./OEBPS/ar01s02.xhtml           
./OEBPS/ar01-toc.xhtml          
./OEBPS/package.opf             
./OEBPS/toc.ncx                 
./OEBPS/ar01s03.xhtml
./OEBPS/docbook-epub.css
./META-INF
./META-INF/container.xml
./mimetype


Pavel
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel

Reply via email to