Author: nick
Date: Thu Jan 10 12:11:43 2013
New Revision: 1431313
URL: http://svn.apache.org/viewvc?rev=1431313&view=rev
Log:
Tika-1055 patch from Bernhard Berger to add mimetypes for a number of
programming languages
Modified:
tika/trunk/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml
Modified:
tika/trunk/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml
URL:
http://svn.apache.org/viewvc/tika/trunk/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml?rev=1431313&r1=1431312&r2=1431313&view=diff
==============================================================================
---
tika/trunk/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml
(original)
+++
tika/trunk/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml
Thu Jan 10 12:11:43 2013
@@ -4642,6 +4642,18 @@
<sub-class-of type="text/plain"/>
</mime-type>
+ <mime-type type="text/x-clojure">
+ <_comment>Clojure source code</_comment>
+ <glob pattern="*.clj"/>
+ <sub-class-of type="text/plain"/>
+ </mime-type>
+
+ <mime-type type="text/x-coffeescript">
+ <_comment>CoffeeScript source code</_comment>
+ <glob pattern="*.coffee"/>
+ <sub-class-of type="text/plain"/>
+ </mime-type>
+
<mime-type type="text/x-csrc">
<alias type="text/x-c"/>
<_comment>C source code</_comment>
@@ -4736,6 +4748,12 @@
<sub-class-of type="text/plain"/>
</mime-type>
+ <mime-type type="text/x-go">
+ <_comment>Go source code</_comment>
+ <glob pattern="*.go"/>
+ <sub-class-of type="text/plain"/>
+ </mime-type>
+
<mime-type type="text/x-groovy">
<_comment>Groovy source code</_comment>
<glob pattern="*.groovy"/>
@@ -4755,6 +4773,12 @@
<sub-class-of type="text/plain"/>
</mime-type>
+ <mime-type type="text/x-ini">
+ <_comment>Configuration file</_comment>
+ <glob pattern="*.ini"/>
+ <sub-class-of type="text/plain"/>
+ </mime-type>
+
<mime-type type="text/x-java-source">
<_comment>Java source code</_comment>
<alias type="text/x-java" />
@@ -4773,6 +4797,12 @@
<glob pattern="*.jsp"/>
</mime-type>
+ <mime-type type="text/x-less">
+ <_comment>LESS source code</_comment>
+ <glob pattern="*.less"/>
+ <sub-class-of type="text/plain"/>
+ </mime-type>
+
<mime-type type="text/x-lex">
<_comment>Lex/Flex source code</_comment>
<glob pattern="*.l"/>
@@ -4821,6 +4851,13 @@
<sub-class-of type="text/plain"/>
</mime-type>
+ <mime-type type="text/x-ocaml">
+ <_comment>Ocaml source code</_comment>
+ <glob pattern="*.ocaml"/>
+ <glob pattern="*.mli"/>
+ <sub-class-of type="text/plain"/>
+ </mime-type>
+
<mime-type type="text/x-pascal">
<_comment>Pascal source code</_comment>
<glob pattern="*.p"/>
@@ -4883,6 +4920,14 @@
<sub-class-of type="text/plain"/>
</mime-type>
+ <mime-type type="text/x-rst">
+ <_comment>reStructuredText source code</_comment>
+ <glob pattern="*.rest"/>
+ <glob pattern="*.rst"/>
+ <glob pattern="*.restx"/>
+ <sub-class-of type="text/plain"/>
+ </mime-type>
+
<mime-type type="text/x-rexx">
<_comment>Rexx source code</_comment>
<glob pattern="*.rexx"/>
@@ -4895,6 +4940,12 @@
<sub-class-of type="text/plain"/>
</mime-type>
+ <mime-type type="text/x-scala">
+ <_comment>Scala source code</_comment>
+ <glob pattern="*.scala"/>
+ <sub-class-of type="text/plain"/>
+ </mime-type>
+
<mime-type type="text/x-scheme">
<_comment>Scheme source code</_comment>
<glob pattern="*.scm"/>
@@ -4918,6 +4969,12 @@
<sub-class-of type="text/plain"/>
</mime-type>
+ <mime-type type="text/x-stsrc">
+ <_comment>Smalltalk source code</_comment>
+ <glob pattern="*.st"/>
+ <sub-class-of type="text/plain"/>
+ </mime-type>
+
<mime-type type="text/x-tcl">
<alias type="application/x-tcl"/>
<_comment>Tcl script</_comment>
@@ -4977,12 +5034,27 @@
<sub-class-of type="text/plain"/>
</mime-type>
+ <mime-type type="text/x-web-markdown">
+ <_comment>Markdown source code</_comment>
+ <glob pattern="*.md"/>
+ <glob pattern="*.mdtext"/>
+ <glob pattern="*.mkd"/>
+ <glob pattern="*.markdown"/>
+ <sub-class-of type="text/plain"/>
+ </mime-type>
+
<mime-type type="text/x-yacc">
<_comment>Yacc/Bison source code</_comment>
<glob pattern="*.y"/>
<sub-class-of type="text/plain"/>
</mime-type>
+ <mime-type type="text/x-yaml">
+ <_comment>YAML source code</_comment>
+ <glob pattern="*.yaml"/>
+ <sub-class-of type="text/plain"/>
+ </mime-type>
+
<mime-type type="video/3gpp">
<magic priority="60">
<match value="ftyp3ge6" type="string" offset="4"/>