tika-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nick C (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (TIKA-1513) Add mime detection and parsing for dbf files
Date Tue, 19 Apr 2016 19:34:25 GMT

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

Nick C edited comment on TIKA-1513 at 4/19/16 7:33 PM:
-------------------------------------------------------

I was running this on more data and ran in to a text file that matched. It started with a
2(0x32) and 3 newlines. Had to make a small change that checks for a null byte before the
field type (field names are null terminated)

{code:xml}
<magic priority="100">
<match value="(?s)^[\\x02\\x03\\x30\\x31\\x32\\x43\\x63\\x83\\x8B\\xCB\\xF5\\xE5\\xFB].[\\x01-\\x0C][\\x01-\\x1F].{4}(?:.[^\\x00]|[\\x41-\\xFF].)(?:[^\\x00\\x01].|.[^\\x00]).{31}(?&lt;=[\\x00][^\\x00]{0,10})[A-Z@+]"
type="regex" offset="0"/>
</magic>
{code}


was (Author: nicholasc):
I was running this on more data and ran in to a text file that matched. It started with a
2(0x32) and 3 newlines. Had to make a small change that checks for a null byte before the
field type (field names are null terminated)

{code:xml}
<magic priority="100">
<match value="(?s)^[\\x02\\x03\\x30\\x31\\x32\\x43\\x63\\x83\\x8B\\xCB\\xF5\\xE5\\xFB].[\\x01-\\x0C][\\x01-\\x1F].{4}(?:.[^\\x00]|[\\x41-\\xFF].)(?:[^\\x00\\x01].|.[^\\x00]).{31}(?&amp;lt;=[\\x00][^\\x00]{0,10})[A-Z@+]"
type="regex" offset="0"/>
</magic>
{code}

> Add mime detection and parsing for dbf files
> --------------------------------------------
>
>                 Key: TIKA-1513
>                 URL: https://issues.apache.org/jira/browse/TIKA-1513
>             Project: Tika
>          Issue Type: Improvement
>            Reporter: Tim Allison
>            Priority: Minor
>             Fix For: 1.13
>
>
> I just came across an Apache licensed dbf parser that is available on [maven|https://repo1.maven.org/maven2/org/jamel/dbf/dbf-reader/0.1.0/dbf-reader-0.1.0.pom].
> Let's add dbf parsing to Tika.
> Any other recommendations for alternate parsers?



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

Mime
View raw message