8000 Replace wanakana by Kuuuube · Pull Request #1910 · yomidevs/yomitan · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Replace wanakana #1910

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

Merged
merged 40 commits into from
Mar 24, 2025
Merged

Replace wanakana #1910

merged 40 commits into from
Mar 24, 2025

Conversation

Kuuuube
Copy link
Member
@Kuuuube Kuuuube commented Mar 24, 2025

Fully replaces wanakana.

Wanakana hasn't been updated for about 2 years now even though there are bugs in it that should be fixed. We cannot depend on them to do anything about any issues in it.

Yomitan barely uses any of wanakana's features. Simple converting back and forth between kana and romaji doesn't warrant pulling in this package. It should help to have more fine grained control over these features.

Some issues with wanakana:

  • wanakana.bind breaks in some cases when using an IME due to it not respecting composing. Which led to removing that part of wanakana (Fix wanakana breaking IME input when hitting a conversion containing latin characters #1875).

  • Wanakana's kana conversion cannot handle duplicate sokuons. For example: ttttttttttsu converts to ttttttttっつ instead of っっっっっっっっっつ. This can create issues when parsing text that is pasted in or grabbed from clipboard monitor.

  • Wacky handling of n -> vs nn -> . Wanakana bind (which we can't use) says nnn should be んn but wanakana's other converters say it should be んんん. This also causes issues when the user is typing something and goes back to change part of it. Even in IMEMode, wanakana's kana converter doesn't handle this right (though they claim it matches wanakana.bind, it doesnt).

    For example: If the user accidentally types あの instead of なの then if they try to type naの without removing the it will convert into んあの.

@Kuuuube Kuuuube added kind/meta The issue or PR is meta area/dependencies The issue or PR is related to dependencies area/tech-debt labels Mar 24, 2025
@Kuuuube Kuuuube requested a review from a team as a code owner March 24, 2025 00:03
@Kuuuube Kuuuube changed the title Replace wanakana toKana Replace wanakana toKana and toHiragana Mar 24, 2025
Copy link
codspeed-hq bot commented Mar 24, 2025

CodSpeed Performance Report

Merging #1910 will not alter performance

Comparing Kuuuube:replace-wanakana (57a051c) with master (730d17f)

Summary

✅ 5 untouched benchmarks

@Kuuuube Kuuuube changed the title Replace wanakana toKana and toHiragana Replace wanakana Mar 24, 2025
@jamesmaa
Copy link
Collaborator

Can you update the PR description for why you're replacing wanakana?

@Kuuuube
Copy link
Member Author
Kuuuube commented Mar 24, 2025

Can you update the PR description for why you're replacing wanakana?

Added a bit of explanation.

@Kuuuube Kuuuube added this pull request to the merge queue Mar 24, 2025
Merged via the queue into yomidevs:master with commit 14a153e Mar 24, 2025
25 of 27 checks passed
@Kuuuube Kuuuube deleted the replace-wanakana branch March 24, 2025 21:41
@Kuuuube Kuuuube added the dependencies Pull requests that update a dependency file label Mar 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/dependencies The issue or PR is related to dependencies area/tech-debt dependencies Pull requests that update a dependency file kind/meta The issue or PR is meta
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0