Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
807 B

  1. BEGIN {
  2. print "*%"
  3. print "*% Copyright (c) 1997 - 1999 Microsoft Corporation"
  4. print "*% All Rights Reserved."
  5. print "*%"
  6. }
  7. /ModelName/ { m=$0 }
  8. /PrinterType/ {
  9. print
  10. if (m ~ /FMP-PR121G/) ;
  11. else if (m ~ /FMPR-371A/) PrintRate("CPS", 160)
  12. else if (m ~ /FMLP-371E/) PrintRate("LPM", 380)
  13. else if (m ~ /FMPR-375E/) PrintRate("CPS", 120)
  14. else if (m ~ /FMPR-673/) PrintRate("CPS", 200)
  15. else if (m ~ /FUJITSU ESC.P/) ;
  16. else print "*Error: Unknown model: \"" m "\""
  17. next
  18. }
  19. /Feature.*Color/ { color=1 }
  20. /InvalidCombination.*CUSTOMSIZE/ { next }
  21. /CmdXMoveRelRight/ { if ($0 ~ /<1B>\\/) gsub(/<1B>\\/, "<1B5C>") }
  22. { print }
  23. END { if (color) print "*UseExpColorSelectCmd?: TRUE" }
  24. function PrintRate(unit, value) {
  25. print "*PrintRate: " value
  26. print "*PrintRateUnit: " unit
  27. }