source: git/lib/print.ini @ bd171e1a

RELEASE/1.0RELEASE/1.1RELEASE/1.2debug-cidebug-ci-sanitisersstereowalls-data
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
Line 
1;  Printer Description File for Survex - http://www.survex.com/
2;
3;  Copyright (C) 1993-2001 Olly Betts
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
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
57
58
59[base]
60;default for MSDOS
61output_msdos=LPT1
62
63;default for MS Windows
64output_mswindows=LPT1
65
66;default for Unix
67output_unix=|lpr
68
69;default for RISC OS
70;Survex$Printer is set in !Cavern.!Boot (to Printer: by default)
71output_riscos=<Survex$Printer>
72
73;default for anything else (send to a file called `Printout')
74output=Printout
75
76; ======================================================================
77
78[dm]
79like=dm_8pin_a4
80
81; ======================================================================
82
83[ps]
84like=ps_generic_a4
85
86; ======================================================================
87
88[pcl]
89like=pcl_generic_a4
90
91; ======================================================================
92
93[hpgl]
94like=hpgl_generic_a4landscape
95
96; ======================================================================
97
98; Driver definitions for different printers
99
100; ======================================================================
101
102[dm_8pin_a4]
103like=base
104type=dm
105pixels_across_page=960
106
107; Page Lines Deep (99 for 11" paper, 108 for 12", 101 for A4)
108lines_down_page=101
109
110; Line Dots Deep (any value >0 but 8,9,24 are useful)
111dots_per_pass=8
112
113; Printer line spacing (\xXX gives char with hex ASCII value XX)
114code_line_spacing=\[3\x18
115
116; Printer graphics mode
117code_graphics_mode=\[L
118code_graphics_mode_suffix=
119
120; Printer large font
121code_large_font=\x12\[W1
122
123; Printer small font
124code_small_font=\[W0\x0f
125
126; Printer page feed
127code_formfeed=\x0c
128
129; Printer reset
130code_reset_printer=\[2
131
132; End of line code
133code_end_of_line=\x0D\x0A
134
135; ======================================================================
136
137[dm_8pin_11inch]
138like=dm_8pin_a4
139
140; Page Lines Deep (99 for 11" paper, 108 for 12", 101 for A4)
141lines_down_page=99
142
143; ======================================================================
144
145[dm_8pin_12inch]
146like=dm_8pin_a4
147
148; Page Lines Deep (99 for 11" paper, 108 for 12", 101 for A4)
149lines_down_page=108
150
151; ======================================================================
152
153[dm_9pin_a4]
154like=dm_8pin_a4
155
156; Page Lines Deep (99 for 11" paper, 108 for 12", 101 for A4)
157lines_down_page=101
158
159; Line Dots Deep (any value >0 but 8,9,24 are useful)
160dots_per_pass=9
161
162; Printer line spacing (\xXX gives char with hex ASCII value XX)
163code_line_spacing=\[3\[
164
165; Printer graphics mode
166code_graphics_mode=\[^\x01
167
168; ======================================================================
169
170[dm_9pin_11inch]
171like=dm_9pin_a4
172
173; Page Lines Deep (99 for 11" paper, 108 for 12", 101 for A4)
174lines_down_page=99
175
176; ======================================================================
177
178[dm_9pin_12inch]
179like=dm_9pin_a4
180
181; Page Lines Deep (99 for 11" paper, 108 for 12", 101 for A4)
182lines_down_page=108
183
184; ======================================================================
185
186[dm_24pin_a4]
187like=dm_8pin_a4
188pixels_across_page=1440
189
190; Page Lines Deep (99 for 11" paper, 108 for 12", 101 for A4)
191lines_down_page=101
192
193; Line Dots Deep (any value >0 but 8,9,24 are useful)
194dots_per_pass=24
195
196; Printer line spacing (\xXX gives char with hex ASCII value XX)
197code_line_spacing=\[3\x18
198
199; Printer graphics mode
200code_graphics_mode=\[*\x27
201
202; ======================================================================
203
204[dm_24pin_11inch]
205like=dm_24pin_a4
206
207; Page Lines Deep (99 for 11" paper, 108 for 12", 101 for A4)
208lines_down_page=99
209
210; ======================================================================
211
212[dm_24pin_12inch]
213like=dm_24pin_a4
214
215; Page Lines Deep (99 for 11" paper, 108 for 12", 101 for A4)
216lines_down_page=108
217
218; ======================================================================
219
220[dm_panasonic_24pin]
221like=dm_24pin_a4
222
223; Page Lines Deep
224lines_down_page=85
225
226; ======================================================================
227
228[dm_lx86_9pin_11inch]
229like=dm_9pin_11inch
230
231; ======================================================================
232
233[hpgl_generic_a4landscape]
234like=base
235
236; Page: plottable width (mm) (page is landscape)
237mm_across_page=285
238
239; Page: plottable length (mm)
240mm_down_page=200
241
242origin_in_centre=1
243
244; ======================================================================
245
246[hpgl_generic_a1landscape]
247like=base
248
249; Page: plottable width (mm) (page is landscape)
250mm_across_page=430
251
252; Page: plottable length (mm)
253mm_down_page=580
254
255origin_in_centre=1
256
257; ======================================================================
258
259[hpgl_generic_a0landscape]
260like=base
261
262; Page: plottable width (mm) (page is landscape)
263mm_across_page=1140
264
265; Page: plottable length (mm)
266mm_down_page=800
267
268origin_in_centre=1
269
270; ======================================================================
271
272[pcl_generic_a4]
273like=base
274
275; Dots/Inch resolution (check manual or printer will use approxn)
276dpi=300
277
278; Printable area width (mm)
279mm_across_page=200
280
281; Printable area depth (mm)
282mm_down_page=280
283
284; Use horizontal tabs? 0 for no; 1 for yes
285horizontal_tab_ok=0
286
287; Use vertical tabs? 0 for no; 1 for yes
288vertical_tab_ok=0
289
290; ======================================================================
291
292[pcl_modern_a4]
293like=pcl_generic_a4
294
295; Use horizontal tabs? 0 for no; 1 for yes
296horizontal_tab_ok=1
297
298; Use vertical tabs? 0 for no; 1 for yes
299vertical_tab_ok=1
300
301; ======================================================================
302
303[ps_generic_a4]
304like=base
305
306; name of font to use for text
307font=Times-Roman
308
309; font size in points (was fixed at 10 in older versions)
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
318; line width in points (was fixed at printer default in older versions)
319line_width=0.1
320
321; left edge to left margin (mm)
322mm_left_margin=8.1
323
324; left edge to right margin (mm)
325mm_right_margin=203.6
326
327; bottom edge to bottom margin (mm)
328mm_bottom_margin=8.1
329
330; bottom edge to top margin (mm)
331mm_top_margin=288.9
332
333; ======================================================================
334
335[bj]
336like=base
337type=dm
338pixels_across_page=2880
339
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
345; Page Lines Deep (99 for 11" paper, 108 for 12", 101 for A4)
346lines_down_page=101
347
348; Line Dots Deep
349dots_per_pass=48
350
351; Printer line spacing (\xXX gives char with hex ASCII value XX)
352code_line_spacing=
353
354; Printer graphics mode
355code_graphics_mode=\[[g
356code_graphics_mode_suffix=\x10
357
358; Printer large font
359code_large_font=\[I\x08\[W\x01
360
361; Printer small font
362code_small_font=\[I\x10\[W\x00
363
364; Printer page feed
365code_formfeed=\x0c
366
367; Printer reset
368code_reset_printer=
369
370code_end_of_line=\[J\x18\x0d
371is_ibm=1
372
373; ======================================================================
Note: See TracBrowser for help on using the repository browser.