You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by "Tyler Palsulich (JIRA)" <ji...@apache.org> on 2015/03/20 21:30:38 UTC

[jira] [Commented] (TIKA-1296) Add case insensitive matching for text/html mime type

    [ https://issues.apache.org/jira/browse/TIKA-1296?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14372038#comment-14372038 ] 

Tyler Palsulich commented on TIKA-1296:
---------------------------------------

The only mimetype definition that uses {{stringignorecase}} is rfc822. Are there any (other than HTML) that could benefit from this?

> Add case insensitive matching for text/html mime type
> -----------------------------------------------------
>
>                 Key: TIKA-1296
>                 URL: https://issues.apache.org/jira/browse/TIKA-1296
>             Project: Tika
>          Issue Type: Improvement
>          Components: mime
>    Affects Versions: 1.5
>            Reporter: Phil Lester
>            Assignee: Ken Krugler
>
> Currently in tika-mimetypes.xml for the mime type text/html (and possibly others) matches in a couple different cases are provided for the elements so that varying HTML writing styles are matched. As of version 1.5 of Tika the ability exists to make these case insensitive using the "stringignorecase" type. This would allow consolidation of some matches and improve detection of poorly-formed HTML that would be rendered by most browsers regardless of case.
> For example:
>       <match value="&lt;BODY" type="string" offset="0"/>
>       <match value="&lt;body" type="string" offset="0"/>
> could become:
>       <match value="&lt;BODY" type="stringignorecase" offset="0"/>



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)