Uploaded image for project: 'Tika'
  1. Tika
  2. TIKA-1055

Add mimetypes for famous programming languages

Details

    • Wish
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.2
    • 1.3
    • mime
    • None

    Description

      I have noticed that some famous programming lanuages get not detected in the tika-mimetypes.xml-file:

      • Clojure: text/x-clojure
      • CoffeeScript: text/x-coffeescript
      • Go: text/x-go
      • Less: text/x-less
      • OCaml: text/x-ocaml
      • Property files, INI-Files
      • reStructuredText: text/x-rst
      • Scala: text/x-scala
      • Smalltalk: text/x-stsrc
      • Yaml: text/x-yaml

      The mimetypes are taken from the CodeMirror editor.

      It would be very helpfull for me, if also these types will get detected.

      Attachments

        1. custom-mimetypes.xml
          2 kB
          Bernhard Berger

        Issue Links

          Activity

            nick Nick Burch added a comment -

            Any chance you could also identify the common extension / extensions for these languages?

            nick Nick Burch added a comment - Any chance you could also identify the common extension / extensions for these languages?

            I have added a mimetype-File with the missing types.

            sonson123 Bernhard Berger added a comment - I have added a mimetype-File with the missing types.

            I have just noticed that the extension *.ml from text/x-ocaml is already registered for text/x-ml. So this line has to be removed from my attached custom-mimetypes.xml.

            sonson123 Bernhard Berger added a comment - I have just noticed that the extension *.ml from text/x-ocaml is already registered for text/x-ml. So this line has to be removed from my attached custom-mimetypes.xml.
            nick Nick Burch added a comment -

            Thanks for this, patch applied in r1431313.

            nick Nick Burch added a comment - Thanks for this, patch applied in r1431313.

            People

              Unassigned Unassigned
              sonson123 Bernhard Berger
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: