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

Fix tilde loss after latin and whitespace #26

Conversation

a-lucky
Copy link
Contributor

@a-lucky a-lucky commented Feb 1, 2025

いつも便利に使わせていただいています。
tildeのオプションが"remove"以外でも、チルダが消えてしまうケースがありました。
[半角英数]+[空白]+[~]+[全角]と並んだ場合に[~]が消えてしまうようでした。
[~]が[ハイフン]や[長音]の場合も同様の現象が起きるので修正しています。

現象の再現

import neologdn
print(neologdn.normalize("A ~あ", tilde='normalize'))

実際の値

A あ

期待値

A ~あ

@ikegami-yukino ikegami-yukino merged commit 9cff223 into ikegami-yukino:master Feb 6, 2025
4 checks passed
@ikegami-yukino
Copy link
Owner

@a-lucky
ありがとうございます!
この現象には気づきませんでした!

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