/vp_plugins/server_side/mime.types

http://cupsfilter.googlecode.com/ · Unknown · 181 lines · 164 code · 17 blank · 0 comment · 0 complexity · 68e2ac93b5b93f22a6321ba779039384 MD5 · raw file

  1. #
  2. # "$Id: mime.types 6649 2007-07-11 21:46:42Z mike $"
  3. #
  4. # MIME types file for the Common UNIX Printing System (CUPS).
  5. #
  6. # DO NOT EDIT THIS FILE, AS IT IS OVERWRITTEN WHEN YOU INSTALL NEW
  7. # VERSIONS OF CUPS. Instead, create a "local.types" file that
  8. # reflects your local configuration changes.
  9. #
  10. # Copyright 2007 by Apple Inc.
  11. # Copyright 1997-2007 by Easy Software Products.
  12. #
  13. # These coded instructions, statements, and computer programs are the
  14. # property of Apple Inc. and are protected by Federal copyright
  15. # law. Distribution and use rights are outlined in the file "LICENSE.txt"
  16. # which should have been included with this file. If this file is
  17. # file is missing or damaged, see the license at "http://www.cups.org/".
  18. #
  19. ########################################################################
  20. #
  21. # Format of Lines:
  22. #
  23. # super/type rules
  24. #
  25. # "rules" can be any combination of:
  26. #
  27. # ( expr ) Parenthesis for expression grouping
  28. # + Logical AND
  29. # , or whitespace Logical OR
  30. # ! Logical NOT
  31. # match("pattern") Pattern match on filename
  32. # extension Pattern match on "*.extension"
  33. # ascii(offset,length) True if bytes are valid printable ASCII
  34. # (CR, NL, TAB, BS, 32-126)
  35. # printable(offset,length) True if bytes are printable 8-bit chars
  36. # (CR, NL, TAB, BS, 32-126, 128-254)
  37. # string(offset,"string") True if bytes are identical to string
  38. # istring(offset,"string") True if bytes are identical to
  39. # case-insensitive string
  40. # char(offset,value) True if byte is identical
  41. # short(offset,value) True if 16-bit integer is identical
  42. # int(offset,value) True if 32-bit integer is identical
  43. # locale("string") True if current locale matches string
  44. # contains(offset,range,"string") True if the range contains the string
  45. #
  46. # General Notes:
  47. #
  48. # MIME type names are case-insensitive. Internally they are converted
  49. # to lowercase. Multiple occurrences of a type will cause the provided
  50. # rules to be appended to the existing definition. Type names are sorted
  51. # in ascending order, so if two types use the same rules to resolve a type
  52. # (e.g. doc extension for two types), the returned type will be the first
  53. # type in the sorted list.
  54. #
  55. # The "printable" rule differs from the "ascii" rule in that it also
  56. # accepts 8-bit characters in the range 128-255.
  57. #
  58. # String constants must be surrounded by "" if they contain whitespace.
  59. # To insert binary data into a string, use the <hex> notation.
  60. #
  61. ########################################################################
  62. #
  63. # Application-generated files...
  64. #
  65. #application/msword doc string(0,<D0CF11E0A1B11AE1>)
  66. application/pdf pdf string(0,%PDF)
  67. application/postscript ai eps ps string(0,%!) string(0,<04>%!) \
  68. contains(0,128,<1B>%-12345X) + \
  69. (contains(0,4096,"LANGUAGE=POSTSCRIPT") \
  70. contains(0,4096,"LANGUAGE = Postscript") \
  71. contains(0,4096,"LANGUAGE = PostScript") \
  72. contains(0,4096,"LANGUAGE = POSTSCRIPT") \
  73. (contains(0,4096,<0a>%!) + \
  74. !contains(0,4096,"ENTER LANGUAGE")))
  75. #application/x-dvi dvi string(0,<F702>)
  76. application/x-audit
  77. application/mozilla-ps ps (string(0,%!) + \
  78. contains(30,200,"Creator: Mozilla PostScript"))
  79. application/netscape-ps ps (string(0,%!) + \
  80. contains(30,200,"Creator: Mozilla (NetScape)"))
  81. application/vnd.hp-HPGL hpgl \
  82. string(0,<1B>E<1B>%0B) \
  83. string(0,<1B>%-1B) string(0,<201B>)\
  84. string(0,BP;) string(0,IN;) string(0,DF;) \
  85. string(0,BPINPS;) \
  86. (contains(0,128,<1B>%-12345X) + \
  87. (contains(0,4096,"LANGUAGE=HPGL") \
  88. contains(0,4096,"LANGUAGE = HPGL")))
  89. ########################################################################
  90. #
  91. # Image files...
  92. #
  93. image/gif gif string(0,GIF87a) string(0,GIF89a)
  94. image/png png string(0,<89>PNG)
  95. image/jpeg jpeg jpg jpe string(0,<FFD8FF>) &&\
  96. (char(3,0xe0) char(3,0xe1) char(3,0xe2) char(3,0xe3)\
  97. char(3,0xe4) char(3,0xe5) char(3,0xe6) char(3,0xe7)\
  98. char(3,0xe8) char(3,0xe9) char(3,0xea) char(3,0xeb)\
  99. char(3,0xec) char(3,0xed) char(3,0xee) char(3,0xef))
  100. image/tiff tiff tif string(0,MM<002A>) string(0,II<2A00>)
  101. image/x-photocd pcd string(2048,PCD_IPI)
  102. image/x-portable-anymap pnm
  103. image/x-portable-bitmap pbm string(0,P1) string(0,P4)
  104. image/x-portable-graymap pgm string(0,P2) string(0,P5)
  105. image/x-portable-pixmap ppm string(0,P3) string(0,P6)
  106. image/x-sgi-rgb rgb sgi bw icon short(0,474)
  107. image/x-xbitmap xbm
  108. image/x-xpixmap xpm ascii(0,1024) + string(3,"XPM")
  109. #image/x-xwindowdump xwd string(4,<00000007>)
  110. image/x-sun-raster ras string(0,<59a66a95>)
  111. #image/fpx fpx
  112. image/x-alias pix short(8,8) short(8,24)
  113. image/x-bitmap bmp string(0,BM) && !printable(2,14)
  114. image/x-icon ico
  115. ########################################################################
  116. #
  117. # Text files...
  118. #
  119. application/x-cshell csh printable(0,1024) + string(0,#!) +\
  120. (contains(2,80,/csh) contains(2,80,/tcsh))
  121. application/x-perl pl printable(0,1024) + string(0,#!) +\
  122. contains(2,80,/perl)
  123. application/x-shell sh printable(0,1024) + string(0,#!) +\
  124. (contains(2,80,/bash) contains(2,80,/ksh)\
  125. contains(2,80,/sh) contains(2,80,/zsh))
  126. application/x-csource c cxx cpp cc C h hpp \
  127. printable(0,1024) + \
  128. (string(0,/*) string(0,//)
  129. string(0,#include) contains(0,1024,<0a>#include) \
  130. string(0,#define) contains(0,1024,<0a>#define))
  131. text/html html htm printable(0,1024) +\
  132. (istring(0,"<HTML>") istring(0,"<!DOCTYPE"))
  133. text/plain txt printable(0,1024)
  134. text/css css
  135. ########################################################################
  136. #
  137. # RSS feed type...
  138. #
  139. application/rss+xml rss
  140. ########################################################################
  141. #
  142. # CUPS-specific types...
  143. #
  144. application/vnd.cups-command string(0,'#CUPS-COMMAND')
  145. application/vnd.cups-form string(0,"<CUPSFORM>")
  146. application/vnd.cups-pdf
  147. application/vnd.cups-postscript
  148. application/vnd.cups-ppd ppd string(0,"*PPD-Adobe:")
  149. application/vnd.cups-raster string(0,"RaSt") string(0,"tSaR")
  150. application/vnd.cups-raw (string(0,<1B>E) + !string(2,<1B>%0B)) \
  151. string(0,<1B>@) \
  152. (contains(0,128,<1B>%-12345X) + \
  153. (contains(0,4096,"LANGUAGE=PCL") \
  154. contains(0,4096,"LANGUAGE = PCL")))
  155. ########################################################################
  156. #
  157. # Raw print file support...
  158. #
  159. # Comment the following type to prevent raw file printing.
  160. #
  161. application/octet-stream
  162. #
  163. # End of "$Id: mime.types 6649 2007-07-11 21:46:42Z mike $".
  164. #