Skip to content

s2t: fix 托/託 candidate priority so 托 stays unconverted by default - #1405

Merged
frankslin merged 1 commit into
masterfrom
kindergarten
Jul 7, 2026
Merged

frankslin merged 1 commit into
masterfrom
kindergarten

Conversation

@frankslin

@frankslin frankslin commented Jul 7, 2026 •

Copy link
Copy Markdown
Collaborator

托 was defaulting to 託 for every unmatched occurrence, which is wrong for its "support/hold" and name-transliteration senses; swap the candidate order and backfill the phrase entries that keep the "entrust" sense of 託 working correctly.

Detailed Changes:

  • STCharacters.txt: Swap the s2t candidate order for 托 from 託 托 to 托 託 so the character defaults to 托 (e.g. 托着, 茶托, 酒托, 狄托, 托津) instead of 託.
  • STPhrases.txt: Expand 托儿所 to 托兒所 託兒所, and add the missing entrust-sense entries 托之空言 -> 託之空言 and 托物寓兴 -> 託物寓興 so they still convert to 託 despite the character-level default change.
  • testcases.json: Add BYVoid_OpenCC_Issue_1397 covering mixed 托/託 usages (names, 茶托, 托着) across s2t/s2tw/s2twp/s2hk, and BYVoid_OpenCC_Issue_1397_tuo_entrust_words covering 23 common entrust-sense 託 compounds.

Fixes #541, #1397

托 was defaulting to 託 for every unmatched occurrence, which is wrong
for its "support/hold" and name-transliteration senses; swap the
candidate order and backfill the phrase entries that keep the
"entrust" sense of 託 working correctly.

Detailed Changes:
- **STCharacters.txt**: Swap the s2t candidate order for 托 from
  `託 托` to `托 託` so the character defaults to 托 (e.g. 托着, 茶托,
  酒托, 狄托, 托津) instead of 託.
- **STPhrases.txt**: Expand 托儿所 to `托兒所 託兒所`, and add the
  missing entrust-sense entries 托之空言 -> 託之空言 and 托物寓兴 ->
  託物寓興 so they still convert to 託 despite the character-level
  default change.
- **testcases.json**: Add BYVoid_OpenCC_Issue_1397 covering mixed
  托/託 usages (names, 茶托, 托着) across s2t/s2tw/s2twp/s2hk, and
  BYVoid_OpenCC_Issue_1397_tuo_entrust_words covering 23 common
  entrust-sense 託 compounds.
@frankslin frankslin changed the title s2t: 托儿所 -> 托兒所 託兒所 s2t: fix 托/託 candidate priority so 托 stays unconverted by default Jul 7, 2026
@frankslin frankslin linked an issue Jul 7, 2026 that may be closed by this pull request
@frankslin
frankslin merged commit 9382dd3 into master Jul 7, 2026
39 checks passed
@frankslin
frankslin deleted the kindergarten branch July 7, 2026 03:46
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.

真的应该认为 “託” 是 “托” 的繁体吗? s2t 「托」相關詞彙補充

1 participant