Repository navigation
Text: mixed-direction text reads correctly in static texts, Markdown, fields and fonts - #725
Merged
Merged
Conversation
… fields and fonts - El::isolate and rune::text::ltr_units: runs that keep their own order (paths, URLs, calls, flags, file names, references, signed numbers); static pills are Auto isolates. - Kit Markdown: per-block direction (paragraphs, headings, one per list, quotes, tables), code and diffs left to right, neutral blocks follow the block before, Markdown::dir_tentative. - dir(Auto) with no strong character takes its parent's direction; by-paragraph lines with none follow the line before; an empty right-to-left line's caret at its right; Left/Right collapse a selection to the end drawn that way; truncate_fade fades the text's own end. - Fonts: Arabic comma after Latin no longer tofu; Windows script fallbacks load whole families; monospace Arabic and Hebrew (Courier New, DejaVu Sans Mono) in code. - vendor/parley_engine: UAX #9 L1 at a paragraph's end; BidiTest.txt 770,241/770,241.
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Mixed-direction text in Rune, measured against UAX #9 and the design in
notes/bidi-design.md(not against OpenCode Desktop, whose bidi the owner called not great).El::isolate(range, dir)writes LRI, RLI or FSI .. PDI around a run of a static text's content, moves every range onto the marked text, and marks the marksuncopied, so copies stay clean.rune::text::ltr_unitsfinds the runs prose needs isolated: paths, URLs,fn()calls,--flags, file names,#123,+12andv2.14.0. Static pills becomeAutoisolates, as field pills already are.Markdown::dir_tentativeholds a streaming reply's direction until its first words arrive.dir(Auto)with no strong character takes the parent's flow.truncate_fadefades the end of the text's own paragraph.vendor/parley_engineadds rule L1 at the paragraph's end. Unicode 17BidiTest.txtnow passes 770,241 of 770,241 (644,283 before), andBidiCharacterTest.txt91,707 of 91,707. The harness lives outside the repo.check --workspace --all-targetspasses.