-
Notifications
You must be signed in to change notification settings - Fork 0
[core][cjk] Implement CJK-aware help formatting #15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 4 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -31,6 +31,7 @@ logs/ | |
| /mgrep | ||
| /mgit | ||
| /demo | ||
| /yu | ||
|
|
||
| # Local notes (not tracked) | ||
| local/ | ||
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,212 @@ | ||||||
| """Example: Yuhao Input Method character code lookup. | ||||||
|
|
||||||
| 例:宇浩輸入法單字編碼查詢 | ||||||
|
|
||||||
| A CJK-heavy demo that showcases ArgMojo's CJK-aware help alignment. | ||||||
| The purpose of the app is to lookup the encoding of Chinese characters in the | ||||||
| Yuhao Input Method (宇浩輸入法). | ||||||
|
|
||||||
| In Yuhao Input Method, each Chinese character is represented by a 4-letter code | ||||||
| based on its components and radicals. For example, the character "字" is encoded | ||||||
| as "khvi" in the Lingming variant. | ||||||
|
|
||||||
| Yuhao Input Method has several variants: The app supports looking up any variant | ||||||
| individually or all three side by side. | ||||||
|
|
||||||
| For full character tables, see https://shurufa.app | ||||||
|
|
||||||
| This demo app supports three Yuhao IME variants: | ||||||
| - 宇浩靈明 (--ling) — default | ||||||
|
||||||
| - 宇浩靈明 (--ling) — default | |
| - 宇浩靈明 — default (used when no variant flag is given) |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -48,7 +48,9 @@ test = """\ | |||||
| build = """pixi run package \ | ||||||
| && mojo build -I src examples/mgrep.mojo -o mgrep \ | ||||||
| && mojo build -I src examples/mgit.mojo -o mgit \ | ||||||
| && mojo build -I src examples/demo.mojo -o demo""" | ||||||
| && mojo build -I src examples/demo.mojo -o demo \ | ||||||
| && mojo build -I src examples/yu.mojo -o yu \ | ||||||
| """ | ||||||
|
|
||||||
| # clean build artifacts | ||||||
| clean = "rm -f argmojo.mojopkg mgrep mgit demo" | ||||||
|
||||||
| clean = "rm -f argmojo.mojopkg mgrep mgit demo" | |
| clean = "rm -f argmojo.mojopkg mgrep mgit demo yu" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The manual links to “Unicode v17.0”, but the implementation comments reference Unicode 16.0 for the East Asian Width ranges. To avoid confusion (and potential stale/invalid links), consider aligning the referenced Unicode version across docs and code, or using a versionless link to the Unicode East Asian Width specification.