Add macro (巨集) terminology to TWPhrases for s2twp/tw2sp#1089
Merged
Add macro (巨集) terminology to TWPhrases for s2twp/tw2sp#1089
Conversation
… test cases Added 10 macro-related simplified-traditional (Taiwan) phrase conversions: - 宏定义↔巨集定義, 宏展开↔巨集展開, 宏调用↔巨集呼叫 - 宏替换↔巨集替換, 宏命令↔巨集命令, 宏语言↔巨集語言 - 宏处理↔巨集處理, 宏函数↔巨集函式, 宏指令↔巨集指令 - 宏编程↔巨集程式設計 Also added 宏处理 to STPhrases.txt to fix mmseg segmentation issue (处理 in STPhrases was causing 宏处理 to be split into separate segments). Agent-Logs-Url: https://github.com/BYVoid/OpenCC/sessions/b17be723-3507-4574-bdeb-578e9da8ba59 Co-authored-by: frankslin <748873+frankslin@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
frankslin
April 6, 2026 01:18
View session
Collaborator
|
This PR addresses part of #1042. |
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.
Adds 10 macro-related computing term conversions between simplified Chinese and Taiwan traditional Chinese (e.g., 宏定义↔巨集定義, 宏函数↔巨集函式, 宏编程↔巨集程式設計).
Dictionary entries
宏处理→宏處理to fix a segmentation issue —处理already exists in STPhrases, causing mmseg to segment宏处理as["宏", "处理"], which prevents the TWPhrases conversion step from matching the compound宏處理Test cases
macro_terms_s2twpandmacro_terms_tw2spcovering all 10 terms in both directionsAll dictionaries sorted via
sort.py.