summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2015-09-02 16:48:04 +0200
committerBastien Nocera <hadess@hadess.net>2015-09-02 16:51:19 +0200
commit067d0b68424524de0ba3403c7e11ee1df3240dd9 (patch)
treec91f740cd22281edbb2848300dc9f01765edaca7
parentb6035777c71b7b307ec3974b689ff7a67d082668 (diff)
downloadshared-mime-info-067d0b68424524de0ba3403c7e11ee1df3240dd9.tar.gz
Split up multi-page DjVu into its own mime-type
Rather than having DjVu images (similar to a JPEG image) and DjVu documents (similar to a PDF) be mixed and opened by the same application, split out the documents from the images. Add a single image djvu test-case as well.
-rw-r--r--freedesktop.org.xml.in15
-rw-r--r--tests/list5
-rw-r--r--tests/test.djvubin0 -> 220 bytes
3 files changed, 17 insertions, 3 deletions
diff --git a/freedesktop.org.xml.in b/freedesktop.org.xml.in
index bf9050c5..4ea72e8c 100644
--- a/freedesktop.org.xml.in
+++ b/freedesktop.org.xml.in
@@ -4558,17 +4558,28 @@ command to generate the output files.
<alias type="image/x.djvu"/>
<magic priority="50">
<match type="string" offset="0" value="AT&amp;TFORM">
- <match type="string" offset="12" value="DJVM"/>
<match type="string" offset="12" value="DJVU"/>
</match>
<match type="string" offset="0" value="FORM">
- <match type="string" offset="8" value="DJVM"/>
<match type="string" offset="8" value="DJVU"/>
</match>
</magic>
<glob pattern="*.djvu"/>
<glob pattern="*.djv"/>
</mime-type>
+ <mime-type type="image/vnd.djvu+multipage">
+ <_comment>DjVu document</_comment>
+ <generic-icon name="x-office-document"/>
+ <magic priority="50">
+ <match type="string" offset="0" value="AT&amp;TFORM">
+ <match type="string" offset="12" value="DJVM"/>
+ </match>
+ <match type="string" offset="0" value="FORM">
+ <match type="string" offset="8" value="DJVM"/>
+ </match>
+ </magic>
+ <sub-class-of type="image/vnd.djvu"/>
+ </mime-type>
<mime-type type="image/dpx">
<_comment>DPX image</_comment>
<acronym>DPX</acronym>
diff --git a/tests/list b/tests/list
index e8843080..40ab20ff 100644
--- a/tests/list
+++ b/tests/list
@@ -55,7 +55,10 @@ weather_sun.xcf image/x-xcf
test.xpm image/x-xpixmap
test.xwd image/x-xwindowdump ox
# Copied from http://djvu.org/resources/
-2001_compression_overview.djvu image/vnd.djvu
+2001_compression_overview.djvu image/vnd.djvu+multipage xox
+2001_compression_overview.djvu image/vnd.djvu oxo
+# c44 test.jpg test.djvu
+test.djvu image/vnd.djvu
# Copied from https://bugs.launchpad.net/ubuntu/+source/shared-mime-info/+bug/91488 (150 first kB)
test.kdc image/x-kodak-kdc
# Copied from http://www.skencil.org/gallery.html
diff --git a/tests/test.djvu b/tests/test.djvu
new file mode 100644
index 00000000..20696df6
--- /dev/null
+++ b/tests/test.djvu
Binary files differ