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

ASF GitHub Bot commented on TIKA-4315:
--------------------------------------

ruwi-next commented on PR #1970:
URL: https://github.com/apache/tika/pull/1970#issuecomment-2426171823

   > Y, I now remember this issue with XPS. This is the same challenge with 
PDFs. Interpolating whitespace has to be determined based on character width 
and the distance between text blocks, which means that you have to sort text 
chunks so that they're on the same "line", and you have to get reading order 
correct, etc.
   
   Thank you for the feedback, that makes sense. I'll take a look at the PDF 
implementation and see if I can implement this properly.




> XPS file parser does not emit whitespace as expected
> ----------------------------------------------------
>
>                 Key: TIKA-4315
>                 URL: https://issues.apache.org/jira/browse/TIKA-4315
>             Project: Tika
>          Issue Type: Bug
>          Components: parser
>    Affects Versions: 2.9.1, 2.9.2
>            Reporter: Ruairidh Williamson
>            Priority: Major
>         Attachments: testXLSX.xps
>
>
> We are using tika to extract text from XPS files and have hit an issue where 
> whitespace is not emitted where we would expect. See the attached example 
> file where opening the file it visually has a large gap between "x" and 
> "abcde1234f" but when extracted by tika it calls `characters` with "x" and 
> then `characters` on "abcde1234f". We would expect a `ignorableWhitespace` in 
> between those calls but we don't get one.
> I have a pull request that fixes the issue which I will submit.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to