diff --git a/zjdrv.drv b/zjdrv.drv index 49fc364..f257698 100644 --- a/zjdrv.drv +++ b/zjdrv.drv @@ -1,6 +1,6 @@ // CUPS PPD Compiler CUPS v2.1.3 // (Don't edit .ppd directly, edit this file instead, then use -// ppdc zj-58.drv to generate zj58.ppd) +// ppdc zjdrv.drv to generate zj58.ppd, zj80.ppd and others) // common for all thermal printers Version "1.2" @@ -24,94 +24,102 @@ Option "CutMedia/Cut Media" PickOne AnySetup 10 Choice "EndOfPage/Cut at every page" "<>setpagedevice" Choice "EndOfJob/Cut at every job" "<>setpagedevice" +Option "Resolution/Resolution" PickOne AnySetup 10 + *Choice "203x203dpi/203 DPI Grayscale" "<>setpagedevice" + +HWMargins 14 0 14 0 + +// feeding, spacing Group "BlankGroup/Blank Options" - Option "FeedDist/Feed distance" PickOne AnySetup 10 - Choice "0feed3mm/3mm" "<>setpagedevice" - Choice "1feed6mm/6mm" "<>setpagedevice" - *Choice "2feed9mm/9mm" "<>setpagedevice" - Choice "3feed12mm/12mm" "<>setpagedevice" - Choice "4feed15mm/15mm" "<>setpagedevice" - Choice "5feed18mm/18mm" "<>setpagedevice" - Choice "6feed21mm/21mm" "<>setpagedevice" - Choice "7feed24mm/24mm" "<>setpagedevice" - Choice "8feed27mm/27mm" "<>setpagedevice" - Choice "9feed30mm/30mm" "<>setpagedevice" - Choice "10feed33mm/33mm" "<>setpagedevice" - Choice "11feed36mm/36mm" "<>setpagedevice" - Choice "12feed39mm/39mm" "<>setpagedevice" - Choice "13feed42mm/42mm" "<>setpagedevice" - Choice "14feed45mm/45mm" "<>setpagedevice" - - Option "FeedWhere/When to feed" PickOne AnySetup 10 - Choice "None/Never" "" - Choice "AfterPage/After each page" "<>setpagedevice" - *Choice "AfterJob/After whole printing" "<>setpagedevice" - - Option "BlankSpace/Blank space at page's end" Boolean AnySetup 10 - Choice "True/Print" "<>setpagedevice" - *Choice "False/None" "<>setpagedevice" + Option "FeedDist/Feed distance" PickOne AnySetup 10 + Choice "0feed3mm/3mm" "<>setpagedevice" + Choice "1feed6mm/6mm" "<>setpagedevice" + *Choice "2feed9mm/9mm" "<>setpagedevice" + Choice "3feed12mm/12mm" "<>setpagedevice" + Choice "4feed15mm/15mm" "<>setpagedevice" + Choice "5feed18mm/18mm" "<>setpagedevice" + Choice "6feed21mm/21mm" "<>setpagedevice" + Choice "7feed24mm/24mm" "<>setpagedevice" + Choice "8feed27mm/27mm" "<>setpagedevice" + Choice "9feed30mm/30mm" "<>setpagedevice" + Choice "10feed33mm/33mm" "<>setpagedevice" + Choice "11feed36mm/36mm" "<>setpagedevice" + Choice "12feed39mm/39mm" "<>setpagedevice" + Choice "13feed42mm/42mm" "<>setpagedevice" + Choice "14feed45mm/45mm" "<>setpagedevice" + + Option "FeedWhere/When to feed" PickOne AnySetup 10 + Choice "None/Never" "" + Choice "AfterPage/After each page" "<>setpagedevice" + *Choice "AfterJob/After whole printing" "<>setpagedevice" + + Option "BlankSpace/Blank space at page's end" Boolean AnySetup 10 + Choice "True/Print" "<>setpagedevice" + *Choice "False/None" "<>setpagedevice" Group "*CashDrawerGroup/Cash Drawer Control" - Option "CashDrawer1Setting/Cash Drawer 1" PickOne DocumentSetup 10 - *Choice "None/None" "<>setpagedevice" - Choice "1BeforePrinting/Before Printing" "<>setpagedevice" - Choice "1AfterPrinting/After Printing" "<>setpagedevice" + Option "CashDrawer1Setting/Cash Drawer 1" PickOne DocumentSetup 10 + *Choice "None/None" "<>setpagedevice" + Choice "1BeforePrinting/Before Printing" "<>setpagedevice" + Choice "1AfterPrinting/After Printing" "<>setpagedevice" - Option "CashDrawer2Setting/Cash Drawer 2" PickOne DocumentSetup 10 - *Choice "None/None" "<>setpagedevice" - Choice "2BeforePrinting/Before Printing" "<>setpagedevice" - Choice "2AfterPrinting/After Printing" "<>setpagedevice" + Option "CashDrawer2Setting/Cash Drawer 2" PickOne DocumentSetup 10 + *Choice "None/None" "<>setpagedevice" + Choice "2BeforePrinting/Before Printing" "<>setpagedevice" + Choice "2AfterPrinting/After Printing" "<>setpagedevice" +// tune cash drawers Group "*CashDrawerTune/Cash Drawer Tune" - Option "CashDrawer1PulseOn/Cash Drawer 1 pulse ON time" PickOne DocumentSetup 9 - Choice "None/None" "" - Choice "10XMS/32mS" "<>setpagedevice" - Choice "20XMS/64mS" "<>setpagedevice" - Choice "30XMS/96mS" "<>setpagedevice" - *Choice "40XMS/128mS" "<>setpagedevice" - Choice "50XMS/160mS" "<>setpagedevice" - Choice "60XMS/192mS" "<>setpagedevice" - Choice "70XMS/224mS" "<>setpagedevice" - Choice "80XMS/256mS" "<>setpagedevice" - - Option "CashDrawer1PulseOff/Cash Drawer 1 pulse OFF time" PickOne DocumentSetup 9 - Choice "None/None" "" - Choice "10XMS/32mS" "<>setpagedevice" - Choice "20XMS/64mS" "<>setpagedevice" - Choice "30XMS/96mS" "<>setpagedevice" - Choice "40XMS/128mS" "<>setpagedevice" - *Choice "50XMS/160mS" "<>setpagedevice" - Choice "60XMS/192mS" "<>setpagedevice" - Choice "70XMS/224mS" "<>setpagedevice" - Choice "80XMS/256mS" "<>setpagedevice" - - Option "CashDrawer2PulseOn/Cash Drawer 2 pulse ON time" PickOne DocumentSetup 9 - Choice "None/None" "" - Choice "10XMS/32mS" "<>setpagedevice" - Choice "20XMS/64mS" "<>setpagedevice" - Choice "30XMS/96mS" "<>setpagedevice" - *Choice "40XMS/128mS" "<>setpagedevice" - Choice "50XMS/160mS" "<>setpagedevice" - Choice "60XMS/192mS" "<>setpagedevice" - Choice "70XMS/224mS" "<>setpagedevice" - Choice "80XMS/256mS" "<>setpagedevice" - - Option "CashDrawer2PulseOff/Cash Drawer 2 pulse OFF time" PickOne DocumentSetup 9 - Choice "None/None" "" - Choice "10XMS/32mS" "<>setpagedevice" - Choice "20XMS/64mS" "<>setpagedevice" - Choice "30XMS/96mS" "<>setpagedevice" - Choice "40XMS/128mS" "<>setpagedevice" - *Choice "50XMS/160mS" "<>setpagedevice" - Choice "60XMS/192mS" "<>setpagedevice" - Choice "70XMS/224mS" "<>setpagedevice" - Choice "80XMS/256mS" "<>setpagedevice" - - - Installable "OptionCash1/Cash drawer 1" - UIConstraints "*CashDrawer1Setting *OptionCash1 False" - // UIConstraints "*CashDrawer1PulseOn *OptionCash1 False" - // UIConstraints "*CashDrawer1PulseOff *OptionCash1 False" + Option "CashDrawer1PulseOn/Cash Drawer 1 pulse ON time" PickOne DocumentSetup 9 + Choice "None/None" "" + Choice "10XMS/32mS" "<>setpagedevice" + Choice "20XMS/64mS" "<>setpagedevice" + Choice "30XMS/96mS" "<>setpagedevice" + *Choice "40XMS/128mS" "<>setpagedevice" + Choice "50XMS/160mS" "<>setpagedevice" + Choice "60XMS/192mS" "<>setpagedevice" + Choice "70XMS/224mS" "<>setpagedevice" + Choice "80XMS/256mS" "<>setpagedevice" + + Option "CashDrawer1PulseOff/Cash Drawer 1 pulse OFF time" PickOne DocumentSetup 9 + Choice "None/None" "" + Choice "10XMS/32mS" "<>setpagedevice" + Choice "20XMS/64mS" "<>setpagedevice" + Choice "30XMS/96mS" "<>setpagedevice" + Choice "40XMS/128mS" "<>setpagedevice" + *Choice "50XMS/160mS" "<>setpagedevice" + Choice "60XMS/192mS" "<>setpagedevice" + Choice "70XMS/224mS" "<>setpagedevice" + Choice "80XMS/256mS" "<>setpagedevice" + + Option "CashDrawer2PulseOn/Cash Drawer 2 pulse ON time" PickOne DocumentSetup 9 + Choice "None/None" "" + Choice "10XMS/32mS" "<>setpagedevice" + Choice "20XMS/64mS" "<>setpagedevice" + Choice "30XMS/96mS" "<>setpagedevice" + *Choice "40XMS/128mS" "<>setpagedevice" + Choice "50XMS/160mS" "<>setpagedevice" + Choice "60XMS/192mS" "<>setpagedevice" + Choice "70XMS/224mS" "<>setpagedevice" + Choice "80XMS/256mS" "<>setpagedevice" + + Option "CashDrawer2PulseOff/Cash Drawer 2 pulse OFF time" PickOne DocumentSetup 9 + Choice "None/None" "" + Choice "10XMS/32mS" "<>setpagedevice" + Choice "20XMS/64mS" "<>setpagedevice" + Choice "30XMS/96mS" "<>setpagedevice" + Choice "40XMS/128mS" "<>setpagedevice" + *Choice "50XMS/160mS" "<>setpagedevice" + Choice "60XMS/192mS" "<>setpagedevice" + Choice "70XMS/224mS" "<>setpagedevice" + Choice "80XMS/256mS" "<>setpagedevice" + +// installable options + +Installable "OptionCash1/Cash drawer 1" + UIConstraints "*CashDrawer1Setting *OptionCash1 False" +// UIConstraints "*CashDrawer1PulseOn *OptionCash1 False" +// UIConstraints "*CashDrawer1PulseOff *OptionCash1 False" // Attribute cupsUIConstraints Cash1Off "*OptionCash1 False *CashDrawer1Setting" // Attribute cupsUIConstraints Cash1Off "*OptionCash1 False *CashDrawer1PulseOn" @@ -120,23 +128,17 @@ Group "*CashDrawerTune/Cash Drawer Tune" // Attribute cupsUIResolver Cash1Off "*CashDrawer1PulseOn None" // Attribute cupsUIResolver Cash1Off "*CashDrawer1PulseOff None" - Installable "OptionCash2/Cash drawer 2" - UIConstraints "*CashDrawer2Setting *OptionCash2 False" - // UIConstraints "*CashDrawer2PulseOn *OptionCash2 False" - // UIConstraints "*CashDrawer2PulseOff *OptionCash2 False" +Installable "OptionCash2/Cash drawer 2" + UIConstraints "*CashDrawer2Setting *OptionCash2 False" +// UIConstraints "*CashDrawer2PulseOn *OptionCash2 False" +// UIConstraints "*CashDrawer2PulseOff *OptionCash2 False" - Installable "OptionCutter/Cutter" - UIConstraints "*CutMedia *OptionCutter False" +Installable "OptionCutter/Cutter" + UIConstraints "*CutMedia *OptionCutter False" // Attribute cupsUIConstraints CutterOff "*OptionCutter False *CutMedia" // Attribute cupsUIResolver CutterOff "*CutMedia None" - -Option "Resolution/Resolution" PickOne AnySetup 10 -*Choice "203x203dpi/203 DPI Grayscale" "<>setpagedevice" - -HWMargins 14 0 14 0 - // 58mm printers { #define POINTS 164 @@ -147,7 +149,7 @@ HWMargins 14 0 14 0 MinSize $POINTS 56 MaxSize $POINTS 9286 - *CustomMedia "X48MMY65MM/58mm x 65mm" $POINTS 182 14 0 14 0 "<>setpagedevice" "<>setpagedevice" + *CustomMedia "X48MMY65MM/58mm x 65mm" $POINTS 182 14 0 14 0 "<>setpagedevice" "<>setpagedevice" CustomMedia "X48MMY105MM/58mm x 105mm" $POINTS 298 14 0 14 0 "<>setpagedevice" "<>setpagedevice" CustomMedia "X48MMY210MM/58mm x 210mm" $POINTS 595 14 0 14 0 "<>setpagedevice" "<>setpagedevice" CustomMedia "X48MMY297MM/58mm x 297mm" $POINTS 842 14 0 14 0 "<>setpagedevice" "<>setpagedevice" @@ -180,12 +182,13 @@ HWMargins 14 0 14 0 { #define POINTS 226 #define PIXELS 560 + // model num is used by filter to determine raster width. 58 -> 0x180, 80 -> 0x240. ModelNumber $PIXELS MinSize $POINTS 56 MaxSize $POINTS 9286 - *CustomMedia "X70MMY65MM/80mm x 65mm" $POINTS 182 14 0 14 0 "<>setpagedevice" "<>setpagedevice" + *CustomMedia "X70MMY65MM/80mm x 65mm" $POINTS 182 14 0 14 0 "<>setpagedevice" "<>setpagedevice" CustomMedia "X70MMY105MM/80mm x 105mm" $POINTS 298 14 0 14 0 "<>setpagedevice" "<>setpagedevice" CustomMedia "X70MMY210MM/80mm x 210mm" $POINTS 595 14 0 14 0 "<>setpagedevice" "<>setpagedevice" CustomMedia "X70MMY297MM/80mm x 297mm" $POINTS 842 14 0 14 0 "<>setpagedevice" "<>setpagedevice"