~ubuntu-branches/ubuntu/raring/cups-filters/raring-proposed

« back to all changes in this revision

Viewing changes to mime/cupsfilters.types

  • Committer: Package Import Robot
  • Author(s): Till Kamppeter
  • Date: 2012-07-22 18:57:32 UTC
  • mfrom: (1.1.17)
  • Revision ID: package-import@ubuntu.com-20120722185732-26kkte5p1lth3rt5
Tags: 1.0.20-0bzr1
* New upstream release
   - pdftops: Added another workaround for Kyocera printers: Some
     models get very slow on images which request interpolation,
     so now we remove the image interpolation requests by additional
     PostScript code only inserted for Kyocera printers (LP: #1026974).
   - Made the Poppler-based filters pdftopdf and pdftoopvp build with
     both Poppler 0.18.x and 0.20.x (Upstream bug #1055).
   - Fixes according to Coverity scan results (Upstream bug #1054).
   - Switched build system to autotools. This especially fixes several
     build problems in Gentoo. Also build-tested with CUPS 1.6.0b1.
   - Fixes for compatibility with clang/gcc-4.7.
   - textonly: Filter did not work as a pipe with copies=1 (Upstream bug
     #1032).
   - texttopdf: Avoid trimming the results of FcFontSort(), as this may
     miss some reasonable candidates under certain circumstances. BTW,
     fix passing a non-pointer as a pointer to "result" (Closes: #670055).
   - Corrected documentation. The option for the maximum image rendering
     resolution in pdftops is "pdftops-max-image-resolution", not
     "pdftops-max-image-resolution-default".
* debian/patches/fcfontsort-no-trim.patch: Removed, fixed upstream.
* debian/rules: Updated options for ./configure and make for the new autotools
  build system.
* debian/watch: Switched to bz2 upstream packages.
* debian/rules, debian/copyright, debian/cups-filters.docs: Updated for
  renamed documentation files.
* debian/control, debian/libfontembed1.install,
  debian/libfontembed-dev.install: Added new binary packages for libfontembed.
* debian/copyright: Updated for recent file additions, and rearrangement of
  directories.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#
 
2
# "$Id: $"
 
3
#
 
4
#   MIME types file for OpenPrinting CUPS Filters.
 
5
#
 
6
#   DO NOT EDIT THIS FILE, AS IT IS OVERWRITTEN WHEN YOU INSTALL NEW
 
7
#   VERSIONS OF OPENPRINTING CUPS FILTERS.  Instead, create a "local.types"
 
8
#   file that reflects your local configuration changes.
 
9
#
 
10
#   Copyright 2011 by Till Kamppeter
 
11
#
 
12
#
 
13
#   Distribution and use rights are outlined in the file "LICENSE.txt"
 
14
#   which should have been included with this file.
 
15
#
 
16
 
 
17
########################################################################
 
18
#
 
19
# Format of Lines:
 
20
#
 
21
#   super/type rules
 
22
#
 
23
# "rules" can be any combination of:
 
24
#
 
25
#   ( expr )                            Parenthesis for expression grouping
 
26
#   +                                   Logical AND
 
27
#   , or whitespace                     Logical OR
 
28
#   !                                   Logical NOT
 
29
#   match("pattern")                    Pattern match on filename
 
30
#   extension                           Pattern match on "*.extension"
 
31
#   ascii(offset,length)                True if bytes are valid printable ASCII
 
32
#                                       (CR, NL, TAB, BS, 32-126)
 
33
#   priority(number)                    Sets priority of type (0=lowest,
 
34
#                                       100=default, 200=highest)
 
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.  If two types use the same
 
51
#   rules to resolve a type and have the same priority, e.g. "doc" extension for
 
52
#   "text/bar" and "text/foo", the returned type will be the first type as
 
53
#   sorted in alphanumerically ascending order without regard to case.  Thus,
 
54
#   the "text/bar" type will match the "doc" extension first unless the
 
55
#   "text/foo" type has specified a higher priority.
 
56
#
 
57
#   The "printable" rule differs from the "ascii" rule in that it also
 
58
#   accepts 8-bit characters in the range 128-255.
 
59
#
 
60
#   String constants must be surrounded by "" if they contain whitespace.
 
61
#   To insert binary data into a string, use the <hex> notation.
 
62
#
 
63
 
 
64
########################################################################
 
65
#
 
66
# Application-generated files...
 
67
#
 
68
 
 
69
# CUPS file detection rule for PostScript which is generated by the Adobe
 
70
# Reader. We distinguish PostScript from the Adobe reader here so that we
 
71
# can override pstopdf and the PDF workflow for these PostScript files as the
 
72
# conversion of them to PDF does not work if the original PDF file was
 
73
# encrypted.
 
74
 
 
75
application/vnd.adobe-reader-postscript priority(150) contains(0,4096,"%%Creator: Adobe Acrobat") + \
 
76
                                (ai eps ps string(0,%!) string(0,<04>%!) \
 
77
                                 contains(0,128,<1B>%-12345X) + \
 
78
                                 (contains(0,4096,"LANGUAGE=POSTSCRIPT") \
 
79
                                  contains(0,4096,"LANGUAGE = Postscript") \
 
80
                                  contains(0,4096,"LANGUAGE = PostScript") \
 
81
                                  contains(0,4096,"LANGUAGE = POSTSCRIPT") \
 
82
                                  (contains(0,4096,<0a>%!) + \
 
83
                                   !contains(0,4096,"ENTER LANGUAGE"))))
 
84
 
 
85
########################################################################
 
86
#
 
87
# Image files...
 
88
#
 
89
 
 
90
image/x-xbitmap                 xbm string(0,"#define");
 
91
image/x-xpixmap                 xpm string(3,"XPM")
 
92
image/x-xwindowdump             xwd string(4,<00000007>)
 
93
 
 
94
########################################################################
 
95
#
 
96
# CUPS-specific types...
 
97
#
 
98
 
 
99
application/vnd.cups-pdf
 
100
application/vnd.cups-pdf-banner     string(0,'#PDF-BANNER')
 
101
 
 
102
#
 
103
# End of "$Id: $".
 
104
#