-
Notifications
You must be signed in to change notification settings - Fork 117
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 entries by primary reading #1497
Conversation
CodSpeed Performance ReportMerging #1497 will not alter performanceComparing Summary
Benchmarks breakdown
|
…itan into search-reading
Thank you for working on this. It looks good.
I don't like this approach. I think it would be better to rely on the dictionary data to specify the In other words, I would remove this block of code: yomitan/ext/js/display/structured-content-generator.js Lines 459 to 481 in 051a2f0
|
Agreed. |
The only place that user could specify the The main purpose of this PR is to extract the reading from furigana, then sort the terms with that reading on top. For example, suppose that my dictionary has 縁 (えん) above 縁 (ふち). When I click on a word link 縁 (ふち), the entry 縁 (ふち) should be above 縁 (えん). As far as I know, only Jitendex has furigana for word link. I agree that the implementation is quite fragile, we can find better ways to handle this. |
I also agree with having the |
I just published a new version of Jitendex that includes the |
Tested with new version of Jitendex. Works great! My.Video.mp4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
primary_reading
param.primary_reading
if exists.primary_reading
will be sorted to top.Works correctly for Jitendex gloss link format. Don't know if there are any kind of dictionary format which will break this feature, since the reading is depended on the classes naming.