DocBook to ePub
kornel at lyx.org
Fri Feb 5 16:57:20 UTC 2021
Am Thu, 4 Feb 2021 23:21:30 +0100
schrieb Thibaut Cuvelier <tcuvelier at lyx.org>:
> If you want to try it outside LyX, first export the document as DocBook 5
> (say, doc.xml); if Java is available in the PATH, run (with either Python 2
> or 3, although it's only really tested with 3.8):
> python scripts/docbook2epub.py "java" "doc.xml" "doc.epub"
I get here:
Traceback (most recent call last):
File "/usr2/src/lyx/lyx-git/lib/scripts/docbook2epub.py", line 26, in <module>
own_path, java_path, input, output = sys.argv
ValueError: need more than 3 values to unpack
from python 2.7.17 and also from python 3.6.9
> Otherwise, you should have many more details by having a look at the
> console, if one is attached to the LyX process.
> Mostly, there are two sources of error: either the transformation into HTML
> or the ZIP-archive creation. Basically, the script is just running the
> following three commands:
> mkdir …/tmpfolder
> java -jar …/saxon6.5.5.jar …/doc.xml …/docbook/epub3/chunk.xsl
This one works. I get
Writing /fd/OEBPS/bk01-toc.xhtml for book
Writing /fd/OEBPS/ch01.xhtml for chapter
Writing /fd/OEBPS/pt01.xhtml for part
Writing /fd/OEBPS/ch02.xhtml for chapter
Writing /fd/OEBPS/pt02.xhtml for part
Writing /fd/OEBPS/index.xhtml for book
Writing /fd/OEBPS/docbook-epub.css for book
Generating EPUB package files.
Generating image list ...
Writing /fd/OEBPS/package.opf for book
Writing /fd/OEBPS/../META-INF/container.xml for book
Writing /fd/OEBPS/../mimetype for book
Generating NCX file ...
Writing /fd/OEBPS/toc.ncx for book
<?xml version="1.0" encoding="UTF-8"?>
> zip …/doc.epub …/tmpfolder/*
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 488 bytes
Desc: Digitale Signatur von OpenPGP
More information about the lyx-devel