Repository navigation
Mixed-direction Compose fixtures without changing app layout or source text #603
Closed
CodeinScrubs
started this conversation in
Show and tell
Replies: 1 comment
|
Not interested. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hello Translate You community — I maintain BidiLens, an MIT toolkit for source-preserving mixed-direction text, including Kotlin/Compose. Sharing a resource rather than reporting an unverified app bug.
Your StyledTextField already sets
TextDirection.Content. That is a sensible native baseline, and I would not replace it globally.One optional policy to investigate is Latin technical names followed by mostly RTL prose:
First-strong direction and content-majority direction answer different questions. A user override or bounded majority policy may help when the intended base differs from the first word, but automatic inference is not always right. A translator also knows the selected/detected language, which may be preferable to inference when reliable.
Our Android guide documents native core/Views/Compose modules published on Maven Central at 0.1.2. The shared corpus can also be used without installing our library. Direction and physical alignment are separate; copying/sharing should use the original logical source, not a visually reordered string.
The smallest useful contribution might be fixtures for editable source, read-only translation, and history, including English text in an RTL UI and Persian/Arabic digits. I have not tested Translate You on a device. Our emulator/package evidence does not establish OEM keyboard, IME, TalkBack or production correctness.
Would a fixtures-only contribution be useful, or do the existing tests already cover these cases? No new dependency or global layout change is proposed without your agreement.
Prepared with AI assistance; your current content-direction setting was checked before posting.
All reactions