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 |





primary_readingparam.primary_readingif exists.primary_readingwill 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.