Open
Conversation
700a6ee to
efe02eb
Compare
Interactive demo showing how Pretext enforces CJK kinsoku (禁則) rules during line breaking. Includes: - Canvas-rendered text preview with adjustable width slider - Auto-animation mode for continuous width cycling - Click-to-highlight for any kinsoku character - Bilingual UI (EN/中文) with full rule reference - 39 kinsoku characters across 3 rule categories: line-start prohibited, line-end prohibited, left-sticky punctuation - Demo text covering all implemented kinsoku characters Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
efe02eb to
a7fa85d
Compare
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.
Summary
Interactive CJK kinsoku (禁則) line-breaking demo at
/demos/cjk-line-breaking.Shows how Pretext enforces line-start/line-end prohibited punctuation rules and left-sticky marks during CJK text layout — with live width adjustment, auto-animation, character highlighting, and bilingual UI.
New files
pages/demos/cjk-line-breaking.data.tspages/demos/cjk-line-breaking.htmlpages/demos/cjk-line-breaking.tsModified files
pages/demos/index.htmlFeatures
Test plan
bun start→ visit/demos/cjk-line-breaking, canvas renders Chinese text correctly/demos→ CJK Line Breaking card appears and links correctlynpx tsc --noEmitpasses with no errors🤖 Generated with Claude Code