asciidoc-py/asciidoc-py2

Multiple css files in a2x command aren't properly specified in the epub manifest

ShadowKyogre opened this issue · 2 comments

So, I tried running the following command to test outputting to an epub format.

!a2x -r ~/.asciidoc/ --stylesheet="docbook-xsl.css custom_tweaks.css" -vv -f xhtml -D /tmp /path/to/file

The following output I got was:

a2x: args: ['-r', '/home/shadowkyogre/.asciidoc/', '--stylesheet=docbook-xsl.css custom_tweaks.css', '-vv', '-f', 'epub', '-D', '/tmp', 'ALTE_SE01_002.adoc']
a2x: loading configuration file: /home/shadowkyogre/.asciidoc/a2x.conf
a2x: resource files: []
a2x: resource directories: ['/home/shadowkyogre/.asciidoc/', '/etc/asciidoc/images', '/etc/asciidoc/stylesheets']
a2x: executing: "/usr/bin/asciidoc.py" --backend docbook -a "a2x-format=epub"  --verbose  --out-file "/tmp/ALTE_SE01_002.xml" "/home/shadowkyogre/skart/stories/ALTE_SE01_002.adoc"

asciidoc: reading: /etc/asciidoc/asciidoc.conf
asciidoc: reading: /home/shadowkyogre/.asciidoc/asciidoc.conf
asciidoc: reading: /etc/asciidoc/asciidoc.conf
asciidoc: reading: /home/shadowkyogre/.asciidoc/asciidoc.conf
asciidoc: reading: /home/shadowkyogre/skart/stories/ALTE_SE01_002.adoc
asciidoc: reading: /etc/asciidoc/docbook45.conf
asciidoc: reading: /etc/asciidoc/filters/music/music-filter.conf
asciidoc: reading: /etc/asciidoc/filters/source/source-highlight-filter.conf
asciidoc: reading: /etc/asciidoc/filters/graphviz/graphviz-filter.conf
asciidoc: reading: /etc/asciidoc/filters/latex/latex-filter.conf
asciidoc: reading: /etc/asciidoc/filters/code/code-filter.conf
asciidoc: reading: /etc/asciidoc/lang-en.conf
asciidoc: writing: /tmp/ALTE_SE01_002.xml

a2x: executing: "xmllint" --nonet --noout --valid "/tmp/ALTE_SE01_002.xml"


a2x: deleting /tmp/ALTE_SE01_002.epub.d
a2x: creating /tmp/ALTE_SE01_002.epub.d
a2x: chdir /tmp/ALTE_SE01_002.epub.d
a2x: executing: "xsltproc"  --stringparam callout.graphics 0 --stringparam navig.graphics 0 --stringparam admon.textlabel 1 --stringparam admon.graphics 0 --stringparam html.stylesheet "docbook-xsl.css custom_tweaks.css"  "/etc/asciidoc/docbook-xsl/epub.xsl" "/tmp/ALTE_SE01_002.xml"

Writing OEBPS/ar01s01.html for section(_letters_revisited_in_tie_in_with_novi_s_story)
Writing OEBPS/ar01s02.html for section(_pride_revisited_in_tie_in_with_novi_s_story)
Writing OEBPS/ar01s03.html for section(_landing)
Writing OEBPS/ar01s04.html for section(_welcome_back_pending_title_or_evandrus_or_shadow_of_the_pantheon)
Writing OEBPS/ar01s05.html for section(_interrogation)
Writing OEBPS/ar01s06.html for section(_caeli_8217_s_death)
Writing OEBPS/ar01s07.html for section(_evandrus_death_8594_rename_to_hopeless_one_i)
Writing OEBPS/ar01s08.html for section(_hopeless_one_ii)
Writing OEBPS/ar01s09.html for section(_archived_old_stuff)
Writing OEBPS/ar01s10.html for section(_feedback)
Writing OEBPS/index.html for article
Writing OEBPS/toc.ncx
Writing OEBPS/content.opf
Writing META-INF/container.xml

a2x: chdir /home/shadowkyogre/skart/stories
a2x: finding resources in: /tmp/ALTE_SE01_002.epub.d/OEBPS/content.opf
a2x: finding resources in: /tmp/ALTE_SE01_002.epub.d/OEBPS/index.html
a2x: finding resources in: /tmp/ALTE_SE01_002.epub.d/OEBPS/ar01s10.html
a2x: finding resources in: /tmp/ALTE_SE01_002.epub.d/OEBPS/ar01s09.html
a2x: finding resources in: /tmp/ALTE_SE01_002.epub.d/OEBPS/ar01s08.html
a2x: finding resources in: /tmp/ALTE_SE01_002.epub.d/OEBPS/ar01s07.html
a2x: finding resources in: /tmp/ALTE_SE01_002.epub.d/OEBPS/ar01s06.html
a2x: finding resources in: /tmp/ALTE_SE01_002.epub.d/OEBPS/ar01s05.html
a2x: finding resources in: /tmp/ALTE_SE01_002.epub.d/OEBPS/ar01s04.html
a2x: finding resources in: /tmp/ALTE_SE01_002.epub.d/OEBPS/ar01s03.html
a2x: finding resources in: /tmp/ALTE_SE01_002.epub.d/OEBPS/ar01s02.html
a2x: finding resources in: /tmp/ALTE_SE01_002.epub.d/OEBPS/ar01s01.html
a2x: finding resources in: /tmp/ALTE_SE01_002.epub.d/OEBPS/index.html
a2x: finding resources in: /tmp/ALTE_SE01_002.epub.d/OEBPS/ar01s10.html
a2x: finding resources in: /tmp/ALTE_SE01_002.epub.d/OEBPS/ar01s09.html
a2x: finding resources in: /tmp/ALTE_SE01_002.epub.d/OEBPS/ar01s08.html
a2x: finding resources in: /tmp/ALTE_SE01_002.epub.d/OEBPS/ar01s07.html
a2x: finding resources in: /tmp/ALTE_SE01_002.epub.d/OEBPS/ar01s06.html
a2x: finding resources in: /tmp/ALTE_SE01_002.epub.d/OEBPS/ar01s05.html
a2x: finding resources in: /tmp/ALTE_SE01_002.epub.d/OEBPS/ar01s04.html
a2x: finding resources in: /tmp/ALTE_SE01_002.epub.d/OEBPS/ar01s03.html
a2x: finding resources in: /tmp/ALTE_SE01_002.epub.d/OEBPS/ar01s02.html
a2x: finding resources in: /tmp/ALTE_SE01_002.epub.d/OEBPS/ar01s01.html
a2x: copying "/home/shadowkyogre/.asciidoc/custom_tweaks.css" to "/tmp/ALTE_SE01_002.epub.d/OEBPS/custom_tweaks.css"
a2x: copying "/etc/asciidoc/stylesheets/docbook-xsl.css" to "/tmp/ALTE_SE01_002.epub.d/OEBPS/docbook-xsl.css"
a2x: ERROR: missing resource: /home/shadowkyogre/skart/stories/docbook-xsl.css custom_tweaks.css

shell returned 1

Here's a gist showing the messed up content.opf. There should be two media entries properly specifying the css files instead of one entry.

https://gist.github.com/ShadowKyogre/3488afb36795ccbcdf78#file-content-opf-L10

The OPF file is generated by the DocbookXSL processing IIUC, so this is a problem with the XSL. There seems to be a candidate DocbookXSL release dated a few days ago, maybe that will help.

Got around to building the release you linked me. It works! Thanks a bunch!

On 10/17/2015 02:35 AM, elextr wrote:

The OPF file is generated by the DocbookXSL processing IIUC, so this
is a problem with the XSL. There seems to be a candidate DocbookXSL
release
http://sourceforge.net/projects/docbook/files/docbook-xsl/1.79.0/
dated a few days ago, maybe that will help.


Reply to this email directly or view it on GitHub
asciidoc-py/asciidoc-py#87 (comment).