printer 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. #------------------------------------------------------------------------------
  2. # printer: file(1) magic for printer-formatted files
  3. #
  4. # PostScript, updated by Daniel Quinlan (quinlan@yggdrasil.com)
  5. 0 string %! PostScript document text
  6. >2 string PS-Adobe- conforming
  7. >>11 string >\0 at level %.3s
  8. >>>15 string EPS - type %s
  9. >>>15 string Query - type %s
  10. >>>15 string ExitServer - type %s
  11. # Some PCs have the annoying habit of adding a ^D as a document separator
  12. 0 string \004%! PostScript document text
  13. >3 string PS-Adobe- conforming
  14. >>12 string >\0 at level %.3s
  15. >>>16 string EPS - type %s
  16. >>>16 string Query - type %s
  17. >>>16 string ExitServer - type %s
  18. # HP Printer Job Language
  19. 0 string \033%-12345X@PJL HP Printer Job Language data
  20. >15 string \ ENTER\ LANGUAGE\ =
  21. >31 string PostScript Postscript
  22. # HP Printer Control Language, Daniel Quinlan (quinlan@yggdrasil.com)
  23. 0 string \033E\033 HP PCL printer data
  24. >3 string \&l0A - default page size
  25. >3 string \&l1A - US executive page size
  26. >3 string \&l2A - US letter page size
  27. >3 string \&l3A - US legal page size
  28. >3 string \&l26A - A4 page size
  29. >3 string \&l80A - Monarch envelope size
  30. >3 string \&l81A - No. 10 envelope size
  31. >3 string \&l90A - Intl. DL envelope size
  32. >3 string \&l91A - Intl. C5 envelope size
  33. >3 string \&l100A - Intl. B5 envelope size
  34. >3 string \&l-81A - No. 10 envelope size (landscape)
  35. >3 string \&l-90A - Intl. DL envelope size (landscape)
  36. # IMAGEN printer-ready files:
  37. 0 string @document( Imagen printer
  38. # this only works if "language xxx" is first item in Imagen header.
  39. >10 string language\ impress (imPRESS data)
  40. >10 string language\ daisy (daisywheel text)
  41. >10 string language\ diablo (daisywheel text)
  42. >10 string language\ printer (line printer emulation)
  43. >10 string language\ tektronix (Tektronix 4014 emulation)
  44. # Add any other languages that your Imagen uses - remember
  45. # to keep the word `text' if the file is human-readable.
  46. # [GRR 950115: missing "postscript" or "ultrascript" (whatever it was called)]
  47. #
  48. # Now magic for IMAGEN font files...
  49. 0 string Rast RST-format raster font data
  50. >45 string >0 face %