Skip to content

Add RTL/bidi language support for Inky#550

Open
VRDate wants to merge 2 commits intoinkle:masterfrom
VRDate:master
Open

Add RTL/bidi language support for Inky#550
VRDate wants to merge 2 commits intoinkle:masterfrom
VRDate:master

Conversation

@VRDate
Copy link

@VRDate VRDate commented Mar 3, 2026

Add RTL/bidi language support for Inky (fixes #122)
Implement Unicode bidi preprocessing for Right-to-Left languages
(Hebrew, Arabic, Persian, etc.) via a single-file bidify.js module
that injects directional isolate markers (LRI/RLI/PDI).

Integration points:

  • playerView.js: bidify() on story text before DOM
  • inkFile.js: stripBidi() before saving to disk
  • inklecate.js: bidifyJson() for compiled ink JSON export
  • appmenus.js: View > Bidify (RTL) submenu with 4 toggles
  • export-for-web: direction:rtl global tag support

Test infrastructure:

  • 29 unit tests (bidify.js pure functions, 10 RTL scripts)
  • 7 app E2E tests via Playwright/Spectron launcher abstraction
  • 15 bidi E2E tests (Hebrew/Arabic typing, compile, playthrough)
  • Spectron compatibility patches for Electron 30 + Node 22

Documentation:

  • Architecture, sequence, data-flow, and test PUMLs
  • BIDIFIER_ARCHITECTURE.md
  • UI layout, menus, and workflow diagrams

claude and others added 2 commits February 27, 2026 13:35
Implement Unicode bidi preprocessing for Right-to-Left languages
(Hebrew, Arabic, Persian, etc.) via a single-file bidify.js module
that injects directional isolate markers (LRI/RLI/PDI).

Integration points:
- playerView.js: bidify() on story text before DOM
- inkFile.js: stripBidi() before saving to disk
- inklecate.js: bidifyJson() for compiled ink JSON export
- appmenus.js: View > Bidify (RTL) submenu with 4 toggles
- export-for-web: direction:rtl global tag support

Test infrastructure:
- 29 unit tests (bidify.js pure functions, 10 RTL scripts)
- 7 app E2E tests via Playwright/Spectron launcher abstraction
- 15 bidi E2E tests (Hebrew/Arabic typing, compile, playthrough)
- Spectron compatibility patches for Electron 30 + Node 22

Documentation:
- Architecture, sequence, data-flow, and test PUMLs
- BIDIFIER_ARCHITECTURE.md
- UI layout, menus, and workflow diagrams
Add RTL/bidi language support for Inky (fixes inkle#122)
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.

Cannot use Right-to-Left languages (Arabic, Persian) with Inky properly.

2 participants