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

Add list detection to RTFParser

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 1.4
    • parser

    Description

      RTF supports lists, and the parser could support those, too, using HTML <ul>/<ol>/<li> tags.

      I'm attaching a patch that implements basic support for Word 97 and newer lists. Nested lists are not supported correctly, yet, though, and a number of formatting options are ignored.

      I've also added test cases for this, and adapted existing tests where needed.

      Attachments

        1. testRTFListLibreOffice.rtf
          7 kB
          Axel Dörfler
        2. testRTFListMicrosoftWord.rtf
          45 kB
          Axel Dörfler
        3. tika-rtf-lists.patch
          14 kB
          Axel Dörfler

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            mikemccand Michael McCandless
            axeld Axel Dörfler
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment