Skip to content

fix: display RTL locale tooltips correctly#551

Merged
Samillion merged 3 commits intomainfrom
locale_rtl_display
Mar 16, 2026
Merged

fix: display RTL locale tooltips correctly#551
Samillion merged 3 commits intomainfrom
locale_rtl_display

Conversation

@Samillion
Copy link
Copy Markdown
Owner

Fix RTL (right-to-left) locale tooltip display with punctuation or mixed locale.

Reference:
https://github.com/libass/libass/wiki/Libass'-ASS-Extensions#encoding-1

Changes:

  • Add lang_direction to all locales
  • Change get_locale_from_json() to a local function
  • Add a boolean rtl flag
  • Apply \\fe-1 to enable language direction auto detection, only to RTL locales (libass extension)
  • Simplify locale.idle ASS tags use and external path use.

Before:
image

After:
image

@Samillion Samillion merged commit a89d7d2 into main Mar 16, 2026
@Samillion Samillion deleted the locale_rtl_display branch March 16, 2026 06:37
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