Skip to content

fix: improve RTL data#2358

Merged
nijel merged 1 commit intomainfrom
rtl
Mar 31, 2026
Merged

fix: improve RTL data#2358
nijel merged 1 commit intomainfrom
rtl

Conversation

@nijel
Copy link
Copy Markdown
Member

@nijel nijel commented Mar 31, 2026

  • use CLDR likely subtags dataset to guess direction based on the script
  • revert w3c originated changes as the page lists languages which use RTL in some script variant and not by default
  • This reverts commit 8fb5e07.

Fixes #2357

@nijel nijel self-assigned this Mar 31, 2026
- use CLDR likely subtags dataset to guess direction based on the script
- revert w3c originated changes as the page lists languages which use
  RTL in some script variant and not by default
- This reverts commit 8fb5e07.

Fixes #2357
@nijel nijel merged commit c933984 into main Mar 31, 2026
19 checks passed
@nijel nijel deleted the rtl branch March 31, 2026 11:21
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 8a9b4e6d64

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +55 to +56
SUBTAGS = Path("modules/cldr-json/cldr-json/cldr-core/supplemental/likelySubtags.json")
json_text = SUBTAGS.read_text()
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Declare likelySubtags as an rtl generation dependency

This new unconditional read adds likelySubtags.json as an input to RTL generation, but the rtl.csv rule still only tracks layout files; that means changes in cldr-core/supplemental/likelySubtags.json will not trigger a rebuild and rtl.csv/rtl.py can silently go stale (and in checkouts missing that file, generation now fails at runtime). Add this file to the build prerequisites or handle its absence explicitly.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 8a9b4e6d64

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +55 to +56
SUBTAGS = Path("modules/cldr-json/cldr-json/cldr-core/supplemental/likelySubtags.json")
json_text = SUBTAGS.read_text()
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Declare likelySubtags as an rtl generation dependency

This new unconditional read adds likelySubtags.json as an input to RTL generation, but the rtl.csv rule still only tracks layout files; that means changes in cldr-core/supplemental/likelySubtags.json will not trigger a rebuild and rtl.csv/rtl.py can silently go stale (and in checkouts missing that file, generation now fails at runtime). Add this file to the build prerequisites or handle its absence explicitly.

Useful? React with 👍 / 👎.

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.

Wrong text direction from kmr

1 participant