printer 4.8 KB

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