source: git/lib/print.ini @ bd171e1a

RELEASE/1.0RELEASE/1.1RELEASE/1.2debug-cidebug-ci-sanitisersstereowalls-datawalls-data-hanging-as-warning
Last change on this file since bd171e1a was bd171e1a, checked in by Olly Betts <olly@…>, 23 years ago

Removed --output option from printwin (there is no output file) and
--calibrate option for everything apart from in printdm.

printdm now refuses to print if there's no calibration in the .ini
rather than printing to the wrong scale. Calibration pages can still
be printed of course.

git-svn-id: file:///home/survex-svn/survex/trunk@1412 4b37db11-9a0c-4f06-9ece-9ab7cdaee568

  • Property mode set to 100644
File size: 8.3 KB
RevLine 
[bd171e1a]1;  Printer Description File for Survex - http://www.survex.com/
[b2f758c]2;
[bd171e1a]3;  Copyright (C) 1993-2001 Olly Betts
[b2f758c]4;
5;  This program is free software; you can redistribute it and/or modify
6;  it under the terms of the GNU General Public License as published by
7;  the Free Software Foundation; either version 2 of the License, or
8;  (at your option) any later version.
9;
10;  This program is distributed in the hope that it will be useful,
11;  but WITHOUT ANY WARRANTY; without even the implied warranty of
12;  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13;  GNU General Public License for more details.
14;
15;  You should have received a copy of the GNU General Public License
16;  along with this program; if not, write to the Free Software
17;  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
18
19
[bd171e1a]20; Note: don't modify this file or your changes will be overwritten by
21; upgrades.
22;
23; Instead create:
24;
25;  * /etc/survex/print.ini (Unix - system-wide settings)
26;  * ~/.survex/print.ini (Unix - per user settings)
27;  * myprint.ini in the directory where Survex is installed (other platforms)
28;
29; The drivers look for the section "[dm]", "[ps]", "[pcl]" or "[hpgl]" as
30; appropriate.  The file you create should should contain something like
31; to select a particular printer:
32;
33; [pcl]
34; like=pcl_modern_a4
35;
36; For printdm, it should also contain calibration measurements:
37;
38; [dm]
39; like=dm_24pin_a4
40; mm_across_page=202
41; mm_down_page=278
42;
43; You can override other settings too, such as the output destination:
44;
45; [dm]
46; output_unix=|lpr -Pepson
47; like=dm_24pin_a4
48; mm_across_page=202
49; mm_down_page=278
50;
51; printdm can also drive Canon bubblejets in native mode (which gives a
52; higher resolution than in Epson emulation mode).  To use this,
53; set "like=bj" in the "[dm]" section - like so:
54;
55; [dm]
56; like=bj
[adaa778]57
[b2f758c]58
[adaa778]59[base]
[b2f758c]60;default for MSDOS
61output_msdos=LPT1
62
63;default for MS Windows
64output_mswindows=LPT1
65
66;default for Unix
67output_unix=|lpr
[adaa778]68
[b2f758c]69;default for RISC OS
[d4d7e27]70;Survex$Printer is set in !Cavern.!Boot (to Printer: by default)
71output_riscos=<Survex$Printer>
[adaa778]72
[b2f758c]73;default for anything else (send to a file called `Printout')
74output=Printout
[adaa778]75
[b2f758c]76; ======================================================================
77
[adaa778]78[dm]
79like=dm_8pin_a4
80
[b2f758c]81; ======================================================================
82
[adaa778]83[ps]
84like=ps_generic_a4
85
[b2f758c]86; ======================================================================
87
[adaa778]88[pcl]
89like=pcl_generic_a4
90
[b2f758c]91; ======================================================================
92
[adaa778]93[hpgl]
94like=hpgl_generic_a4landscape
95
[b2f758c]96; ======================================================================
97
[adaa778]98; Driver definitions for different printers
99
[b2f758c]100; ======================================================================
101
[adaa778]102[dm_8pin_a4]
103like=base
104type=dm
105pixels_across_page=960
[b2f758c]106
[adaa778]107; Page Lines Deep (99 for 11" paper, 108 for 12", 101 for A4)
[b2f758c]108lines_down_page=101
109
[adaa778]110; Line Dots Deep (any value >0 but 8,9,24 are useful)
[b2f758c]111dots_per_pass=8
112
[adaa778]113; Printer line spacing (\xXX gives char with hex ASCII value XX)
[b2f758c]114code_line_spacing=\[3\x18
115
116; Printer graphics mode
[adaa778]117code_graphics_mode=\[L
118code_graphics_mode_suffix=
[b2f758c]119
[adaa778]120; Printer large font
[b2f758c]121code_large_font=\x12\[W1
122
[adaa778]123; Printer small font
[b2f758c]124code_small_font=\[W0\x0f
125
[adaa778]126; Printer page feed
[b2f758c]127code_formfeed=\x0c
128
[adaa778]129; Printer reset
[b2f758c]130code_reset_printer=\[2
131
[adaa778]132; End of line code
[b2f758c]133code_end_of_line=\x0D\x0A
134
135; ======================================================================
[adaa778]136
137[dm_8pin_11inch]
138like=dm_8pin_a4
[b2f758c]139
[adaa778]140; Page Lines Deep (99 for 11" paper, 108 for 12", 101 for A4)
[b2f758c]141lines_down_page=99
142
143; ======================================================================
[adaa778]144
145[dm_8pin_12inch]
146like=dm_8pin_a4
[b2f758c]147
[adaa778]148; Page Lines Deep (99 for 11" paper, 108 for 12", 101 for A4)
[b2f758c]149lines_down_page=108
150
151; ======================================================================
[adaa778]152
153[dm_9pin_a4]
154like=dm_8pin_a4
[b2f758c]155
[adaa778]156; Page Lines Deep (99 for 11" paper, 108 for 12", 101 for A4)
[b2f758c]157lines_down_page=101
158
[adaa778]159; Line Dots Deep (any value >0 but 8,9,24 are useful)
[b2f758c]160dots_per_pass=9
161
[adaa778]162; Printer line spacing (\xXX gives char with hex ASCII value XX)
[b2f758c]163code_line_spacing=\[3\[
164
[adaa778]165; Printer graphics mode
[b2f758c]166code_graphics_mode=\[^\x01
167
168; ======================================================================
[adaa778]169
170[dm_9pin_11inch]
171like=dm_9pin_a4
[b2f758c]172
173; Page Lines Deep (99 for 11" paper, 108 for 12", 101 for A4)
[adaa778]174lines_down_page=99
[b2f758c]175
176; ======================================================================
[adaa778]177
178[dm_9pin_12inch]
179like=dm_9pin_a4
[b2f758c]180
181; Page Lines Deep (99 for 11" paper, 108 for 12", 101 for A4)
[adaa778]182lines_down_page=108
[b2f758c]183
184; ======================================================================
[adaa778]185
186[dm_24pin_a4]
187like=dm_8pin_a4
188pixels_across_page=1440
[b2f758c]189
[adaa778]190; Page Lines Deep (99 for 11" paper, 108 for 12", 101 for A4)
[b2f758c]191lines_down_page=101
192
[adaa778]193; Line Dots Deep (any value >0 but 8,9,24 are useful)
[b2f758c]194dots_per_pass=24
195
[adaa778]196; Printer line spacing (\xXX gives char with hex ASCII value XX)
[b2f758c]197code_line_spacing=\[3\x18
198
[adaa778]199; Printer graphics mode
[b2f758c]200code_graphics_mode=\[*\x27
[adaa778]201
[b2f758c]202; ======================================================================
[adaa778]203
204[dm_24pin_11inch]
205like=dm_24pin_a4
[b2f758c]206
[adaa778]207; Page Lines Deep (99 for 11" paper, 108 for 12", 101 for A4)
[b2f758c]208lines_down_page=99
209
210; ======================================================================
[adaa778]211
212[dm_24pin_12inch]
213like=dm_24pin_a4
[b2f758c]214
[adaa778]215; Page Lines Deep (99 for 11" paper, 108 for 12", 101 for A4)
[b2f758c]216lines_down_page=108
217
218; ======================================================================
[adaa778]219
220[dm_panasonic_24pin]
221like=dm_24pin_a4
[b2f758c]222
[adaa778]223; Page Lines Deep
[b2f758c]224lines_down_page=85
225
226; ======================================================================
[adaa778]227
228[dm_lx86_9pin_11inch]
229like=dm_9pin_11inch
[b2f758c]230
231; ======================================================================
[adaa778]232
233[hpgl_generic_a4landscape]
234like=base
[b2f758c]235
[adaa778]236; Page: plottable width (mm) (page is landscape)
[b2f758c]237mm_across_page=285
238
[adaa778]239; Page: plottable length (mm)
[b2f758c]240mm_down_page=200
241
[adaa778]242origin_in_centre=1
243
[b2f758c]244; ======================================================================
245
[adaa778]246[hpgl_generic_a1landscape]
247like=base
[b2f758c]248
[adaa778]249; Page: plottable width (mm) (page is landscape)
[b2f758c]250mm_across_page=430
251
[adaa778]252; Page: plottable length (mm)
[b2f758c]253mm_down_page=580
254
[adaa778]255origin_in_centre=1
256
[b2f758c]257; ======================================================================
258
[adaa778]259[hpgl_generic_a0landscape]
260like=base
[b2f758c]261
[adaa778]262; Page: plottable width (mm) (page is landscape)
[b2f758c]263mm_across_page=1140
264
[adaa778]265; Page: plottable length (mm)
[b2f758c]266mm_down_page=800
267
[adaa778]268origin_in_centre=1
269
[b2f758c]270; ======================================================================
[adaa778]271
272[pcl_generic_a4]
273like=base
[b2f758c]274
[adaa778]275; Dots/Inch resolution (check manual or printer will use approxn)
[b2f758c]276dpi=300
277
[adaa778]278; Printable area width (mm)
[b2f758c]279mm_across_page=200
280
[adaa778]281; Printable area depth (mm)
[b2f758c]282mm_down_page=280
283
[adaa778]284; Use horizontal tabs? 0 for no; 1 for yes
[b2f758c]285horizontal_tab_ok=0
286
[adaa778]287; Use vertical tabs? 0 for no; 1 for yes
[b2f758c]288vertical_tab_ok=0
289
290; ======================================================================
[adaa778]291
292[pcl_modern_a4]
293like=pcl_generic_a4
[b2f758c]294
[adaa778]295; Use horizontal tabs? 0 for no; 1 for yes
[b2f758c]296horizontal_tab_ok=1
297
[adaa778]298; Use vertical tabs? 0 for no; 1 for yes
[b2f758c]299vertical_tab_ok=1
[adaa778]300
[b2f758c]301; ======================================================================
[adaa778]302
303[ps_generic_a4]
304like=base
[b2f758c]305
[adaa778]306; name of font to use for text
[b2f758c]307font=Times-Roman
308
[990fbaf0]309; font size in points (was fixed at 10 in older versions)
[b2f758c]310font_size=10
311
312; name of font to use for labels
313font_labels=Helvetica
314
315; font size for labels in points
316font_size_labels=6
317
[990fbaf0]318; line width in points (was fixed at printer default in older versions)
[50ada97]319line_width=0.1
[b2f758c]320
[adaa778]321; left edge to left margin (mm)
[b2f758c]322mm_left_margin=8.1
323
[adaa778]324; left edge to right margin (mm)
[b2f758c]325mm_right_margin=203.6
326
[adaa778]327; bottom edge to bottom margin (mm)
[b2f758c]328mm_bottom_margin=8.1
329
[adaa778]330; bottom edge to top margin (mm)
[b2f758c]331mm_top_margin=288.9
332
333; ======================================================================
[adaa778]334
335[bj]
336like=base
337type=dm
338pixels_across_page=2880
[b2f758c]339
[bd171e1a]340; Canon BJ printers are unlikely to require calibration
341mm_across_page=203.2
342;mm_down_page= FIXME 101 lines => 98 used * 48 dots/line gives way more
343; then 360 dpi, which is what we'd expect
344
[adaa778]345; Page Lines Deep (99 for 11" paper, 108 for 12", 101 for A4)
[b2f758c]346lines_down_page=101
347
[bd171e1a]348; Line Dots Deep
[b2f758c]349dots_per_pass=48
350
[adaa778]351; Printer line spacing (\xXX gives char with hex ASCII value XX)
[b2f758c]352code_line_spacing=
353
354; Printer graphics mode
[adaa778]355code_graphics_mode=\[[g
356code_graphics_mode_suffix=\x10
[b2f758c]357
[adaa778]358; Printer large font
[b2f758c]359code_large_font=\[I\x08\[W\x01
360
[adaa778]361; Printer small font
[b2f758c]362code_small_font=\[I\x10\[W\x00
363
[adaa778]364; Printer page feed
[b2f758c]365code_formfeed=\x0c
366
[adaa778]367; Printer reset
[b2f758c]368code_reset_printer=
369
[adaa778]370code_end_of_line=\[J\x18\x0d
371is_ibm=1
[b2f758c]372
373; ======================================================================
Note: See TracBrowser for help on using the repository browser.