Closed epistularum closed 5 years ago
Yeah rikaisama's per-line regex filtering wasn't a very good design IMO.
Nazeka already has support for auxiliary json dictionaries but you have to know how to write a converter to use the feature. It's not ideal. I'll get around to writing epwing importers eventually.
It will be insanely helpful if you can achieve a result that keeps one example for each definition. Where can I buy you a coffee ?
This will be nazeka_epwing_converter's job once dictionaries other than shinmeikai are supported in it. You can open a new issue on its repository if you want.
Something I've always wished from any pop up dictionary is a good support for the kenkyusha waei dictionary. The best support at the moment is still rikaisama and a lot of people stick to firefox 57/waterfox/palemoon... for the sole purpose of rikaisama and its regex deletion.
It's a good occasion to improve on rikaisama's EPWING feature (especially for kenkyusha due to its large number of of examples and what not).
For the moment with rikaisama and its regex feature we can clean up the definition field BUT in this process we're forced to delete all the examples. I've been trying to find a fix using regex but I'm not competent enough make a breakthrough, here's what I figured out so far.
Example of an entry :
Where all entries starting with "▲" or "・" are examples and all entries matching this regex are definitions :
Regular expression that matches everything that is not a definition :
\n[^″*〖〈《⇒=➡【〔(〜A-Za-z0-9].*
Regular expression that matches definitions+one line below :
\n[″*〖〈《⇒=➡【〔(〜A-Za-z0-9].*\n.*
The perfect result should look like this(keeping one example for each definition) :
tldr : adding support for kenkyusha while keeping only 1 example for each definition would be a godsend for anyone learning Japanese and will finally achieve a breakthrough in the dictionary pop up app nonsense.