Skip to content

[codex] Resolve localized Word list style IDs - #213

Draft
stefsava wants to merge 2 commits into
senny:masterfrom
stefsava:codex/localized-list-styles
Draft

[codex] Resolve localized Word list style IDs#213
stefsava wants to merge 2 commits into
senny:masterfrom
stefsava:codex/localized-list-styles

Conversation

@stefsava

Copy link
Copy Markdown

Summary

This fixes HTML list rendering for templates saved by localized versions of Microsoft Word. Word may rewrite built-in list style IDs such as ListNumber and ListBullet to localized IDs like Numeroelenco and Puntoelenco, while keeping the canonical style names in word/styles.xml.

The first commit adds a localized executable fixture that reproduces the failure. The second commit resolves the actual style ID through word/styles.xml before looking up the numbering definition.

Validation

  • bundle exec ruby -Itest test/executable_test.rb -n test_generate_document_from_localized_template_output_to_file
  • bundle exec ruby -Itest test/executable_test.rb
  • bundle exec rake test

Note: Gemfile.lock was modified locally for the test environment and intentionally excluded from this PR.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant