[xml/sgml-pkgs] Bug#694784: xmlto: ePUB does not include a css file

Kacper Perschke kacper.perschke at gmail.com
Fri Nov 30 10:05:27 UTC 2012


Package: xmlto
Version: 0.0.25-2
Severity: normal
Tags: upstream patch

Dear Maintainer,

Debian Bug 652629 (http://bugs.debian.org/652629) leaded us to conclusion that
xmlto doesn't include a proper css file into ePUB format.

I have done some investigation on building maint-guide package,
and got a fast & dirty solution.

-- Patch - below --
kacper at zbiig:~$ diff /usr/share/xmlto/format/docbook/epub ./epub
20a21,27
>   INPUT_DIR=`dirname $INPUT_FILE`
>   CSS_DEST_DIR=$PWD/OEBPS
>   USED_CSS_LIST=`grep 'link rel="stylesheet"' $CSS_DEST_DIR/*.html | sed -e's/.*<link rel="stylesheet" type="text\/css" href="\(.*\.css\)"\/>.*/\1/' | uniq`
>   for CSS_SOURCE in $USED_CSS_LIST
>   do
>     cp $INPUT_DIR/$CSS_SOURCE $CSS_DEST_DIR/
>   done
-- Patch - above --

A have send the patched /usr/share/xmlto/format/docbook/epub format file
to Ondrej Vasik by email.

I'd like you to include this patch in the debian xmlto faster than Ondrej will
do something in the upstream.  I do ask due to Bug 652629

Your Sincerely.
KAcper Perschke

-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (650, 'testing'), (600, 'unstable'), (500, 'sid')
Architecture: i386 (i686)

Kernel: Linux 3.2.0-4-686-pae (SMP w/4 CPU cores)
Locale: LANG=pl_PL.UTF-8, LC_CTYPE=pl_PL.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages xmlto depends on:
ii  debianutils    4.3.2
ii  docbook-xml    4.5-7.1
ii  docbook-xsl    1.76.1+dfsg-1
ii  libc6          2.13-37
ii  libxml2-utils  2.8.0+dfsg1-6
ii  sgml-base      1.26+nmu3
ii  xsltproc       1.1.26-14

Versions of packages xmlto recommends:
ii  dblatex         0.3.4-2
ii  libpaper-utils  1.1.24+nmu2
ii  zip             3.0-6

Versions of packages xmlto suggests:
ii  links   2.7-1
ii  w3m     0.5.3-8
pn  xmltex  <none>

-- no debconf information



More information about the debian-xml-sgml-pkgs mailing list