[
https://issues.apache.org/jira/browse/TIKA-1315?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14528359#comment-14528359
]
Moritz Dorka commented on TIKA-1315:
------------------------------------
[[email protected]], I've attached [^complex_list_test.doc] to this bug which
exhibits _some_, but unfortunately not all, possible list numbering traps. A
correct algorithm should compute the same value for both the numberText and the
paragraph content.
However, I wasn't able to squeeze all possible circumstances under which Word
creates those nasty {{ListFormatOverrideLevels}} into this test file. The
general idea (and this might help you for .docx, which I do not have access to)
is to create a list in Word, select a few entries, open the list's formatting
properties, make some changes, go into the advanced formatting features (in
Word 2003 that is a button in the lower right part of the dialogue which causes
the window to expand) and let those changes only apply to the current selection.
> Basic list support in WordExtractor
> -----------------------------------
>
> Key: TIKA-1315
> URL: https://issues.apache.org/jira/browse/TIKA-1315
> Project: Tika
> Issue Type: Improvement
> Components: parser
> Affects Versions: 1.6
> Reporter: Filip Bednárik
> Assignee: Tim Allison
> Priority: Minor
> Fix For: 1.9
>
> Attachments: ListManager.tar.bz2, ListNumbering.patch,
> ListUtils.java, WordExtractor.java.patch, WordParserTest.java.patch,
> complex_list_test.doc
>
>
> Hello guys, I am really sorry to post issue like this because I have no other
> way of contacting you and I don't quite understand how you manage forks and
> pull requests (I don't think you do that). Plus I don't know your coding
> styles and stuff.
> In my project I needed for tika to parse numbered lists from word .doc
> documents, but TIKA doesn't support it. So I looked for solution and found
> one here:
> http://developerhints.blog.com/2010/08/28/finding-out-list-numbers-in-word-document-using-poi-hwpf/
> . So I adapted this solution to Apache TIKA with few fixes and improvements.
> Anyway feel free to use any of it so it can help people who struggle with
> lists in TIKA like I did.
> Attached files are:
> Updated test
> Fixed WordExtractor
> Added ListUtils
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)