printer 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. #------------------------------------------------------------------------------
  2. # printer: file(1) magic for printer-formatted files
  3. #
  4. # This would otherwise be recognized as PostScript - nick@debian.org
  5. 0 string %!VMF SunClock's Vector Map Format data
  6. # PostScript, updated by Daniel Quinlan (quinlan@yggdrasil.com)
  7. 0 string %! PostScript document text
  8. >2 string PS-Adobe- conforming
  9. >>11 string >\0 at level %.3s
  10. >>>15 string EPS - type %s
  11. >>>15 string Query - type %s
  12. >>>15 string ExitServer - type %s
  13. # Some PCs have the annoying habit of adding a ^D as a document separator
  14. 0 string \004%! PostScript document text
  15. >3 string PS-Adobe- conforming
  16. >>12 string >\0 at level %.3s
  17. >>>16 string EPS - type %s
  18. >>>16 string Query - type %s
  19. >>>16 string ExitServer - type %s
  20. 0 string \033%-12345X%!PS PostScript document
  21. # DOS EPS Binary File Header
  22. # From: Ed Sznyter <ews@Black.Market.NET>
  23. 0 belong 0xC5D0D3C6 DOS EPS Binary File
  24. >4 long >0 Postscript starts at byte %d
  25. >>8 long >0 length %d
  26. >>>12 long >0 Metafile starts at byte %d
  27. >>>>16 long >0 length %d
  28. >>>20 long >0 TIFF starts at byte %d
  29. >>>>24 long >0 length %d
  30. # Adobe's PostScript Printer Description (PPD) files
  31. # Yves Arrouye <arrouye@marin.fdn.fr>
  32. #
  33. 0 string *PPD-Adobe: PPD file
  34. >13 string x \b, ve
  35. # HP Printer Job Language
  36. 0 string \033%-12345X@PJL HP Printer Job Language data
  37. # HP Printer Job Language
  38. # The header found on Win95 HP plot files is the "Silliest Thing possible"
  39. # (TM)
  40. # Every driver puts the language at some random position, with random case
  41. # (LANGUAGE and Language)
  42. # For example the LaserJet 5L driver puts the "PJL ENTER LANGUAGE" in line 10
  43. # From: Uwe Bonnes <bon@elektron.ikp.physik.th-darmstadt.de>
  44. #
  45. 0 string \033%-12345X@PJL HP Printer Job Language data
  46. >&0 string >\0 %s
  47. >>&0 string >\0 %s
  48. >>>&0 string >\0 %s
  49. >>>>&0 string >\0 %s
  50. #>15 string \ ENTER\ LANGUAGE\ =
  51. #>31 string PostScript PostScript
  52. # HP Printer Control Language, Daniel Quinlan (quinlan@yggdrasil.com)
  53. 0 string \033E\033 HP PCL printer data
  54. >3 string \&l0A - default page size
  55. >3 string \&l1A - US executive page size
  56. >3 string \&l2A - US letter page size
  57. >3 string \&l3A - US legal page size
  58. >3 string \&l26A - A4 page size
  59. >3 string \&l80A - Monarch envelope size
  60. >3 string \&l81A - No. 10 envelope size
  61. >3 string \&l90A - Intl. DL envelope size
  62. >3 string \&l91A - Intl. C5 envelope size
  63. >3 string \&l100A - Intl. B5 envelope size
  64. >3 string \&l-81A - No. 10 envelope size (landscape)
  65. >3 string \&l-90A - Intl. DL envelope size (landscape)
  66. # IMAGEN printer-ready files:
  67. 0 string @document( Imagen printer
  68. # this only works if "language xxx" is first item in Imagen header.
  69. >10 string language\ impress (imPRESS data)
  70. >10 string language\ daisy (daisywheel text)
  71. >10 string language\ diablo (daisywheel text)
  72. >10 string language\ printer (line printer emulation)
  73. >10 string language\ tektronix (Tektronix 4014 emulation)
  74. # Add any other languages that your Imagen uses - remember
  75. # to keep the word `text' if the file is human-readable.
  76. # [GRR 950115: missing "postscript" or "ultrascript" (whatever it was called)]
  77. #
  78. # Now magic for IMAGEN font files...
  79. 0 string Rast RST-format raster font data
  80. >45 string >0 face %
  81. # From Jukka Ukkonen
  82. 0 string \033[K\002\0\0\017\033(a\001\0\001\033(g Canon Bubble Jet BJC formatted data