/usr/share/metview/etc/DeviceDriverRules is in metview-data 5.0.0~beta.1-1build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 | ! RULE ---> if TEST then ACTION
!
!
! TEST ---> PARAMETER = VALUE
! ---> PARAMETER > VALUE
! ---> PARAMETER < VALUE
! ---> PARAMETER >= VALUE
! ---> PARAMETER <= VALUE
! ---> PARAMETER <> VALUE
! ---> PARAMETER in LIST_OF_VALUES
! ---> not TEST
! ---> TEST and TEST
! ---> TEST or TEST
! ---> ( TEST )
!
!
! ACTION ---> error MESSAGE
! ---> warning MESSAGE
! ---> set PARAMETER = VALUE
! ---> unset PARAMETER
!
%if FORMAT = SCREEN %then
%unset DESTINATION
%unset PRINT_OPTION
%unset NCOPIES
%unset FILE_NAME
%unset PRINT_COMMAND
%unset PREVIEW_PROGRAM
%unset PRINTER_CUSTOMIZE
%unset PRINTER_TYPE
%unset PRINTER_SCALE_FACTOR
%unset PRINTER_PATH_SIZE
%unset PRINTER_STACK_SIZE
%unset PRINTER_RESOLUTION
%unset PRINTER_MITER
%if FORMAT = PNG %or FORMAT = JPEG %then
%unset PRINT_COMMAND
%unset PRINTER_CUSTOMIZE
%unset PRINTER_TYPE
%unset PRINTER_SCALE_FACTOR
%unset PRINTER_PATH_SIZE
%unset PRINTER_STACK_SIZE
%unset PRINTER_RESOLUTION
%unset PRINTER_MITER
%if FORMAT <> JPEG %and FORMAT <> PNG %then
%unset WIDTH_IN_PIXELS
%if FORMAT <> JPEG %then
%unset JPEG_QUALITY_LEVEL
%if ( FORMAT = PNG %or FORMAT = JPEG ) %and DESTINATION = PRINTER %then
%set DESTINATION = PREVIEW
# Removed the following rule because it was forcing the raster
# preview program to be 'xv', even if the user selected 'display'.
#%if ( FORMAT = PNG %or FORMAT = JPEG ) %and DESTINATION = PREVIEW %then
# %set PREVIEW_PROGRAM = xv
#%if FORMAT = JPEG %and DESTINATION = PREVIEW %then
# %set PREVIEW_PROGRAM = xv
%if DESTINATION = PREVIEW %then
%unset NCOPIES
%unset FILE_NAME
%if DESTINATION <> FILE %then
%unset FILE_NAME
%unset ICON_IDENTIFICATION_FILE
%if DESTINATION <> PREVIEW %then
%unset PREVIEW_PROGRAM
%if DESTINATION <> PRINTER %then
%unset PRINT_COMMAND
%if PRINTER_CUSTOMIZE = NO %then
%unset PRINTER_TYPE
%unset PRINTER_SCALE_FACTOR
%unset PRINTER_PATH_SIZE
%unset PRINTER_STACK_SIZE
%unset PRINTER_RESOLUTION
%unset PRINTER_MITER
!%if (PRINTER_SCALE_FACTOR <> Default %and (PRINTER_SCALE_FACTOR <= 0 %or PRINTER_SCALE_FACTOR > 1)) %then
! %warning "Scale factor outside range (0 to 1), forced to Default"
! %set PRINTER_SCALE_FACTOR = Default
%if (PRINTER_PATH_SIZE <> Default %and (PRINTER_PATH_SIZE < 100 %or PRINTER_PATH_SIZE > 200)) %then
%warning "Path size outside range (100 to 200), forced to Default"
%set PRINTER_PATH_SIZE = Default
%if (PRINTER_STACK_SIZE <> Default %and PRINTER_STACK_SIZE < 200) %then
%warning "Stack size should be greater than 200, forced to Default"
%set PRINTER_STACK_SIZE = Default
|