Skip to content

fix: show a phonetic that is only one character - #1172

Merged
RealKai42 merged 1 commit into
masterfrom
fix/show-short-phonetics
Nov 24, 2026
Merged

RealKai42 merged 1 commit into
masterfrom
fix/show-short-phonetics

Conversation

@RealKai42

@RealKai42 RealKai42 commented Nov 24, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • A phonetic had to be longer than one character, so real readings such as the American o for owe never appeared. Empty values were already hidden by the truthiness check.
  • Any non-empty phonetic is shown after trimming. Whitespace-only values stay hidden. The typing page and the error-book detail share this component.

Test plan

  • CET-4 cancel still shows AmE: ['kænsl].
  • CET-4 chapter 126 owe shows AmE: [o]. With British pronunciation selected it shows BrE: [əu].
  • CET-4 chapter 4 resume has an empty American phonetic and shows no AmE line. British pronunciation shows BrE: [rɪˈzjuːm; ˈrɛzjʊmeɪ].

owe's American phonetic is "o". The old length check hid it. Empty phonetics stay hidden.
@vercel

vercel Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
qwerty-learner Ready Ready Preview Nov 24, 2026 11:01am UTC

Request Review

@RealKai42
RealKai42 merged commit 7a8661c into master Nov 24, 2026
3 checks passed

This branch was successfully deployed

1 active deployment
Preview — e835d2c0 Deployed Nov 24, 2026 by vercel[bot]
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