Package: asciidoc
Version: 8.6.9-2
Severity: important
Thanks for packaging asciidoc!
However, I've found a problem -- the default iconsdir is empty!
When using "asciidoc -a data-uri -a icons", no icons appear in the
generated document because the default iconsdir is empty.
The following error messages appear, which points to the problem:
asciidoc: WARNING: xxx.txt: line 53: {sys:"/usr/bin/python" -u -c "import
base64,sys; base64.encode(sys.stdin,sys.stdout)" <
"/etc/asciidoc/images/icons/important.png"}: non-zero exit status
/etc/asciidoc/images is a symlink to /usr/share/asciidoc/images, which
sounds correct. However, /usr/share/asciidoc/images/icons is completely
empty.
The icons are actually found in /usr/share/doc/images/icons, which
doesn't seem to be the correct location for them, since although they
are referenced by the asciidoc documentation, they also need to be
available in order to use "-a data-uri -a icons" (which is a
well-documented feature supported by the upstream asciidoc). The
asciidoc documentation even says "If admonition icons are embedded using
the data-uri scheme then the iconsdir attribute defaults to the location
of the icons installed in the AsciiDoc configuration directory." But
currently, these icons are NOT installed there!
One simple way to fix this without moving files around is to make
/usr/share/asciidoc/images/icons a symlink to
/usr/share/doc/asciidoc/images/icons, or move the files and symlink the
other way.
As a workaround, one can specify "-a iconsdir=...", but this means that
Makefiles to run asciidoc need to be different on Debian systems than
they are on any other GNU/Linux system, which is unfortunate to say the
least.
Thanks for looking into this! =)
-- System Information:
Debian Release: 7.5
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable'), (50, 'unstable'), (45,
'experimental')
Architecture: i386 (i686)
Kernel: Linux 3.14-1-686-pae (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages asciidoc depends on:
ii python 2.7.3-4+deb7u1
ii python-support 1.0.15
Versions of packages asciidoc recommends:
pn dblatex <none>
pn docbook-utils <none>
ii libxml2-utils 2.8.0+dfsg1-7+nmu3
pn xmlto <none>
Versions of packages asciidoc suggests:
ii source-highlight 3.1.6-1.1
ii vim-addon-manager 0.5.2
-- no debconf information
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]