yomidevs / kaikki-to-yomitan

Yomitan-compatible dictionaries from wikitionary data
https://github.com/themoeway/kaikki-to-yomitan/releases
66 stars 9 forks source link

The grammatical information in the Arabic dictionary is too much #44

Open YossefGamerr opened 6 months ago

YossefGamerr commented 6 months ago

image

some information here is pretty much useless, how do I manually remove it

StefanVukovic99 commented 6 months ago

If you turn on Advanced settings, the last setting in the "Appearance" section is "Configure custom CSS". Put this there:

ul.inflection-rule-chains {
    display: none;
}

(You already had issue #41 open about this. Please close them both if this fixes your problem)

YossefGamerr commented 6 months ago

If you turn on Advanced settings, the last setting in the "Appearance" section is "Configure custom CSS". Put this there:

ul.inflection-rule-chains {
    display: none;
}

(You already had issue #41 open about this. Please close them both if this fixes your problem)

But this removes all of it, whereas some information is valuable but some are useless. So is there no way to pick certain info and block others?

Kuuuube commented 6 months ago

Here is an example showing only the first two items:

li.inflection-rule-chain {
    display: none;
}

li.inflection-rule-chain:nth-child(1),
li.inflection-rule-chain:nth-child(2) {
    display: block;
}

If you want more or less items to show it should be obvious enough how to get that. Beyond this it isn't possible to parse the data with css and pick out specific info that you deem important.

StefanVukovic99 commented 6 months ago

Could you provide some more details on which of the data you consider redundant? We filter out some stuff during dict conversion:

const blacklistedTags = [
    'inflection-template',
    'table-tags',
    'nominative',
    'canonical',
    'class',
    'error-unknown-tag',
    'error-unrecognized-form',
    'infinitive',
    'includes-article',
    'obsolete',
    'archaic',
    'used-in-the-form'
];

Maybe something should be added, or something specific to arabic?

YossefGamerr commented 5 months ago

Maybe something should be added, or something specific to arabic?

Adding the noun gender and plural with noun entries would be super helpful, to easily copy and paste into Anki cards. (also putting the diacritic marks on the plural is crucial)

ApplicationFrameHost_V4lPrKZ3Eo

And with verbs adding the non-past is also very helpful, and obviously put the diacritic marks on the non-past

chrome_K7y2GfwMMjjjjj

And I would say putting the word with the diacritic marks alone so that it becomes clear and visible is way better, since a lot of words in Arabic look similar but they are just different in diacritic marks.

ApplicationFrameHost_DwIsVbrTIi

One final thing do you have an idea how you could possibly only show the first grammatical information but not through that custom css thing in Yomitan but through editing the actual dictionary files so that it only shows the first one?

and thank you, if you actually do these things, this dictionary would be a gem.

StefanVukovic99 commented 5 months ago

About making the word with diacritics more visible, the Term display style settings might help: image

I'll get back to you about the rest.

YossefGamerr commented 5 months ago

I'll get back to you about the rest.

is there any progress made?

StefanVukovic99 commented 5 months ago

Well, the grammar stuff has been requested in #69 also, so we'll find a way to put it in eventually. For showing only the first deinflection, I don't see any way other than css.