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

feat(dict): Whitelist Kanji Learner's Dictionary 2nd Edition #1448

Merged
merged 8 commits into from
Mar 20, 2023

Conversation

tora-pan
Copy link
Contributor

@tora-pan tora-pan commented Mar 12, 2023

Whitelist Kanji Learner's Dictionary 2nd Edition.

Add required info to the kanjiInfo and kanjiInfoLabelList in their respective files.

Needs update to entries in kanji.dat file to include KLD 2nd Edition info.

Fixes #1363

Copy link
Owner

@melink14 melink14 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 to me, though I realize now I don't have any visual tests of the options page so I don't really know how this shows up...

Did you test manually?

For submission I think we should wait until after the monday regular update and then update the dictionary updating util to populate the DL reference and then submit with the new kanji dat file only.

@codecov
Copy link

codecov bot commented Mar 12, 2023

Codecov Report

Merging #1448 (3e92667) into main (82630c0) will increase coverage by 0.04%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #1448      +/-   ##
==========================================
+ Coverage   79.62%   79.67%   +0.04%     
==========================================
  Files           7        7              
  Lines        3004     3011       +7     
  Branches      189      189              
==========================================
+ Hits         2392     2399       +7     
  Misses        607      607              
  Partials        5        5              
Impacted Files Coverage Δ
extension/configuration.ts 86.45% <100.00%> (+0.74%) ⬆️
extension/data.ts 82.36% <100.00%> (+0.03%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Copy link
Owner

@melink14 melink14 left a comment

Choose a reason for hiding this comment

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

Can you run the script and upload only the kanji data files as well?

We don't want the changes casued by this PR to show up in an unrelated PR later since that will make tracing changes harder in the past.

You'll find most of the effort we take in constructing commits and PRs is all to make understanding the logic and reasoning of the codebase easier for our future selves. :)

@tora-pan
Copy link
Contributor Author

I think everything went well.

ran npm run update-db and this was the output.

Fetching word dictionary...
Parsing dictionary created: 2023-03-13
Writing index...
Fetching names dictionary...
Parsing dictionary created: 2023-03-13
Writing index...
Fetching kanji dictionaries...
Parsing KANJIDIC dictionary from 2023-03-13
Parsing KANJD212 dictionary from 2023-03-13
Done.

Did A quick scan over the file and it looks like it worked correctly. May rows contain the DL#### number now.

Will push changes now.

Copy link
Owner

@melink14 melink14 left a comment

Choose a reason for hiding this comment

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

Two things:

  1. To re-iterate from my last question: did you test this manually selecting and deselecting the new index from options. Since there are no tests for options, we should do a bit of testing first.

  2. I noticed this still said it was waiting on changes to be made but you can't resolve the top level review comment like this. I'd say once you're 'waiting' you should click the 're-request review' button to passit back to me.

@tora-pan
Copy link
Contributor Author

Sorry about that.

Yes it has been tested.
Screenshot 2023-03-19 at 5 34 35 PM

@tora-pan tora-pan requested a review from melink14 March 20, 2023 00:40
@melink14
Copy link
Owner

melink14 commented Mar 20, 2023 via email

@tora-pan
Copy link
Contributor Author

yep, I tested by toggling it on and off.

@tora-pan
Copy link
Contributor Author

I'll send more screenshots or a mini video later 👍

@mergify mergify bot merged commit 11935bb into melink14:main Mar 20, 2023
melink14 pushed a commit that referenced this pull request Mar 20, 2023
## [2.5.0](v2.4.44...v2.5.0) (2023-03-20)

### Features

* **dict:** Whitelist Kanji Learner's Dictionary 2nd Edition ([#1448](#1448)) ([11935bb](11935bb)), closes [#1363](#1363)
@melink14
Copy link
Owner

🎉 This PR is included in version 2.5.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@melink14
Copy link
Owner

Just as a note to future readers: I meant to edit the PR title before merge to something a bit more specific but forgot. Luckily it was already pretty good!

@tora-pan tora-pan deleted the tora-pan/KLD-support branch March 20, 2023 03:58
@melink14
Copy link
Owner

@all-contributors Add @tora-pan for code.

@allcontributors
Copy link
Contributor

@melink14

I've put up a pull request to add @tora-pan! 🎉

mergify bot pushed a commit that referenced this pull request Mar 20, 2023
Adds @tora-pan as a contributor for code.

This was requested by melink14 [in this comment](#1448 (comment))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for Kanji Learner's Dictionary 2nd Edition indices to rikaikun
2 participants