术忽 → 朮忽 should be the s2t mapping (currently 術忽)
Assessment
- Difficulty
- 1/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 85/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- cpp
- Domain
- internationalization
Research direction
The issue identifies data/dictionary/STPhrases.txt and the existing 术赤 → 朮赤 entry as a precedent. Read that entry and the related character mapping in data/dictionary/STCharacters.txt; add the phrase mapping for 术忽 → 朮忽. Run OpenCC with s2t, s2tw, s2twp, s2hk, and s2hkp to confirm 术忽 converts to 朮忽 while the 手术忽然中断。 example remains unchanged in meaning.
Written by the indexing model from the issue text.
Description
Reproduction
Tested with OpenCC 1.4.2 and master at fae2a0a, both built from upstream source.
printf '%s\n' '术忽' '元代称犹太人为术忽。' '手术忽然中断。' | opencc -c s2t.json
| Input | Actual output | Expected output |
|---|---|---|
术忽 |
術忽 |
朮忽 |
元代称犹太人为术忽。 |
元代稱猶太人爲術忽。 |
元代稱猶太人爲朮忽。 |
手术忽然中断。 |
手術忽然中斷。 |
手術忽然中斷。 |
The same conversion of 术忽 to 術忽 also occurs with s2tw, s2twp, s2hk and s2hkp.
Dictionary entry
朮忽 is a historical Chinese term for Jewish people. Its first character is 朮 (U+672E). Institute of Jewish Studies, Nanjing University
The character dictionary lists 術 first and 朮 second for 术. A phrase entry for 术忽 → 朮忽 would follow the existing 术赤 → 朮赤 entry. I verified with a temporary phrase dictionary on master that this mapping produces the expected s2t outputs above. Character dictionary · Phrase dictionary
- Dominant language
- C++
- Stars
- 10.1k
- Forks
- 1.1k
- Avg merge
- 47m
- Merged PRs (30d)
- 3
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from BYVoid/OpenCC
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
update TWPhrasesOther.txtMay be free again A pull request for this issue was closed without being merged. Open
Difficulty 1/5 Under an hour Newbie friendliness 68/100
-
「100人参加了这次活动」转化错误May be free again A pull request for this issue was closed without being merged. Opentriaged
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
-
挽「发」 -> 挽「發」May be free again A pull request for this issue was closed without being merged. Opentriaged
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
砲/炮 分化Open
Difficulty 4/5 3-5 days Newbie friendliness 45/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
table_translator 当一个 Prism 键映射到多个原码时,首个候选未按权重排序Possibly taken A pull request linked to this issue is open or already merged. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
bug needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
microsoft/DirectXShaderCompiler#9173 ·
Maintainers usually reply within 2 days
-
feature:config kind:docs os:windows toolchain:cmake triaged
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
arch-based bug niri
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
noctalia-dev/noctalia#5552 ·
Maintainers usually reply within 1 day