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

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

DylanSYHoh opened a new pull request, #3654:
URL: https://github.com/apache/tika/pull/3654

   Adds `detectSuperscriptSubscript` (default off) to the PDF parser. When on, 
text that is smaller than the line's main text size and raised or lowered off 
its baseline is written as `<sup>`/`<sub>`. The size and baseline are worked 
out once per line.




> Keep superscript/subscript as sup/sub in pdf
> --------------------------------------------
>
>                 Key: TIKA-5073
>                 URL: https://issues.apache.org/jira/browse/TIKA-5073
>             Project: Tika
>          Issue Type: Improvement
>            Reporter: Dylan Hoh
>            Priority: Minor
>
> TIKA-5016 added sup/sub output for Office formats, but PDFs don't record 
> superscript/subscript, so "Article 5ยน" comes out as "Article 51". It can be 
> guessed from smaller text sitting above or below the line, so this would be 
> an opt-in setting, off by default.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to