Environment
- OfficeCLI: 1.0.144
- Command:
officecli view sample.xlsx html
Summary
Excel phonetic guide information stored in OOXML rPh elements is rendered as ordinary cell text.
In the affected workbook, the rPh content is written in Katakana. OfficeCLI appends this Katakana text to the visible cell value, causing text that is not part of the ordinary cell value to appear inside the cell.
The relevant OOXML structure is similar to:
<rPh sb="0" eb="2">
<t>カタカナ</t>
</rPh>
Steps to reproduce
- Create an XLSX cell containing Japanese text.
- Add or retain phonetic guide information for the cell in Microsoft Excel.
- Run:
officecli view sample.xlsx html
- Inspect the rendered cell in the generated HTML.
Expected behavior
The phonetic guide should either:
- Be rendered as a phonetic annotation associated with the original text; or
- Be omitted from the ordinary cell text if phonetic annotations are not supported.
The visible cell value should not be modified by the phonetic guide.
Actual behavior
The Katakana text stored in the rPh element is appended to the ordinary cell value and rendered as additional cell content.
This behavior is present in the unmodified HTML produced directly by OfficeCLI.
Environment
officecli view sample.xlsx htmlSummary
Excel phonetic guide information stored in OOXML
rPhelements is rendered as ordinary cell text.In the affected workbook, the
rPhcontent is written in Katakana. OfficeCLI appends this Katakana text to the visible cell value, causing text that is not part of the ordinary cell value to appear inside the cell.The relevant OOXML structure is similar to:
Steps to reproduce
Expected behavior
The phonetic guide should either:
The visible cell value should not be modified by the phonetic guide.
Actual behavior
The Katakana text stored in the
rPhelement is appended to the ordinary cell value and rendered as additional cell content.This behavior is present in the unmodified HTML produced directly by OfficeCLI.