Skip to content

feat: add bidi (bidirectional text) support#2

Merged
Huxpro merged 2 commits intomainfrom
feat/bidi
Apr 2, 2026
Merged

feat: add bidi (bidirectional text) support#2
Huxpro merged 2 commits intomainfrom
feat/bidi

Conversation

@Huxpro
Copy link
Copy Markdown
Owner

@Huxpro Huxpro commented Apr 2, 2026

Summary

  • Add bidi demo page (examples/basic/src/bidi-test.tsx) with Arabic, Hebrew, and multi-script text samples
  • Restore src/bidi.ts from upstream pretext — a simplified Unicode Bidirectional Algorithm implementation using character code range lookups (no \p{} regex, PrimJS-compatible)
  • Replace the computeSegmentLevels stub in src/layout.ts with the real implementation

Test plan

  • pnpm typecheck passes
  • pnpm build (examples/basic) passes
  • Verified bidi-test page renders in Lynx Explorer on iOS — Arabic, Hebrew, and multi-script text all display correctly

@vercel
Copy link
Copy Markdown

vercel bot commented Apr 2, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
lynx-pretext Building Building Preview, Comment Apr 2, 2026 7:07am

@Huxpro Huxpro merged commit 464bbac into main Apr 2, 2026
3 of 4 checks passed
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