Skip to content

[XLSX] view html renders phonetic guide text as additional cell content #343

Description

@ueno-koki

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

  1. Create an XLSX cell containing Japanese text.
  2. Add or retain phonetic guide information for the cell in Microsoft Excel.
  3. Run:
officecli view sample.xlsx html
  1. 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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions