Package: python-plastex
Version: 0.8.3-1
Severity: normal

Hi,

plastex fails on color definitions like
\definecolor{orange}{cmyk}{0,0.4,0.8,0.2}
as it obviously assumes that all colorsa are RGB values.

ERROR: An error occurred while building the document object in
../manual.tex
   on line 48 (too many values to unpack)
Traceback (most recent call last):
  File "/usr/bin/plastex", line 108, in ?
    main(sys.argv)
  File "/usr/bin/plastex", line 54, in main
    tex.parse()
  File "/var/lib/python-support/python2.4/plasTeX/TeX.py", line 385, in
parse
    for item in tokens:
  File "/var/lib/python-support/python2.4/plasTeX/TeX.py", line 44, in
next
    return self._next()
  File "/var/lib/python-support/python2.4/plasTeX/TeX.py", line 294, in
__iter__
    tokens = obj.invoke(self)
  File "/var/lib/python-support/python2.4/plasTeX/Packages/color.py",
line 68, in invoke
    colors[a['name']] = latex2htmlcolor(a['color'], a['model'], colors)
  File "/var/lib/python-support/python2.4/plasTeX/Packages/color.py",
line 48, in latex2htmlcolor
    red, green, blue = [float(x) for x in arg.split(',')]



I know that converting CMYK to RGB is not an easy task, so at least it
should bail out with a proper error message instead of a backtrace.



-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.22.5-vs2.2.0.3 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages python-plastex depends on:
ii  dvipng                        1.9-5      convert DVI files to PNG graphics
ii  python                        2.4.4-6    An interactive high-level object-o
ii  python-imaging                1.1.6-1    Python Imaging Library
ii  python-support                0.7.5      automated rebuilding support for p
ii  texlive-latex-base            2007-12    TeX Live: Basic LaTeX packages

Versions of packages python-plastex recommends:
pn  python-cheetah                <none>     (no description available)
pn  python-genshi                 <none>     (no description available)
pn  python-kid                    <none>     (no description available)

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to