-
Notifications
You must be signed in to change notification settings - Fork 668
[DYN-9407] Handle PhoneticRun elements for import-excel node #16607
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See the ticket for this pull request: https://jira.autodesk.com/browse/DYN-9407
aparajit-pratap
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a test case?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Adds logic to exclude PhoneticRun elements (phonetic guides) from extracted shared string values when importing Excel via OpenXML.
- Replaces direct InnerText access with a new helper that filters out phonetic runs.
- Introduces GetSharedStringText and IsInsidePhoneticRun helper methods to process SharedStringItem contents.
| if (cell.CellValue.TryGetInt(out var index)) | ||
| { | ||
| return sharedStringTable.ElementAt(index).InnerText; | ||
| return GetSharedStringText(sharedStringTable.ElementAt(index)); |
Copilot
AI
Oct 17, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sharedStringTable.ElementAt(index) will iterate to the index each call; if this method executes for many cells, prefer direct indexed access (e.g., sharedStringTable.ChildElements[index] or caching Elements().ToList()) to avoid repeated enumeration.
|
@aparajit-pratap added the test and addressed comments. |
Purpose
DYN-9407
Handling PhoneticRun elements for excel nodes (https://learn.microsoft.com/en-us/dotnet/api/documentformat.openxml.spreadsheet.phoneticrun?view=openxml-3.0.1). These characters should not be displayed when using OpenXMLImportExcel node.
Declarations
Check these if you believe they are true
Release Notes
[DYN-9407] Handle PhoneticRun elements for import-excel node
Reviewers