fix(rtl): the preview's frame data keeps its fields in order; charts keep European digits

The right-to-left separator broke the frame data over the preview, a left-to-right
island: after the localized time ("6:03:41 م") the shutter's number read as part
of the previous field and swapped places with the dot. Fields shown in such an
island now use Loc.IslandSeparator, with left-to-right marks in right-to-left
languages. Charts formatted text with the UI culture's digit substitution, so a
number after Arabic words came out in Arabic-Indic digits there only; they now
draw European digits like every text block. The direction marks in source are
written as escapes instead of invisible characters.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
This commit is contained in:
Claude committed 2026-10-12 00:16:56 +00:00
1 parent 9d9d682290
commit 3241b4710d
11 files changed
+39 -16

No files matched your search

+3 -1
View File
@@ -199,7 +199,9 @@ run as server jobs whose progress comes from the events.
islands on the smallest element holding them; directional icons mirror by themselves (`IconData.IsDirectional`,
overridden per subtree with `Bidi.IsDirectional`); left-to-right fragments inside a right-to-left sentence go
through `BidiText`. Fields of a meta line are joined with `Loc.Separator`, never a literal " · ": in a
right-to-left language it holds right-to-left marks, so a number after a Latin field keeps to its own field.
right-to-left language it holds right-to-left marks, so a number after a Latin field keeps to its own field. Fields
shown inside a left-to-right island (the frame data over the preview) use `Loc.IslandSeparator`, which holds
left-to-right marks instead. Charts draw digits as European ones, like every text block.
- The language switches without restart: computed properties re-read through `LocalizedViewModel`, and a view model
that keeps texts in objects (chart series and legends, rows, cached sentences) makes them again in
`OnLanguageChanged`.