summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVille Skyttä <ville.skytta@iki.fi>2021-01-10 21:48:20 +0200
committerVille Skyttä <ville.skytta@iki.fi>2021-01-10 21:48:20 +0200
commit367db322bcb1fe0764623141ac21086443cec9b7 (patch)
tree3746a371536443c211935defdda66cd87e60891a
parentef28b6132d4889575b9283980e78129ed040e6fb (diff)
downloadshared-mime-info-367db322bcb1fe0764623141ac21086443cec9b7.tar.gz
application/vnd.apple.numbers, .pages: add older magics and test cases
Numbers 3.5 and Pages 5.5 appear to place an Index/Document.iwa, not index.xml there.
-rw-r--r--data/freedesktop.org.xml.in2
-rw-r--r--tests/mime-detection/list4
-rw-r--r--tests/mime-detection/test.numbersbin0 -> 104987 bytes
-rw-r--r--tests/mime-detection/test.pagesbin0 -> 56766 bytes
4 files changed, 6 insertions, 0 deletions
diff --git a/data/freedesktop.org.xml.in b/data/freedesktop.org.xml.in
index 1e9c5eee..4a4b45ec 100644
--- a/data/freedesktop.org.xml.in
+++ b/data/freedesktop.org.xml.in
@@ -7319,6 +7319,7 @@ command to generate the output files.
<magic priority="65">
<match type="string" value="PK\003\004" offset="0">
<match type="string" value="index.xml" offset="30"/>
+ <match type="string" value="Index/Document.iwa" offset="30"/>
</match>
</magic>
<glob pattern="*.numbers"/>
@@ -7331,6 +7332,7 @@ command to generate the output files.
<magic priority="70">
<match type="string" value="PK\003\004" offset="0">
<match type="string" value="index.xml" offset="30"/>
+ <match type="string" value="Index/Document.iwa" offset="30"/>
</match>
</magic>
<glob pattern="*.pages"/>
diff --git a/tests/mime-detection/list b/tests/mime-detection/list
index 6723391c..1d55f41a 100644
--- a/tests/mime-detection/list
+++ b/tests/mime-detection/list
@@ -188,6 +188,10 @@ test.lwp application/vnd.lotus-wordpro
# Copied from https://bugs.freedesktop.org/show_bug.cgi?id=64946
TS010082249.pub application/vnd.ms-publisher ox
test.key application/vnd.apple.keynote
+# Created with Numbers 3.5
+test.numbers application/vnd.apple.numbers ox
+# Created with Pages 5.5
+test.pages application/vnd.apple.pages
test.pmd application/x-pagemaker oxo
sample.vsdx application/vnd.ms-visio.drawing.main+xml oxo
appleworks.cwk application/x-appleworks-document oxo
diff --git a/tests/mime-detection/test.numbers b/tests/mime-detection/test.numbers
new file mode 100644
index 00000000..2d71db66
--- /dev/null
+++ b/tests/mime-detection/test.numbers
Binary files differ
diff --git a/tests/mime-detection/test.pages b/tests/mime-detection/test.pages
new file mode 100644
index 00000000..905c7e31
--- /dev/null
+++ b/tests/mime-detection/test.pages
Binary files differ