Public bug reported:

Binary package hint: foomatic-filters

Find details at:

https://bugzilla.redhat.com/show_bug.cgi?id=531278

r...@rick-vbox:~$ lsb_release -rd
Description:    Ubuntu 9.10
Release:        9.10

r...@rick-vbox:~$ apt-cache policy foomatic-filters
foomatic-filters:
  Installed: 4.0.3-0ubuntu2
  Candidate: 4.0.3-0ubuntu2
  Version table:
 *** 4.0.3-0ubuntu2 0
        500 http://us.archive.ubuntu.com karmic/main Packages
        100 /var/lib/dpkg/status


This works on Fedora 10 with cups-1.3.10-5.fc10.i386.

It does not work with Fedora 11 and later with cups-1.4.1-4.fc11.i586.

F10:

f10# grep "foo2hp2600-wrapper " /var/log/messages 
Oct 26 19:15:33 localhost foo2hp2600-wrapper: foo2hp2600-wrapper -z0 -b1 -p1
-s7 -m1 -d1 -n1 -Oc=0 -Om=0 -Oy=0 -Gdefault

f10# grep "foo2hp2600-wrapper " /var/log/cups/error_log 
D [26/Oct/2009:19:15:33 -0500] [Job 3] renderer command: foo2hp2600-wrapper -z0
 -b1 -p1 -s7 -m1   -d1 -n1 -Oc=0 -Om=0 -Oy=0 -Gdefault 
D [26/Oct/2009:19:15:33 -0500] [Job 3] Starting process 4566:
"foo2hp2600-wrapper   -z0  -b1 -p1 -s7 -m1   -d1 -n1 -Oc=0 -Om=0 -Oy=0
-Gdefault "
D [26/Oct/2009:19:15:36 -0500] [Job 3] Process 4566 ending: "foo2hp2600-wrapper
  -z0  -b1 -p1 -s7 -m1   -d1 -n1 -Oc=0 -Om=0 -Oy=0 -Gdefault "

F11:

f11#  grep "foo2hp2600-wrapper " /var/log/messages
Oct 27 06:28:04 localhost foo2hp2600-wrapper: foo2hp2600-wrapper -z0 -b1 -p1
-m1 -s7 -d1 -Gdefault

f11# grep "foo2hp2600-wrapper " /var/log/cups/error_log 
D [27/Oct/2009:06:28:04 -0500] [Job 3] Starting renderer with command:
"foo2hp2600-wrapper -z0   -b1  -p1 -m1 -s7   -d1 -Gdefault "

Note the lack of "-Oc=0 -Om=0 -Oy=0" in the foo2hp2600-wrapper line!

I think is it because the XML using <arg_max>100</arg_max> and
<arg_min>-100</arg_min> (ref. foomatic-db/opt/foo2hp-AlignCMYK.xml)
doesn’t get translated to a (possibly depracated?) *.ppd syntax (HP-
Color_LaserJet_2600n.ppd).  But I could be wrong...

I note that the lx5000 and others are the same way...

foo2hp-AlignCMYK.xml:
    <option type="int" id="opt/foo2hp-AlignC">
        <!-- A multilingual <comments> block can appear here, too;
           it should be treated as documentation for the user. -->
        <arg_longname> <en>Alignment Offset Cyan</en> </arg_longname>
        <arg_shortname> <en>alignc</en> </arg_shortname>
        <arg_execution>
            <arg_group>Alignment (in rows)</arg_group>
            <arg_order>220</arg_order>
            <arg_spot>A</arg_spot>
            <arg_required />
            <arg_substitution />
            <arg_proto>-Oc=%s </arg_proto>
        </arg_execution>
        <constraints>
            <constraint sense="true">
            <driver>foo2hp</driver>
            <arg_defval>0</arg_defval>
            </constraint>
        </constraints>
        <arg_max>100</arg_max>
    <arg_min>-100</arg_min>
    </option>

HP-Color_LaserJet_2600n.ppd
    {snip}

    *OpenGroup: Alignment (in rows)/Alignment (in rows)

    *OpenUI *alignc/Alignment Offset Cyan: PickOne
    *FoomaticRIPOption alignc: int CmdLine A
    *FoomaticRIPOptionPrototype alignc: "-Oc=%s "
    *FoomaticRIPOptionRange alignc: -100 100
    *OrderDependency: 220 AnySetup *alignc
    *Defaultalignc: 0
    *FoomaticRIPDefaultalignc: 0
    *alignc -100/-100: "%% FoomaticRIPOptionSetting: alignc=-100"
    *alignc -98/-98: "%% FoomaticRIPOptionSetting: alignc=-98"
    *alignc -96/-96: "%% FoomaticRIPOptionSetting: alignc=-96"
    *alignc -94/-94: "%% FoomaticRIPOptionSetting: alignc=-94"

    {snip}

    *CloseUI: *alignc

    {snip for magenta and yellow)}

Repeat By:
    $ wget -O foo2zjs.tar.gz http://foo2zjs.rkkda.com/foo2zjs.tar.gz
    $ tar zxf foo2zjs.tar.gz
    $ cd foo2zjs
    $ make
    $ ./getweb 2600n    # Get HP Color LaserJet 2600n .ICM files
    $ su
    $ make install

    Use
        URI=file:/home/USERNAME/prn
    and
        $ touch ~/prn
        $ su
        # grep File /etc/cups/cupsd.conf
        FileDevice Yes
    if you don't have a HP CLJ 1600/2600/CP1215 printer.

** Affects: foomatic-filters (Ubuntu)
     Importance: Undecided
         Status: New

-- 
foomatic *.xml to cups *.ppd does not work with <arg_max>/<arg_min> values
https://bugs.launchpad.net/bugs/474730
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to