printer 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  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. 0 string \033%-12345X%!PS PostScript document
  19. # DOS EPS Binary File Header
  20. # From: Ed Sznyter <ews@Black.Market.NET>
  21. 0 belong 0xC5D0D3C6 DOS EPS Binary File
  22. >4 long >0 Postscript starts at byte %d
  23. >>8 long >0 length %d
  24. >>>12 long >0 Metafile starts at byte %d
  25. >>>>16 long >0 length %d
  26. >>>20 long >0 TIFF starts at byte %d
  27. >>>>24 long >0 length %d
  28. # Adobe's PostScript Printer Description (PPD) files
  29. # Yves Arrouye <arrouye@marin.fdn.fr>
  30. #
  31. 0 string *PPD-Adobe: PPD file
  32. >13 string x \b, ve
  33. # HP Printer Job Language
  34. 0 string \033%-12345X@PJL HP Printer Job Language data
  35. # HP Printer Job Language
  36. # The header found on Win95 HP plot files is the "Silliest Thing possible"
  37. # (TM)
  38. # Every driver puts the language at some random position, with random case
  39. # (LANGUAGE and Language)
  40. # For example the LaserJet 5L driver puts the "PJL ENTER LANGUAGE" in line 10
  41. # From: Uwe Bonnes <bon@elektron.ikp.physik.th-darmstadt.de>
  42. #
  43. 0 string \033%-12345X@PJL HP Printer Job Language data
  44. >&0 string >\0 %s
  45. >>&0 string >\0 %s
  46. >>>&0 string >\0 %s
  47. >>>>&0 string >\0 %s
  48. #>15 string \ ENTER\ LANGUAGE\ =
  49. #>31 string PostScript PostScript
  50. # HP Printer Control Language, Daniel Quinlan (quinlan@yggdrasil.com)
  51. 0 string \033E\033 HP PCL printer data
  52. >3 string \&l0A - default page size
  53. >3 string \&l1A - US executive page size
  54. >3 string \&l2A - US letter page size
  55. >3 string \&l3A - US legal page size
  56. >3 string \&l26A - A4 page size
  57. >3 string \&l80A - Monarch envelope size
  58. >3 string \&l81A - No. 10 envelope size
  59. >3 string \&l90A - Intl. DL envelope size
  60. >3 string \&l91A - Intl. C5 envelope size
  61. >3 string \&l100A - Intl. B5 envelope size
  62. >3 string \&l-81A - No. 10 envelope size (landscape)
  63. >3 string \&l-90A - Intl. DL envelope size (landscape)
  64. # IMAGEN printer-ready files:
  65. 0 string @document( Imagen printer
  66. # this only works if "language xxx" is first item in Imagen header.
  67. >10 string language\ impress (imPRESS data)
  68. >10 string language\ daisy (daisywheel text)
  69. >10 string language\ diablo (daisywheel text)
  70. >10 string language\ printer (line printer emulation)
  71. >10 string language\ tektronix (Tektronix 4014 emulation)
  72. # Add any other languages that your Imagen uses - remember
  73. # to keep the word `text' if the file is human-readable.
  74. # [GRR 950115: missing "postscript" or "ultrascript" (whatever it was called)]
  75. #
  76. # Now magic for IMAGEN font files...
  77. 0 string Rast RST-format raster font data
  78. >45 string >0 face %s
  79. # From Jukka Ukkonen
  80. 0 string \033[K\002\0\0\017\033(a\001\0\001\033(g Canon Bubble Jet BJC formatted data
  81. # From <mike@flyn.org>
  82. # These are the /etc/magic entries to decode data sent to an Epson printer.
  83. 0 string \x1B\x40\x1B\x28\x52\x08\x00\x00REMOTE1P Epson Stylus Color 460 data
  84. #------------------------------------------------------------------------------
  85. # zenographics: file(1) magic for Zenographics ZjStream printer data
  86. # Rick Richardson rickr@mn.rr.com
  87. 0 string JZJZ
  88. >0x12 string ZZ Zenographics ZjStream printer data (big-endian)
  89. 0 string ZJZJ
  90. >0x12 string ZZ Zenographics ZjStream printer data (little-endian)
  91. #------------------------------------------------------------------------------
  92. # Oak Technologies printer stream
  93. # Rick Richardson <rickr@mn.rr.com>
  94. 0 string OAK
  95. >0x07 byte 0
  96. >0x0b byte 0 Oak Technologies printer stream
  97. # This would otherwise be recognized as PostScript - nick@debian.org
  98. 0 string %!VMF SunClock's Vector Map Format data
  99. #------------------------------------------------------------------------------
  100. # HP LaserJet 1000 series downloadable firmware file
  101. 0 string \xbe\xefABCDEFGH HP LaserJet 1000 series downloadable firmware
  102. # From: Paolo <oopla@users.sf.net>
  103. # Epson ESC/Page, ESC/PageColor
  104. 0 string \x1b\x01@EJL Epson ESC/Page language printer data