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

chain conversion #715

Merged
merged 2 commits into from
Feb 9, 2024
Merged

chain conversion #715

merged 2 commits into from
Feb 9, 2024

Conversation

groverlynn
Copy link
Contributor

Pull request

Issue tracker

Fixes will automatically close the related issue

Fixes #652 , improves #688

Feature

Improve chain conversion #688 . Specifically, this PR corrects the mistake that chain conversion only converts EXACT matched string while ignoring partially matched conversions.
E.g. previously, the exact matching results in 才能 (zh-Hans) -> 才能 & 纔能 (zh-Hant) -> 才能 & 纔能 (zh-TW, zh-HK), because it starts with exactly-matched 才能 (zh-Hans) -> 才能 & 纔能 (zh-Hant), then ignores the partially-matched rule of 纔 (zh-Hant) -> 才 (zh-TW, zh-HK) . Now the conversion can get the correct result: 才能 (zh-Hans) -> 才能 & 纔能 (zh-Hant) -> 才能 (zh-TW, zh-HK)

Unit test

  • Done

Manual test

  • Done

Code Review

  1. Unit and manual test pass
  2. GitHub Action CI pass
  3. At least one contributor reviews and votes
  4. Can be merged clean without conflicts
  5. PR will be merged by rebase upstream base

Additional Info

@lotem
Copy link
Member

lotem commented Oct 15, 2023

有點兒燒腦。
我腦霧了,誰幫我看看。

Copy link
Member

@lotem lotem left a comment

Choose a reason for hiding this comment

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

看懂了

小小意見:別混用 snake-case 和 camel-case ...

@lotem lotem removed the request for review from eagleoflqj February 9, 2024 13:02
@lotem lotem merged commit 5b0660f into rime:master Feb 9, 2024
4 of 5 checks passed
graphemecluster pushed a commit to TypeDuck-HK/librime that referenced this pull request Mar 18, 2024
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.

OpenCC "conversion_chain" not fully working
2 participants