File: hl7x0.xml

package info (click to toggle)
foomatic-db 20181217-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 599,540 kB
  • sloc: xml: 313,916; sh: 153; makefile: 114; python: 8
file content (112 lines) | stat: -rw-r--r-- 6,766 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
<driver id="driver/hl7x0">
  <name>hl7x0</name>
  <url>http://www.ghostscript.com/</url>
  <supplier>Ghostscript</supplier>
  <thirdpartysupplied />
  <license>GPL</license>
  <supportcontacts>
    <supportcontact url="http://forums.openprinting.org/list.php?24" level="voluntary">OpenPrinting forum for Brother printers</supportcontact>
  </supportcontacts>
  <shortdescription>
    <en>
   Driver for Brother's proprietary printer language (works also on the PCL/PS models)
  </en>
  </shortdescription>
  <functionality>
    <maxresx>2400</maxresx>
    <maxresy>600</maxresy>
    <monochrome />
    <text>95</text>
    <lineart>95</lineart>
    <graphics>65</graphics>
    <photo>35</photo>
    <speed>100</speed>
  </functionality>
  <execution>
    <ghostscript />
    <prototype>RES=%E; gs -q -dBATCH -dPARANOIDSAFER -dQUIET -dNOPAUSE -dNOMEDIAATTRS -dNOINTERPOLATE -sDEVICE=hl7x0%A%Z -r$RES -sOutputFile=-%C -f - | perl -e 'my $u = &quot;%U&quot;; my $j = &quot;%T&quot;; my $p = &quot;%F&quot;; my $r = &quot;'$RES'&quot;; my $e = &quot;%G&quot;; my $m = &quot;%H&quot;; my $d = &quot;%I&quot;; my $t = &quot;%J&quot;; my $pcmd = &quot;&quot;; if ($p =~ /^\d\d\d\d$/) {$u =~ s/\%U//; $u ||= &quot;Unknown&quot;; $j =~ s/\%T//; $j ||= &quot;Unknown&quot;; $u = chr(length($u) + 1) . $u . &quot;\x00&quot;; $j = chr(length($j) + 1) . $j . &quot;\x00&quot;; $p = chr(length($p) + 1) . $p . &quot;\x00&quot;; $pcmd = &quot;\@U1$u$j$p&quot;}; my $rcode = &quot;\x00&quot;; if ($r =~ /^150(|x150)$/) {$rcode = &quot;\x0a&quot;} elsif ($r =~ /^300(|x300)$/) {$rcode = &quot;\x05&quot;} elsif ($r =~ /^600(|x600)$/) {$rcode = &quot;\x00&quot;} elsif ($r =~ /^1200(|x1200)$/) {$rcode = &quot;\x0f&quot;}; my $rcmd = &quot;\@L$rcode&quot;; my $ecmd = ($e =~ /^[0123]$/ ? &quot;\@E&quot; . chr($e) : &quot;&quot;); my $mcmd = ($m =~ /^[012345678]$/ ? &quot;\@J\x00&quot; . chr($m) : &quot;&quot;); my $dcmd = ($d =~ /^[12]$/ ? &quot;\@O$d&quot; : &quot;&quot;); my $tcmd = ($t =~ /^[12MOo]$/ ? &quot;\@S$t&quot; : &quot;&quot;); my $did = 0; while (&lt;&gt;) {if (!$did) {s/\@L./$pcmd$rcmd$ecmd$mcmd$dcmd$tcmd/s &amp;&amp; $did ++}; print}'</prototype>
    <prototype_pdf>RES=%E; gs -q -dBATCH -dPARANOIDSAFER -dQUIET -dNOPAUSE -dNOMEDIAATTRS -dNOINTERPOLATE -sDEVICE=hl7x0%A%Z -r$RES -sOutputFile=-%C -f - | perl -e 'my $u = &quot;%U&quot;; my $j = &quot;%T&quot;; my $p = &quot;%F&quot;; my $r = &quot;'$RES'&quot;; my $e = &quot;%G&quot;; my $m = &quot;%H&quot;; my $d = &quot;%I&quot;; my $t = &quot;%J&quot;; my $pcmd = &quot;&quot;; if ($p =~ /^\d\d\d\d$/) {$u =~ s/\%U//; $u ||= &quot;Unknown&quot;; $j =~ s/\%T//; $j ||= &quot;Unknown&quot;; $u = chr(length($u) + 1) . $u . &quot;\x00&quot;; $j = chr(length($j) + 1) . $j . &quot;\x00&quot;; $p = chr(length($p) + 1) . $p . &quot;\x00&quot;; $pcmd = &quot;\@U1$u$j$p&quot;}; my $rcode = &quot;\x00&quot;; if ($r =~ /^150(|x150)$/) {$rcode = &quot;\x0a&quot;} elsif ($r =~ /^300(|x300)$/) {$rcode = &quot;\x05&quot;} elsif ($r =~ /^600(|x600)$/) {$rcode = &quot;\x00&quot;} elsif ($r =~ /^1200(|x1200)$/) {$rcode = &quot;\x0f&quot;}; my $rcmd = &quot;\@L$rcode&quot;; my $ecmd = ($e =~ /^[0123]$/ ? &quot;\@E&quot; . chr($e) : &quot;&quot;); my $mcmd = ($m =~ /^[012345678]$/ ? &quot;\@J\x00&quot; . chr($m) : &quot;&quot;); my $dcmd = ($d =~ /^[12]$/ ? &quot;\@O$d&quot; : &quot;&quot;); my $tcmd = ($t =~ /^[12MOo]$/ ? &quot;\@S$t&quot; : &quot;&quot;); my $did = 0; while (&lt;&gt;) {if (!$did) {s/\@L./$pcmd$rcmd$ecmd$mcmd$dcmd$tcmd/s &amp;&amp; $did ++}; print}'</prototype_pdf>
  </execution>
  <comments>
    <en>

    Fortunately, Brother uses the same protocol for their host-based
    printers for many years and an appropriate driver is embedded in
    Ghostscript, named &quot;hl7x0&quot;. Unfortunately the driver was not
    updated for the additional options and resolutions of newer
    Brother printers, so that simply using the driver does only give
    very basic support for the current models (only 600 dpi, no
    Duplex, no tray selection, ...).&lt;p&gt;

    Recently &lt;a
    href=&quot;http://sourceforge.net/projects/hbp-for-brother&quot;&gt;the
    Windows driver output of the newer models was
    investigated&lt;/a&gt; and it turned out that for the additional
    options only the appropriate commands need to be inserted at the
    beginning of the data stream.&lt;p&gt;

    On the mentioned site you find a PDF file with documentation about
    the options and a filter for inserting them into the output data
    stream of Ghostscript. As probably many distributions will not
    include this filter, the Foomatic data and the resulting PPD files
    here fo all this work without needing the filter. So you only need
    the PPD from here and the Ghostscript which comes with your
    distribution and you will have access to all resolutions including
    HQ1200 (2400x600 dpi), economy mode, media types, duplex, tray
    selection, and even password-protected printing (aka &quot;Locked
    Print&quot; or &quot;Secured Print&quot;).&lt;p&gt;

    Note that not all settings are available on all printers,
    especially on older models. On some printers you will get a
    shifted page if you use a low resolution. Use 600 dpi in such a
    case. Please report everything on our Brother forum, so that we
    can exclude unsuitable settings from the PPDs.&lt;p&gt;

    With the &quot;HQ1200&quot; resolution setting the economy mode and duplex
    settings are ignored. You will always get one-sided printouts with
    standard toner density.&lt;p&gt;

    Try this driver also with PostScript and PCL printers from Brother
    (use simply a PPD file for a printer which is listed as supported
    by this driver). Do you get better/faster results or more
    functionality? Please report on the Brother forum.&lt;p&gt;

    If you have a monchrome laser from Brother which is not listed at
    all on the OpenPrinting site, start trying with this driver and
    report on the Brother forum.&lt;p&gt;

  </en>
  </comments>
  <printers>
    <printer>
      <id>printer/Brother-DCP-8045D</id>
    </printer>
    <printer>
      <id>printer/Brother-HL-1020</id>
    </printer>
    <printer>
      <id>printer/Brother-HL-1040</id>
      <comments>
        <en>Works for 300 or 600dpi; faster than PCL.</en>
      </comments>
    </printer>
    <printer>
      <id>printer/Brother-HL-720</id>
    </printer>
    <printer>
      <id>printer/Brother-HL-730</id>
    </printer>
    <printer>
      <id>printer/Brother-HL-820</id>
    </printer>
    <printer>
      <id>printer/Brother-MFC-8300</id>
    </printer>
    <printer>
      <id>printer/Brother-MFC-9050</id>
      <comments>
        <en>Prints at 600dpi.</en>
      </comments>
    </printer>
  </printers>
</driver>