wareya / nazeka

Nazeka is a rikai replacement
https://addons.mozilla.org/en-US/firefox/addon/nazeka/
50 stars 8 forks source link

Make more distinctions between json dictionary and jmdict when mining #51

Open ethyrx opened 4 years ago

ethyrx commented 4 years ago

I like to look at the kenkyusha dictionary definitions and sample sentences when I'm just looking at words, but it becomes a problem when I mine because the card ends up as some giant list. You ended up suggesting we edit the cards after we make them, but I usually make over 30 cards a day, so it can get tedious. An option to only use jmdicts(or even only a specific json) definition in the card would be very helpful.

wareya commented 4 years ago

In the specific case that you only ever want jmdict or json definitions and not the other, you can hide the other type with CSS, because nazeka mines the full HTML displayed by itself which includes CSS classes differentiating the two, e.g. the following image.

image

So to hide jmdict definitions, you would use

.jmdict_definitions {
 display: none;
}

and to hide json definitions, you would use

.epwing_definitions, .json_definitions {
 display: none;
}

(the reason for there being two classes in the json definitions example is that I changed the CSS field for them when I added json dictionary editing support instead of the feature exclusively being for epwing dictionaries)

ethyrx commented 3 years ago

thanks, that worked