{ -------------------------- Printer Configuration ------------------ }
{ There are four printer macros:

    Prt ---- standard text printer
    Rprt --- black & white graphics printer
    Cprt --- color text printer
    Crprt -- color graphics printer
}

{ Printer macros for direct printer access }
{ Use a spooler to avoid conflicts caused by more than one print request
  at any one time. }

LET Prt  '/dev/lp'
LET Rprt '/dev/rlp'
LET Cprt '/dev/lp'
LET Crprt '/dev/rlp'

{ Printer macros for the line printer spooling system; uncomment if needed }
{ Adapt these macros if you control your printers via HP OpenSpool/UX }

{ DEFINE Prt                                                    }
{   '| lp -s'        }
{ END_DEFINE                                                    }
{ DEFINE Rprt                                                   }
{   '| lp -s -or'    }
{ END_DEFINE                                                    }
{ DEFINE Cprt                                                   }
{   '| lp -s -dpaintjet'    }
{ END_DEFINE                                                    }
{ DEFINE Crprt                                                  }
{   '| lp -s -oraw -dpaintjet'    }
{ END_DEFINE                                                    }

{ NOTE:                                                         }
{ The  macros above will work for most commands in ME10, but    }
{ there are still some commands which will not accept a pipe    }
{ as a  destination, for example COPY_FILE.                     }
{ If you want to use these commands in conjunction with Prt,    }
{ Rprt, Cprt or Crprt, we recommend setting the printer    	}
{ commands as follows:                     			}
{                                                               }
{   DEFINE Prt                                                  }
{     '/tmp/me.prt'                                             }
{     RUN GRAPHIC 'lp -s </tmp/me.prt'                          }
{     PURGE_FILE '/tmp/me.prt' CONFIRM                          }
{   END_DEFINE                                                  }


{ Dump screen defaults setting for color printer (PaintJet) }
DEFINE Dump_screen_defaults_color
  DUMP_SCREEN_DEFAULTS ON Sys_dump_screen_background 180 10.5 8.0
END_DEFINE

{ Dump screen defaults setting for black & white printer (ThinkJet) }
DEFINE Dump_screen_defaults_bw
  DUMP_SCREEN_DEFAULTS OFF Sys_dump_screen_background 106 10.5 6.5
END_DEFINE

{ Setting for dump screen menu }
Set_sys_dump_screen_background ON
Set_sys_dump_screen_color ON

{ If the file  "plotdefs"  has changed  during your  session you have to
  enter the following line interactively:  }
LET Mustread_plotdefs (TRUE)

{ New plotter names with their origin and language specification }

LET Sys_plot_emulate_758x (TRUE)

DEFINE Add_new_plotters
  IF (Sys_plot_emulate_758x)
    PLOTTER_TYPE ADD HPGL CENTER '7600/240D,240D,7627,7627A'
    PLOTTER_TYPE ADD HPGL CENTER '7600/240E,240E,7628,7628A'
  ELSE
    PLOTTER_TYPE ADD HPGL2 '7600/240D,240D,7627,7627A'
    PLOTTER_TYPE ADD HPGL2 '7600/240E,240E,7628,7628A'
  END_IF

  PLOTTER_TYPE ADD HPGL CENTER '7575,7575A,DXL'
  PLOTTER_TYPE ADD HPGL CENTER '7576,7576A,EXL'
  PLOTTER_TYPE ADD HPGL2 'DM/SX,7595B'
  PLOTTER_TYPE ADD HPGL2 'DM/RX,7596B'
  PLOTTER_TYPE ADD HPGL2 'DM/MX,7599A'
  PLOTTER_TYPE ADD HPGL2 '7600/250,250'
  PLOTTER_TYPE ADD HPGL2 '7600/255,255'
  PLOTTER_TYPE ADD HPGL2 '7600/355,355'
  PLOTTER_TYPE ADD HPGL2 'LASERJET/III,LJ/III'
  PLOTTER_TYPE ADD HPGL2 'PAINTJET/XL,PJ/XL'
END_DEFINE

Add_new_plotters

{ Plot transformation for HPGL2 plotters with 8 colors.                  }
{   Use Plot_hpgl2_8colors to activate plot transformation               }
{   for HPGL2 plotters with 8 colors.                                    }
{   Use PLOT_TRANSFORMATION RESET to switch back to the default setting. }

DEFINE Plot_hpgl2_8colors
  PLOT_TRANSFORMATION ALL { all colors    } .0 1.  .0 1.  .0 1.  SAME 1
  { Color mapping for a RGB color cube devided into 8 color ranges }
  PLOT_TRANSFORMATION ALL { black range   } .0 .5  .0 .5  .0 .5  SAME 1
  PLOT_TRANSFORMATION ALL { red range     } .5 1.  .0 .5  .0 .5  SAME 2
  PLOT_TRANSFORMATION ALL { green range   } .0 .5  .5 1.  .0 .5  SAME 3
  PLOT_TRANSFORMATION ALL { yellow range  } .5 1.  .5 1.  .0 .5  SAME 4
  PLOT_TRANSFORMATION ALL { blue range    } .0 .5  .0 .5  .5 1.  SAME 5
  PLOT_TRANSFORMATION ALL { magenta range } .5 1.  .0 .5  .5 1.  SAME 6
  PLOT_TRANSFORMATION ALL { cyan range    } .0 .5  .5 1.  .5 1.  SAME 7
  PLOT_TRANSFORMATION ALL { white range   } .5 1.  .5 1.  .5 1.  SAME 0
  { Special mappings for BLACK, WHITE etc. }
  PLOT_TRANSFORMATION ALL { black color   } BLACK SAME 0
  PLOT_TRANSFORMATION ALL { white color   } WHITE SAME 1
  PLOT_TRANSFORMATION PHANTOM CYAN SAME 0
END_DEFINE { Plot_hpgl2_8colors }

{ See help system for detailed information of the following entries. }
Set_sys_plot_default ''
{ Example:                        
Set_sys_plot_default ('NP8;WU;PW0.3750,1;PW0.6875,2;PW0.1875,3;PW0.2500,4;'
		           + 'PW0.3125,5;PW0.5000,6;PW1.0000,7; LA1,4,2,4;')
}
Set_sys_plot_id_name 'N'
Set_sys_plot_center ON
Set_sys_plot_plotscale 1
Set_sys_plot_source ALL
Set_sys_plot_source_ll 0,0
Set_sys_plot_source_ur 100,100
Set_sys_plot_as_displayed (FALSE)
Set_sys_plot_rot 0
Set_sys_plot_offset_x 0
Set_sys_plot_offset_y 0
Set_sys_plot_format_width 266.75
Set_sys_plot_format_height 185
Set_sys_plot_format 'A4'

{ Setting the plot configuration }

Reset_sys_plot_configuration               { Reset the plot configuration }

{ ME plotspooler is required for this plot configuration. }
Set_sys_plot_configuration 'Spool7550'
Set_sys_plot_type '7550'
Set_sys_plot_filename_prefix '/me10/spooldir1/p'
Set_sys_plot_filename_delold (FALSE)
Set_sys_plot_filename_generate (TRUE)

{ ME plotspooler is required for this plot configuration. }
Set_sys_plot_configuration 'Spool7596'
Set_sys_plot_type '7596'
Set_sys_plot_filename_prefix '/me10/spooldir2/p'
Set_sys_plot_filename_delold (FALSE)
Set_sys_plot_filename_generate (TRUE)

{ HP OpenSpool/UX is required for this plot configuration:
   * plot will be sent to queue ColorElectro
   * user will be be notified by mail (-M option) after plot is finished. }
Set_sys_plot_configuration 'Color Electrostat'
Set_sys_plot_type '7600/355'
Set_sys_plot_filename_prefix '| np -q ColorElectro -M yes'
Set_sys_plot_filename_delold (FALSE)
Set_sys_plot_filename_generate (FALSE)

{ HP OpenSpool/UX is required for this plot configuration:
   * plot will be sent to queue HPGL2pen
   * with a generated id name (-n option at the end!). }
{
Set_sys_plot_configuration 'DraftMaster MX'
Set_sys_plot_type 'DM/MX'
Set_sys_plot_filename_prefix '| np -q HPGL2pen -n '
Set_sys_plot_filename_delold (FALSE)
Set_sys_plot_filename_generate (TRUE)
}

{ lp (or HP OpenSpool/UX lp emulation) is required for this plot configuration:
   * plot will be sent to device (or queue) Laserplot }
Set_sys_plot_configuration 'Laserplot'
Set_sys_plot_type 'LASERJET/III'
Set_sys_plot_filename_prefix '| lp -dLaserplot'
Set_sys_plot_filename_delold (FALSE)
Set_sys_plot_filename_generate (FALSE)

{ Select one plot configuration to be current. }
Set_sys_plot_configuration 'Spool7550'




DEFINE I_hatch_iron
  HATCH_ANGLE 45
  HATCH_DIST 5
  CURRENT_HATCH_PATTERN 0 1 0 CYAN SOLID CONFIRM
END_DEFINE

DEFINE I_hatch_steel
  HATCH_ANGLE 45
  HATCH_DIST 15
  CURRENT_HATCH_PATTERN  0 1 0 CYAN SOLID  (1/3) 1 0 CYAN SOLID  CONFIRM
END_DEFINE

DEFINE I_hatch_copper
  HATCH_ANGLE 45
  HATCH_DIST 10
  CURRENT_HATCH_PATTERN  0 1 0 CYAN SOLID  0.5 1 0 CYAN DASHED  CONFIRM
END_DEFINE

{ ------------- Tablet overlay configuration for 45911 tablet ---------------}

{ The 45911a and some 45911c tablets were delivered with overlays which      }
{ originally were designed for the 46087 tablet.                             }
{                                                                            }
{    ME10     PART NO. 98365-10702                                           }
{        and  PART NO. B1310-10702                                           }
{    ME30     PART NO. 74836-10702                                           }
{        and  PART NO. B1330-10702                                           }
{                                                                            }
{ These overlays are now replaced by new ones which are specially designed   }
{ for the 45911 tablet.                                                      }
{                                                                            }
{    ME10     PART NO. B1310-10704 (all revisions)                           }
{    ME30     PART NO. B1330-10704 (all revisions)                           }
{                                                                            }
{ To select the different offsets of these overlays on the tablet, one of    }
{ the following lines must be activated by removing the comment brackets.    }

{ LET Tablet_45911_overlay '10702' }  { old 46087 overlay }
  LET Tablet_45911_overlay '10704'    { new 45911 overlay }

