Repository navigation
fix(i18n): CJK dashes and ellipses display correctly (5.4.1) - #103
Merged
Merged
Conversation
In zh/ja text the Latin web fonts supplied U+2014/U+2015/U+2026, so 我同意——开始访谈 showed two separated short dashes and …… Latin dots. On :lang(zh) and :lang(ja), a local()-only face with unicode-range U+2014-2015, U+2026 now comes first in the sans, serif and mono stacks; nothing is downloaded and English is unchanged. Researcher transcript turns carry the interview language as lang, so the fix (and screen-reader pronunciation) applies there too. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
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.
In Chinese and Japanese text, the Latin web fonts supplied U+2014/U+2015/U+2026. So 我同意——开始访谈 showed two short, separated dashes, and …… showed as Latin dots. This affected the consent button, the researcher's consent text and the AI interviewer's replies.
:lang(zh)and:lang(ja), alocal()-only face restricted tounicode-range: U+2014-2015, U+2026comes first in the sans, serif and mono stacks. It uses PingFang, Hiragino, YaHei or Noto CJK, whichever the device has; nothing is downloaded and English is unchanged.lang, so the fix applies there and screen readers pronounce the turn correctly.selfHostedFonts.test.tsasserts the scoped faces, the code points, and that the faces have nourl().npm run check:cloudflare: 20/20 lanes on a clean tree at the head commit.🤖 Generated with Claude Code