Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve 乾/干 conversions #2

Merged
merged 1 commit into from
May 30, 2022
Merged

Improve 乾/干 conversions #2

merged 1 commit into from
May 30, 2022

Conversation

AlienKevin
Copy link
Contributor

There are only a few cases where 乾 should not be converted to 干. Hence, I moved the rule to T2S_EXCLUDE.
Here's a full list of words containing 乾 pronounced as qián from OpenCC/STPhrases.txt:

乾元	乾元
乾兌	乾兌
乾卦	乾卦
乾坤一掷	乾坤一擲
乾坤再造	乾坤再造
乾坤大挪移	乾坤大挪移
乾尽午中	乾盡午中
乾象历	乾象曆
乾隆	乾隆
乾隆年间	乾隆年間
乾隆皇帝	乾隆皇帝

I added the three most used words: 乾隆, 乾坤, and 乾卦

There are only a few cases where 乾 needs to be kept.
Hence, the rule is moved to T2S_EXCLUDE.
Copy link
Owner

@tyrchen tyrchen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tyrchen tyrchen merged commit d2c901b into tyrchen:master May 30, 2022
@AlienKevin
Copy link
Contributor Author

@tyrchen Thanks for merging my PR. One of my projects is relying on fast2s and I'm planning to ship a production build soon. Could you please make a new release on crates.io?

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.

2 participants