[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/se3master/etc/cups/ -> mime.types (source)

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


Generated: Tue Mar 17 22:47:18 2015 Cross-referenced by PHPXref 0.7.1