You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Justin LeFebvre (JIRA)" <ji...@apache.org> on 2009/04/01 22:03:13 UTC

[jira] Created: (PDFBOX-449) Decomposed extended Latin Characters not normalized

Decomposed extended Latin Characters not normalized
---------------------------------------------------

                 Key: PDFBOX-449
                 URL: https://issues.apache.org/jira/browse/PDFBOX-449
             Project: PDFBox
          Issue Type: Bug
          Components: Text extraction
            Reporter: Justin LeFebvre


03_2_SSL.pdf file has the unicode U+00a8 character which when extracted does not get placed over the previous character. U+0308 is required to do this. This issue applies to most diacritics found in PDF files since pdf writers use the non-combining forms of the diacritics instead of the combining forms. This issue also applies to two files located in the regression test. These are Garcia2004_thesis.pdf and cweb.pdf.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (PDFBOX-449) Decomposed extended Latin Characters not normalized

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

Justin LeFebvre updated PDFBOX-449:
-----------------------------------

    Attachment: Diacritic_Merge_fix_1.4Comp.diff

Upon further review of the original fix, Brian and I have realized that our method will only work when the output file is supposed to be in Unicode. Otherwise we're just going to print out the diacritic after the character its supposed to be over. We have also made it so that the new patch is Java 1.4 compliant. 

> Decomposed extended Latin Characters not normalized
> ---------------------------------------------------
>
>                 Key: PDFBOX-449
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-449
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Text extraction
>            Reporter: Justin LeFebvre
>         Attachments: Diacritic_Merge_fix_1.4Comp.diff
>
>
> 03_2_SSL.pdf file has the unicode U+00a8 character which when extracted does not get placed over the previous character. U+0308 is required to do this. This issue applies to most diacritics found in PDF files since pdf writers use the non-combining forms of the diacritics instead of the combining forms. This issue also applies to two files located in the regression test. These are Garcia2004_thesis.pdf and cweb.pdf.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (PDFBOX-449) Decomposed extended Latin Characters not normalized

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

Justin LeFebvre updated PDFBOX-449:
-----------------------------------

    Attachment:     (was: Diacritic_Merge_fix.diff)

> Decomposed extended Latin Characters not normalized
> ---------------------------------------------------
>
>                 Key: PDFBOX-449
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-449
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Text extraction
>            Reporter: Justin LeFebvre
>         Attachments: Diacritic_Merge_fix_1.4Comp.diff
>
>
> 03_2_SSL.pdf file has the unicode U+00a8 character which when extracted does not get placed over the previous character. U+0308 is required to do this. This issue applies to most diacritics found in PDF files since pdf writers use the non-combining forms of the diacritics instead of the combining forms. This issue also applies to two files located in the regression test. These are Garcia2004_thesis.pdf and cweb.pdf.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (PDFBOX-449) Decomposed extended Latin Characters not normalized

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

Brian Carrier resolved PDFBOX-449.
----------------------------------

    Resolution: Fixed

Checked patch into trunk.  Had to make minor changes to regression test code and some other minor changes. 

Sending        trunk/src/main/java/org/apache/pdfbox/ExtractText.java
Sending        trunk/src/main/java/org/apache/pdfbox/examples/util/PrintTextLocations.java
Sending        trunk/src/main/java/org/apache/pdfbox/util/ICU4JImpl.java
Sending        trunk/src/main/java/org/apache/pdfbox/util/PDFHighlighter.java
Sending        trunk/src/main/java/org/apache/pdfbox/util/PDFText2HTML.java
Sending        trunk/src/main/java/org/apache/pdfbox/util/PDFTextStripper.java
Sending        trunk/src/main/java/org/apache/pdfbox/util/TextNormalize.java
Sending        trunk/src/main/java/org/apache/pdfbox/util/TextPosition.java
Sending        trunk/src/test/java/org/apache/pdfbox/util/TestTextStripper.java
Sending        trunk/test/input/Garcia2004_thesis.pdf-sorted.txt
Sending        trunk/test/input/Garcia2004_thesis.pdf.txt
Sending        trunk/test/input/cweb.pdf-sorted.txt
Sending        trunk/test/input/cweb.pdf.txt
Transmitting file data .............
Committed revision 762834.

> Decomposed extended Latin Characters not normalized
> ---------------------------------------------------
>
>                 Key: PDFBOX-449
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-449
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Text extraction
>            Reporter: Justin LeFebvre
>         Attachments: Diacritic_Merge_fix_1.4Comp.diff
>
>
> 03_2_SSL.pdf file has the unicode U+00a8 character which when extracted does not get placed over the previous character. U+0308 is required to do this. This issue applies to most diacritics found in PDF files since pdf writers use the non-combining forms of the diacritics instead of the combining forms. This issue also applies to two files located in the regression test. These are Garcia2004_thesis.pdf and cweb.pdf.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (PDFBOX-449) Decomposed extended Latin Characters not normalized

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

Justin LeFebvre updated PDFBOX-449:
-----------------------------------

    Attachment: Diacritic_Merge_fix.diff

Here is the fix Brian and I worked on. 

> Decomposed extended Latin Characters not normalized
> ---------------------------------------------------
>
>                 Key: PDFBOX-449
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-449
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Text extraction
>            Reporter: Justin LeFebvre
>         Attachments: Diacritic_Merge_fix.diff
>
>
> 03_2_SSL.pdf file has the unicode U+00a8 character which when extracted does not get placed over the previous character. U+0308 is required to do this. This issue applies to most diacritics found in PDF files since pdf writers use the non-combining forms of the diacritics instead of the combining forms. This issue also applies to two files located in the regression test. These are Garcia2004_thesis.pdf and cweb.pdf.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.