tballison commented on PR #3648:
URL: https://github.com/apache/tika/pull/3648#issuecomment-7107750502

   How about these :robot: findings? wdyt?
   
   ```
   1. Phonetic text lands inside the tag in .xlsx. The usual shape, 
<si><t>kanji</t><rPh><t>yomi</t></rPh></si> in a superscript cell, comes out as 
<sup>kanji yomi</sup>. The .xls path gives <sup>kanji</sup> yomi,
        which is what the PR description promises. The entry's runs are only 
kept when some <r> has an <rPr>, so this one falls back to wrapping the whole 
string. Fix: have <rPh> also mark the entry as having runs when
        phonetic runs are included.
     2. Inline strings ignore runs. A t="inlineStr" cell with 
<is><r>…</r><r><rPr><b/></rPr>…</r></is> in a superscript cell gives 
<sup>xy</sup> instead of <sup>x</sup>y, and a vertAlign inside an inline string 
is
        dropped. This is your earlier finding 2 on a path the fix didn't reach. 
It is rare, so either fix it or add it to the "not covered" list next to .xlsb.
   
     Hygiene
   
     - Extra allocation per plain shared string: every <si><t>…</t></si> in 
every .xlsx now allocates a substring and a Run that are thrown away at the 
next <si>.
     - Whole records retained: ExcelExtractor keeps full FontRecord and 
ExtendedFormatRecord objects when it only needs a font index and a tag.
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to