Skip to content

Add Traditional Chinese translations for distance measurements#1075

Merged
BYVoid merged 2 commits intomasterfrom
claude/add-distance-phrases-hiZcH
Mar 27, 2026
Merged

Add Traditional Chinese translations for distance measurements#1075
BYVoid merged 2 commits intomasterfrom
claude/add-distance-phrases-hiZcH

Conversation

@BYVoid
Copy link
Copy Markdown
Owner

@BYVoid BYVoid commented Mar 27, 2026

Summary

This PR adds three new entries to the Simplified-to-Traditional Chinese phrase dictionary for distance-related measurements.

Key Changes

  • Added 几万里幾萬里 (tens of thousands of li, a traditional Chinese unit of distance)
  • Added 几千里幾千里 (thousands of li)
  • Added 几百里幾百里 (hundreds of li)

#988

claude added 2 commits March 27, 2026 02:45
Fixes #988. The character 里 (lǐ, unit of distance) was being
incorrectly converted to 裏 when preceded by 几万/几千/几百, because
the MMSEG segmenter matched the shorter phrase (e.g. 几万) leaving 里
to fall through to STCharacters where it becomes 裏. Adding 几万里,
几千里, and 几百里 as phrase entries ensures correct segmentation.

https://claude.ai/code/session_014CsUdYoZ7k5YCvdijwaeDP
Verifies that "几万里" correctly converts to "幾萬里" (not "幾萬裏")
in S2T conversion, ensuring the distance unit 里 is not mistakenly
converted to 裏 when preceded by quantity phrases like 几万.

https://claude.ai/code/session_014CsUdYoZ7k5YCvdijwaeDP
@BYVoid BYVoid merged commit fa8f169 into master Mar 27, 2026
31 of 32 checks passed
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.

2 participants