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

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

Open
YossefGamerr opened this issue May 17, 2024 · 8 comments
Open

Comments

@YossefGamerr
Copy link

image

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

@StefanVukovic99
Copy link
Collaborator

StefanVukovic99 commented May 17, 2024

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
Copy link
Author

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
Copy link
Member

Kuuuube commented May 18, 2024

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
Copy link
Collaborator

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
Copy link
Author

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
Copy link
Collaborator

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
Copy link
Author

I'll get back to you about the rest.

is there any progress made?

@StefanVukovic99
Copy link
Collaborator

StefanVukovic99 commented Jun 27, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants