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

Support phrases replacement #139

Merged
merged 2 commits into from
Mar 29, 2024
Merged

Support phrases replacement #139

merged 2 commits into from
Mar 29, 2024

Conversation

lukhnos
Copy link
Collaborator

@lukhnos lukhnos commented Mar 28, 2024

In fcitx5-mcbopomofo, phrases replacement is enabled if phrases-replacement.txt exists in the user's data path, usually $HOME/.local/share/fcitx5/mcbopomofo/phrases-replacement.txt, and it's disabled if the file does not exist or is removed.

fcitx5-mcbopomofo does not populate the file with a template; this is different from the behavior of the macOS version.

This feature is introduced to be in sync with the macOS version. It's also motivated by openvanilla/McBopomofo#458, which can be solved by phrases replacement.

lukhnos added 2 commits March 28, 2024 11:11
In fcitx5-mcbopomofo, phrases replacement is enabled if
`phrases-replacement.txt` exists in the user's data path, usually
`$HOME/.local/share/fcitx5/mcbopomofo/phrases-replacement.txt`, and it's
disabled if the file does not exist or is removed.

fcitx5-mcbopomofo does not populate the file with a template; this is
different from the behavior of the macOS version.
@lukhnos lukhnos requested a review from zonble March 28, 2024 18:16
Copy link
Collaborator

@zonble zonble left a comment

Choose a reason for hiding this comment

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

Looks good.

BTW, I remember that we have a shortcut in the input menu that helps the users to edit the user phrases. I guess we can also such a menu item for phrase replacement,

@lukhnos
Copy link
Collaborator Author

lukhnos commented Mar 29, 2024

Thanks!

BTW, I remember that we have a shortcut in the input menu that helps the users to edit the user phrases. I guess we can also such a menu item for phrase replacement,

Sounds good. Let me look into, as a follow-up to this, adding a menu item when phrases replacement is enabled.

@lukhnos lukhnos merged commit ed26e5e into master Mar 29, 2024
6 checks passed
@lukhnos lukhnos deleted the dev/phrase-replacement branch March 29, 2024 00:42
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