# HP Mode Set configuration file.
#
# Printer: all
#
# This is a template configuration.  It provides all PJL commands.  This template
# has been used to create all of the configuration files for specific HP printers.
#
# If you use this template as the config file for hpmodeset be careful of unsupported 
# switches.
#
# template,v 1.3 1996/01/22 03:09:30 glennm Exp
#
#
# Unprintable characters can be specified within strings using a limited form
# of Eiffel special characters.  This is similar to the C form of quoted characters (eg. '\n'),
# but uses the percent sign instead.  The reason for this (I believe) is the percent 
# sign is more portable.  Therefore, unprintable characters include:
# 
#       %B	backspace
#	%F	formfeed
#	%N	newline
#	%R	carriage return
#	%T	horizontal tab
#	%U	null
#	%%	percent
#	%/xxx/	any character with its decimal ASCII code. eg, '%/34/' is the double
#		  quote character.  This is the only way to embed a double quote within
#		  a string. (This made the lexical analyser a little simpler!)
#
##############################################################################
# The global section defines global commands that are mandatory
#
# The variables recognised within the global section define a number of values
# used in composing a printer control command.  The variables include:
#
#	job_header	 - defines the string used at the start of every job
#	job_trailer	 - defines the string used at the end of every job
#       reset_command    - the command to reset the printer back to default values
#       end_of_command   - the string appended to every command
#       white_space      - used between every command component.
#
# Values for all of these variables must be given.
###############################################################################
#
# Syntax:
#	name			value
#
Section globals
	job_header		"%/27/%%-12345X@PJL COMMENT Generated by Hpmodeset (C) 1995/1996 Glenn Maughan" 
	job_trailer		"%/27/%%-12345X@PJL COMMENT end of job"
	reset_command		"@PJL RESET%N%/27/%%-12345X"
	end_of_command		"%N"
	white_space		" "		
EndSection

#############################################################################
# The languages section defines the languages supported by the printer and 
# the magic numbers to search for to determine the language.
#
# List the languages that your printer supports.  The `magic_string' will be 
# used to determine what language the print file is in.  The `magic_string' 
# is searched for at `offset'.  `offset' should start at 1 not zero.  
#
# At least one language must be specified.
#############################################################################
#
# Syntax:
#	language	enter command				leave command	offset		magic_string
#
Section languages
	postscript	"@PJL ENTER LANGUAGE = POSTSCRIPT"	"%/3/"		1		"%%!"
	pcl		"@PJL ENTER LANGUAGE = PCL"		""		1		"%/27/E%/27/"	# <esc>E<esc>
EndSection

############################################################################
# The variables section defines the variables that can be changed using the 
# `set_command'.
# 
# Each variable line should list the command line switch used to set the 
# value, the printer command variable name, the valid options for the 
# variable and the default option.
# 
# Options are currently case sensitive.  If the printer accepts both cases for
# options then you need to specify both.
############################################################################
#
# General variables
# 
# Some variables modify the User Default Environment as well as the Current Environment.  
# Be careful with these variables as the changes will remain set even after an intialise.  The
# only way to reset them to factory defaults is to send a "@PJL INITIALIZE" command.
#
# Variables that can only be set with default commands are included.  Again, these will modify the
# User Default Environment as well as the Current Environment.
# 
# Default paper sizes are A4.  This is because I live in Australia!  You may change them to LETTER.
#
# Syntax:
# 	switch			variable			options			default	
#						
Section variables		
	-autocont		"@PJL SET AUTOCONT ="		ON,OFF,on,off		OFF	# modifies User Default Environment
	-autoselect		"@PJL SET AUTOSELECT ="		ON,OFF,on,off		ON
	-binding		"@PJL SET BINDING ="		LONGEDGE,SHORTEDGE,
								longedge,shortedge	LONGEDGE
	-clearablewarnings	"@PJL SET CLEARABLEWARNINGS ="	JOB,ON,job,on		ON	# modifies User Default Environment
	-contextswitch		"@PJL SET CONTEXTSWITCH ="	ON,OFF,on,off		ON	
	-copies			"@PJL SET COPIES ="		1-999			1
	-cplock			"@PJL SET CPLOCK ="		OFF,ON,off,on		OFF
	-density		"@PJL SET DENSITY ="		1-5			3	# modifies User Default Environment
	-disklock		"@PJL DEFAULT DISKLOCK ="	OFF,ON,off,on		OFF	# modifies User Default Environment
	-duplex			"@PJL SET DUPLEX ="		OFF,ON,off,on		OFF	
	-economode		"@PJL SET ECONOMODE ="		ON,OFF,on,off		OFF
	-formlines		"@PJL SET FORMLINES ="		5-128			60
	-imageadapt		"@PJL SET IMAGEADAPT ="		AUTO,ON,OFF,
								auto,on,off		AUTO
	-intray1		"@PJL SET INTRAY1 ="		UNLOCKED,LOCKED,
								unlocked,locked		UNLOCKED
	-intray2		"@PJL SET INTRAY2 ="		UNLOCKED,LOCKED,
								unlocked,locked		UNLOCKED
	-intray3		"@PJL SET INTRAY3 ="		UNLOCKED,LOCKED,
								unlocked,locked		UNLOCKED
	-intray1size		"@PJL COMMENT READONLY"		LETTER,LEGAL,A4,		# read only variable
								EXECUTIVE,LEDGER,
								A3,JISB4,JISB5,
								CUSTOM,COM10,MONARCH,
								C5,DL,B5,JPOST,JPOSTD,
								letter,legal,a4,
								executive,ledger,
								a3,jisb4,jisb5,
								custom,com10,monarch,
								c5,dl,b5,jpost,jpostd	A4
	-intray2size		"@PJL COMMENT READONLY"		LETTER,LEGAL,A4,		
								EXECUTIVE,LEDGER,
								A3,JISB4,JISB5,
								letter,legal,a4,
								executive,ledger,
								a3,jisb4,jisb5		A4
	-intray3size		"@PJL COMMENT READONLY"		LETTER,LEGAL,A4,		# read only variable
								EXECUTIVE,LEDGER,
								A3,JISB4,
								COM10,MONARCH,
								DL,
								letter,legal,a4,
								executive,ledger,
								a3,jisb4,
								com10,monarch,
								dl,b5			A4
	-intray4size		"@PJL COMMENT READONLY"		COM10,MONARCH,			# read only variable
								C5,DL,B5,
								com10,monarch,
								c5,dl,b5		A4
	-joboffset		"@PJL SET JOBOFFSET ="		OFF,ON,off,on		ON
	-lang			"@PJL SET LANG ="		DANISH,GERMAN,ENGLISH,
								SPANISH,FRENCH,ITALIAN,
								DUTCH,NORWEGIAN,POLISH,
								PORTUGUESE,FINNISH,
								SWEDISH,TURKISH,
								JAPANESE,CHINESE,
								danish,german,english,
								spanish,french,italian,
								dutch,norwegian,polish,
								portuguese,finnish,
								swedish,turkish,
								japanese,chinese	ENGLISH
	-lowtoner		"@PJL SET LOWTONER ="		ON,OFF,CONTINUE,
								STOP,on,off,continue,
								stop			ON
	
	-manualfeed		"@PJL SET MANUALFEED ="		ON,OFF,on,off		OFF
	-mediasource		"@PJL SET MEDIASOURCE ="	TRAY1,TRAY2,TRAY3,
								tray1,tray2,tray3	TRAY1
	-mediatype		"@PJL SET MEDIATYPE ="		TRANSPARENT,GLOSSY,
								SPECIAL,transparent,
								glossy,special		SPECIAL
	-mptray			"@PJL SET MPTRAY ="		CASSETTE, MANUAL,	
								FIRST, cassette, manual,
								first			CASSETTE
	-orientation		"@PJL SET ORIENTATION ="	PORTRAIT,LANDSCAPE,
								portrait,landscape	PORTRAIT
	-outbin			"@PJL SET OUTBIN ="		UPPER,LOWER,
								upper,lower		UPPER
	-pageprotect		"@PJL SET PAGEPROTECT ="	OFF,LETTER,LEGAL,A4,
								ON,AUTO,off,letter,
								legal,a4,on,auto	AUTO
	-parallel		"@PJL SET PARALLEL ="		SLOW,FAST,slow,fast	FAST
	-paper			"@PJL SET PAPER ="		LETTER,LEGAL,A4,
								LEDGER,A3,JISB4,
								JISB5,EXECUTIVE,
								COM10,MONARCH,C5,
								DL,B5,CUSTOM,JPOST,
								JPOSTD,
								letter,legal,a4,
								ledger,a3,jisb4,
								jisb5,executive,
								com10,monarch,c5,
								dl,b5,custom,jpost,
								jpostd			A4
	-password		"@PJL DEFAULT PASSWORD ="	0-65535			0	# modifies User Default.
	-personality		"@PJL SET PERSONALITY ="	AUTO,PCL,POSTSCRIPT,
								ESCP,INSTALLED,
								auto,pcl,postscript,
								escp,installed		AUTO
	-powersave		"@PJL SET POWERSAVE ="		ON,OFF,on,off		ON
	-powersavetime		"@PJL SET POWERSAVETIME ="	15,30,60,120,180	15
	-printquality		"@PJL SET PRINTQUALITY ="	DRAFT,NORMAL,HIGH,
								draft,normal,high	NORMAL
	-rendermode		"@PJL SET RENDERMODE ="		COLOR,GRAYSCALE,
								color,grayscale		COLOR
	-resolution		"@PJL SET RESOLUTION ="		300,600			600
	-resourcesave		"@PJL DEFAULT RESOURCESAVE ="	ON,OFF,AUTO,			# modifies User Default.
								on,off,auto		AUTO
	-ret			"@PJL SET RET ="		OFF,LIGHT,MEDIUM,DARK,
								ON,off,light,medium,
								on,dark			MEDIUM
	-timeout		"@PJL SET TIMEOUT ="		5-300			15
EndSection

#
# PCL Specific variables
#
# Syntax:
# 	switch			variable				options			default	
#	
Section variables
	-pclfontsource		"@PJL SET LPARM:PCL FONTSOURCE ="	I,M1,M2,M3,C,C1,C2,S,
									i,m1,m2,m3,c,c1,c2,s	I
	-pclfontnumber		"@PJL SET LPARM:PCL FONTNUMBER ="	0-100			0	# depends on fonts loaded
	-pclpitch		"@PJL SET LPARM:PCL PITCH ="		0.44-99.99		10.0
	-pclptsize		"@PJL SET LPARM:PCL PTSIZE ="		4.0-999.75		12.0
	-pclsymset		"@PJL SET LPARM:PCL SYMSET ="		DESKTOP,ISO4,ISO6,
									ISO11,ISO15,ISO17,
									ISO21,ISO60,ISO69,
									ISOL1,ISOL2,ISOL5,
									LEGAL,MATH8,MSPUBL,
									PC8,PC850,PC852,
									PC8DN,PC8TK,PIFONT,
									PSMATH,ROMAN8,VNINTL,
									VNMATH,VNUS,WIN30,
									WINL1,WINL2,WINL5,
									WIN31J,
									desktop,iso4,iso6,
									iso11,iso15,iso17,
									iso21,iso60,iso69,
									isol1,isol2,isol5,
									legal,math8,mspubl,
									pc8,pc850,pc852,
									pc8dn,pc8tk,pifont,
									psmath,roman8,vnintl,
									vnmath,vnus,win30,
									winl1,winl2,winl5,
									win31j			ROMAN8
	-pclpersonality		"@PJL SET LPARM:PCL PERSONALITY ="	ESCP,PCL,escp,pcl	PCL
EndSection

#
# ESC/P Specific variables
#
# Syntax:
# 	switch			variable				options			default	
#	
Section variables
	-escpcarriagereturn	"@PJL SET LPARM:ESCP CARRIAGERETURN ="	CR,CRLF,cr,crlf		CR
	-escpcharacterset	"@PJL SET LPARM:ESCP CHARACTERSET ="	KANA,EG,kana,eg		KANA
	-escptopmargin		"@PJL SET LPARM:ESCP TOPMARGIN ="	TM19MM,TM6MM,
									tm19mm,tm6mm		TM19MM
	-escpankcondense	"@PJL SET LPARM:ESCP ANKCONDENSE ="	ON,OFF,on,off		OFF
	-escpfont		"@PJL SET LPARM:ESCP FONT ="		MSMINCHO,MSGOTHIC,
									msmincho,msgothic	MSMINCHO
EndSection

#
#
# PostScript Specific variables
#
# Syntax:
# 	switch			variable					options			default	
#	
Section variables
	-psadobembt		"@PJL SET LPARM:POSTSCRIPT ADOBEMBT ="		OFF,ON,AUTO,
										off,on,auto		AUTO
	-psjamrecovery		"@PJL SET LPARM:POSTSCRIPT JAMRECOVERY ="	OFF,ON,off,on		OFF
	-psprtpserrs		"@PJL SET LPARM:POSTSCRIPT PRTPSERRS ="		OFF,ON,off,on		OFF
EndSection

