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

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

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

   Follow-up to TIKA-5016, this time for spreadsheets. Superscript and 
subscript in .xls and .xlsx cells were being dropped, so "Article 
5<sup>1</sup>" came out as "Article 51". They're now kept as `<sup>`/`<sub>`.
   
   Both formats pick it up from rich text inside a cell and from the cell's own 
font, so a whole cell formatted as superscript, numbers included, gets tagged 
too. For .xls, it reads the FONT and XF records (BIFF has no font 4, so the 
indexes need shifting). For .xlsx it reads `vertAlign` from styles.xml and 
sharedStrings.xml. A small new `ScriptedTextCell` holds the runs and renders 
them the same way TIKA-5016 does.
   
   Plain-text output doesn't change, and phonetic runs will come out as plain 
text.
   
   Not covered here: .xlsb.




> Keep superscript/subscript as sup/sub in xls and xlsx
> -----------------------------------------------------
>
>                 Key: TIKA-5071
>                 URL: https://issues.apache.org/jira/browse/TIKA-5071
>             Project: Tika
>          Issue Type: Improvement
>            Reporter: Dylan Hoh
>            Priority: Minor
>
> TIKA-5016 added sup/sub output for docx, pptx, doc, RTF and HTML, but Excel 
> files still lose it, so "H₂O" in a cell comes out as "H2O". The formatting is 
> available in both xls and xlsx, in the shared strings' rich-text runs and in 
> the cell font.



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

Reply via email to