-
Notifications
You must be signed in to change notification settings - Fork 8
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
[似合い] Sort similar Kanji list by WK level #23
base: master
Are you sure you want to change the base?
Conversation
wk_niai.user.js has to be modified as well. I am not sure why the files are fixed to only certain commits, and not based on the master branch. I'll leave it for now, but note that for the above changes to work the file must be modified by the new commit url. TLDR - Change line 36 in wk_niai.user.js to: |
The default setting for Tampermonkey is to never update external files, so using Another advantage of |
I made a few changes to address the concerns mentioned here: |
I took a look at this because I wanted to have it implemented for myself in my own fork, so I thought I'd share the issues I discovered. First up, the sorting by score doesn't actually work. This is because the sort function assumes the object returned by Unfortunately this is not the only problem. A more difficult to solve issue is that the lookup database is out of date with Wanikani and thus the levels used in the To give a concrete example of that: I am currently level 21, and unlocked the kanji 制. One of the similar kanji that are returned in the list is 劇. In the lookup database, 劇 is listed as level 34, but it is currently level 17 on Wanikani. The sort function puts 劇 into the part of the list with all of the locked items because 34 > 21, but it does not have the styling of a locked item because its class is updated by the function that uses the Open Framework to update the locked classes of items. My first thought to fix this was that I would need In any case, since my current situation is having my own fork of Niai to use that already has significant changes that would not really make for an appropriate PR (see: niai-revamped branch on my fork), I'll continue working on my own solution ideas even if they require major rewrites; I just thought I should share these issues so if you want you can work on them in your own way. Update: I was able to figure out how to address the second issue and make changes such that it wasn't that major of a rewrite. I will make a PR to your fork so those changes can be brought into this PR. |
Addresses feature request #22.
Similar Kanji are now sorted in ascending WK level order.
Before change:
After change: