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

   > How about these 🤖 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.
   > ```
   
   Thanks Tim, I missed these cases. Had an agent work through them, and 
they're fixed in the latest commit.
   
   Also cleaned up the hygiene items, and ended up caching the .xls format runs 
per shared string after all.
   
   The only plain-text change is that inline strings with a phonetic reading 
now put a space before it like shared strings do, and leave it out when 
phonetic runs are off.


-- 
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