printer 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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. # Adobe's PostScript Printer Description (PPD) files
  19. # Yves Arrouye <arrouye@marin.fdn.fr>
  20. #
  21. 0 string *PPD-Adobe: PPD file
  22. >13 string x \b, ve
  23. # HP Printer Job Language
  24. 0 string \033%-12345X@PJL HP Printer Job Language data
  25. # HP Printer Job Language
  26. # The header found on Win95 HP plot files is the "Silliest Thing possible"
  27. # (TM)
  28. # Every driver puts the language at some random position, with random case
  29. # (LANGUAGE and Language)
  30. # For example the LaserJet 5L driver puts the "PJL ENTER LANGUAGE" in line 10
  31. # From: Uwe Bonnes <bon@elektron.ikp.physik.th-darmstadt.de>
  32. #
  33. 0 string \033%-12345X@PJL HP Printer Job Language data
  34. >&0 string >\0 %s
  35. >>&0 string >\0 %s
  36. >>>&0 string >\0 %s
  37. >>>>&0 string >\0 %s
  38. #>15 string \ ENTER\ LANGUAGE\ =
  39. #>31 string PostScript PostScript
  40. # HP Printer Control Language, Daniel Quinlan (quinlan@yggdrasil.com)
  41. 0 string \033E\033 HP PCL printer data
  42. >3 string \&l0A - default page size
  43. >3 string \&l1A - US executive page size
  44. >3 string \&l2A - US letter page size
  45. >3 string \&l3A - US legal page size
  46. >3 string \&l26A - A4 page size
  47. >3 string \&l80A - Monarch envelope size
  48. >3 string \&l81A - No. 10 envelope size
  49. >3 string \&l90A - Intl. DL envelope size
  50. >3 string \&l91A - Intl. C5 envelope size
  51. >3 string \&l100A - Intl. B5 envelope size
  52. >3 string \&l-81A - No. 10 envelope size (landscape)
  53. >3 string \&l-90A - Intl. DL envelope size (landscape)
  54. # IMAGEN printer-ready files:
  55. 0 string @document( Imagen printer
  56. # this only works if "language xxx" is first item in Imagen header.
  57. >10 string language\ impress (imPRESS data)
  58. >10 string language\ daisy (daisywheel text)
  59. >10 string language\ diablo (daisywheel text)
  60. >10 string language\ printer (line printer emulation)
  61. >10 string language\ tektronix (Tektronix 4014 emulation)
  62. # Add any other languages that your Imagen uses - remember
  63. # to keep the word `text' if the file is human-readable.
  64. # [GRR 950115: missing "postscript" or "ultrascript" (whatever it was called)]
  65. #
  66. # Now magic for IMAGEN font files...
  67. 0 string Rast RST-format raster font data
  68. >45 string >0 face %