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