Closed Aridow closed 7 months ago
The order in which forms appear in the "forms" list roughly corresponds to the frequency of their usages. "ヘア" is considerably more common than "ヘアー", so it is at the top of the list. Likewise for コンピュータ and コンピューター. If I removed a form from the list, then this information would be lost.
I am doing something like what you suggest in the MDict version of Jitendex. The form which appears at the top of an entry is not displayed again in the "other forms" list at the bottom. But since the form displayed at the top in Yomitan is always the form that has been searched (rather than the most frequent form), it is not possible to replicate this design in Yomitan.
Also, I am already hiding the forms list when an entry only contains one form.
If you still don't want to see the lists, you can add this custom style to your Yomitan to hide them. If you don't know how to do that, I wrote about how to add custom styles to Yomitan in this article.
/* Hide lists of forms in Jitendex */
div[data-sc-content="forms"]:has(ul) {
display: none;
}
Thanks. I just had to remove "div" for it to work.
That's very surprising to me. I tested it in Chromium and Firefox and it worked with the "div" in both browsers. Are you using a different browser?
I use Firefox. For instance, with the "div", the list is correctly hidden with コンピューター but not with ヘア. In "inspect element" with ヘア it's: <li class="gloss-sc-li" data-sc-content="forms">
Thanks, that makes sense. Because the entry for ヘア has two senses (① and ②), I structured it a little differently. Glad to hear you got it working.
With some words like ヘア or コンピューター, the different forms of the word doesn't display as a table but as a list. The issue is, since the different forms already appear in the entry name, I think it's redundant to have this section in that case.