dict: Remove incorrect 念佛 → 唸佛 conversion in s2t#1123
Merged
Conversation
Closed
Agent-Logs-Url: https://github.com/BYVoid/OpenCC/sessions/30aede9b-c09b-4a69-b484-48bcb8d0ef28 Co-authored-by: frankslin <748873+frankslin@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix replacement of 念佛 with 唸佛 in dictionary
dict: Remove incorrect 念佛 → 唸佛 conversion in s2t
Apr 17, 2026
BYVoid
approved these changes
Apr 17, 2026
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.
STPhrases.txtwas converting 念佛 → 唸佛 during simplified-to-traditional conversion. This is semantically wrong: 念佛 (to contemplate/meditate on Buddha) is the historically correct traditional form, attested in classical Buddhist texts such as 菩薩念佛三昧經. 唸佛 specifically implies oral recitation and is a narrower, distinct term.Changes
data/dictionary/STPhrases.txt: Remove念佛 → 唸佛phrase entry. Without this override, character-level lookup falls back to 念 → 念 (the default/first traditional form inSTCharacters.txt), preserving 念佛 as-is.test/testcases/testcases.json: Add regression testBYVoid_OpenCC_Issue_1001_nian_foasserting 念佛 remains 念佛 acrosss2t,s2tw,s2twp, ands2hk.