You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by "Markus Jelsma (JIRA)" <ji...@apache.org> on 2012/08/15 15:30:38 UTC

[jira] [Created] (TIKA-975) LinkBuilder to optionally collapse anchor whitespace

Markus Jelsma created TIKA-975:
----------------------------------

             Summary: LinkBuilder to optionally collapse anchor whitespace
                 Key: TIKA-975
                 URL: https://issues.apache.org/jira/browse/TIKA-975
             Project: Tika
          Issue Type: Improvement
          Components: parser
    Affects Versions: 1.2
            Reporter: Markus Jelsma
            Priority: Minor
             Fix For: 1.3


Links extracted by the LinkContentHandler contain the verbatim anchor text. This is usually fine but unfortunately many websites have the anchor text spread over multiple lines or have it indented with tabulators or spaces.

This patch adds a boolean option to LinkContentHandler with which whitespace collapsing can be toggled on or off. Default behaviour remains as-is and the API remains backward compatible.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (TIKA-975) LinkBuilder to optionally collapse anchor whitespace

Posted by "Markus Jelsma (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TIKA-975?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Markus Jelsma updated TIKA-975:
-------------------------------

    Attachment: TIKA-975-1.3-2.patch

Here's a new patch with a unit test.
                
> LinkBuilder to optionally collapse anchor whitespace
> ----------------------------------------------------
>
>                 Key: TIKA-975
>                 URL: https://issues.apache.org/jira/browse/TIKA-975
>             Project: Tika
>          Issue Type: Improvement
>          Components: parser
>    Affects Versions: 1.2
>            Reporter: Markus Jelsma
>            Priority: Minor
>             Fix For: 1.3
>
>         Attachments: TIKA-975-1.3-1.patch, TIKA-975-1.3-2.patch
>
>
> Links extracted by the LinkContentHandler contain the verbatim anchor text. This is usually fine but unfortunately many websites have the anchor text spread over multiple lines or have it indented with tabulators or spaces.
> This patch adds a boolean option to LinkContentHandler with which whitespace collapsing can be toggled on or off. Default behaviour remains as-is and the API remains backward compatible.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (TIKA-975) LinkBuilder to optionally collapse anchor whitespace

Posted by "Ken Krugler (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TIKA-975?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ken Krugler resolved TIKA-975.
------------------------------

    Resolution: Fixed
      Assignee: Ken Krugler

Committed patch in r1376190. Thanks, Markus!

                
> LinkBuilder to optionally collapse anchor whitespace
> ----------------------------------------------------
>
>                 Key: TIKA-975
>                 URL: https://issues.apache.org/jira/browse/TIKA-975
>             Project: Tika
>          Issue Type: Improvement
>          Components: parser
>    Affects Versions: 1.2
>            Reporter: Markus Jelsma
>            Assignee: Ken Krugler
>            Priority: Minor
>             Fix For: 1.3
>
>         Attachments: TIKA-975-1.3-1.patch, TIKA-975-1.3-2.patch
>
>
> Links extracted by the LinkContentHandler contain the verbatim anchor text. This is usually fine but unfortunately many websites have the anchor text spread over multiple lines or have it indented with tabulators or spaces.
> This patch adds a boolean option to LinkContentHandler with which whitespace collapsing can be toggled on or off. Default behaviour remains as-is and the API remains backward compatible.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (TIKA-975) LinkBuilder to optionally collapse anchor whitespace

Posted by "Markus Jelsma (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TIKA-975?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Markus Jelsma updated TIKA-975:
-------------------------------

    Attachment: TIKA-975-1.3-1.patch

Here's a patch for trunk.
                
> LinkBuilder to optionally collapse anchor whitespace
> ----------------------------------------------------
>
>                 Key: TIKA-975
>                 URL: https://issues.apache.org/jira/browse/TIKA-975
>             Project: Tika
>          Issue Type: Improvement
>          Components: parser
>    Affects Versions: 1.2
>            Reporter: Markus Jelsma
>            Priority: Minor
>             Fix For: 1.3
>
>         Attachments: TIKA-975-1.3-1.patch
>
>
> Links extracted by the LinkContentHandler contain the verbatim anchor text. This is usually fine but unfortunately many websites have the anchor text spread over multiple lines or have it indented with tabulators or spaces.
> This patch adds a boolean option to LinkContentHandler with which whitespace collapsing can be toggled on or off. Default behaviour remains as-is and the API remains backward compatible.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira