Add 奥巴马 ↔ 歐巴馬 conversion to s2twp/tw2sp#1117
Merged
Conversation
Agent-Logs-Url: https://github.com/BYVoid/OpenCC/sessions/e8b1f586-51c4-4303-8809-936d7dae936f Co-authored-by: frankslin <748873+frankslin@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
frankslin
April 16, 2026 15:03
View session
Closed
3 tasks
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.
Taiwan uses 歐巴馬 for Obama while mainland uses 奥巴马; this pair was missing from the s2twp/tw2sp regional phrase conversion.
Dictionary changes
TWPhrases.txt:奧巴馬 → 歐巴馬— applied after ST conversion yields standard traditional formTWPhrasesRev.txt:歐巴馬 → 奧巴馬— maps Taiwan form back to standard traditional before TS converts to simplifiedTest cases
Added
obama_s2twpandobama_tw2sptotestcases.json:s2t/s2tw:奥巴马 → 奧巴馬(standard traditional, no Taiwan override)s2twp:奥巴马 → 歐巴馬tw2sp:歐巴馬 → 奥巴马