File: sipixa6.upp.xml

package info (click to toggle)
foomatic-db 20200820-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 670,572 kB
  • sloc: xml: 326,326; sh: 153; makefile: 114; python: 8
file content (74 lines) | stat: -rw-r--r-- 2,546 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
<driver id="driver/sipixa6.upp">
  <name>sipixa6.upp</name>
  <url>http://www.openprinting.org/download/printing/sipixa6.upp</url>
  <thirdpartysupplied />
  <execution>
    <uniprint />
    <prototype>psresize -w10.5cm -h14.8cm%E | gs @sipixa6.upp -q -dBATCH -dPARANOIDSAFER -dQUIET -dNOPAUSE -dNOMEDIAATTRS -dNOINTERPOLATE %A%Z -sOutputFile=- - | ( cat -; echo -en '\r\n' ) </prototype>
    <ppdentry>
      *DefaultResolution: 360dpi
    </ppdentry>
  </execution>
  <comments>
    <en>

      To install the driver, simply copy sipixa6.upp into one of the
      directories listed in the &quot;Search path&quot; which you find
      in the output of the command &quot;&lt;tt&gt;gs
      --help&lt;/tt&gt;&quot;.&lt;p&gt;

      To set up the printer and print, proceed as follows:&lt;p&gt;

      First step is to set the proper serial port parameters:&lt;p&gt;

      &lt;tt&gt;stty -F /dev/ttyS1 115200 crtscts cs8 -cstopb
      -parenb&lt;/tt&gt;&lt;p&gt;

      Your serial port may be
      &lt;tt&gt;/dev/ttyS0&lt;/tt&gt;.&lt;p&gt;

      First you have to resize the postscript document down to
      A6:&lt;p&gt;

      &lt;tt&gt;psresize -w10.5cm -h14.8cm -Pletter old.ps
      new.ps&lt;/tt&gt;&lt;p&gt;

      Then send it through Ghostscript:&lt;p&gt;

      &lt;tt&gt;gs @sipixa6.upp -sPAPERSIZE=a6 -sOutputFile=new.bin
      new.ps -c quit&lt;/tt&gt;&lt;p&gt;

      After that send the binary file to the printer:&lt;p&gt;

      &lt;/tt&gt;cat new.bin &gt; /dev/ttyS1&lt;/tt&gt;&lt;p&gt;

      Ghostscript does not always put a final cr/lf pair at the end of
      the binary file, so make a 2 byte file with a cr/lf pair. Then
      do:&lt;p&gt;

      &lt;tt&gt;cat new.bin fileend.bin &gt;
      /dev/ttyS1&lt;/tt&gt;&lt;p&gt;

      If you use the PPD file provided here together with your
      printing system, the pages are scaled automatically to fit the
      A6 paper and the cr/lf is also added automatically.&lt;p&gt;

      As CUPS URI use:&lt;p&gt;

      &lt;tt&gt;serial:/dev/ttyS0?baud=115200+size=8+parity=none+stop=1+flow=rtscts&lt;/tt&gt;&lt;p&gt;

      Thanks to Mark Small (msmall at eastlink dot ca) for
      contributing this driver. See also &lt;a
      href=&quot;http://lists.freestandards.org/pipermail/printing-user-general/2006/008607.html&quot;&gt;his
      posting in our forums&lt;/a&gt;.&lt;p&gt;

      UPP files of this driver: sipixa6.upp&lt;p&gt;

    </en>
  </comments>
  <printers>
    <printer>
      <id>printer/SiPix-Pocket_Printer_A6</id>
    </printer>
  </printers>
</driver>