Skip to content

"Etymology" is missing in Russian disctionaries #244

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

Open
dollar2048 opened this issue May 5, 2025 · 2 comments
Open

"Etymology" is missing in Russian disctionaries #244

dollar2048 opened this issue May 5, 2025 · 2 comments

Comments

@dollar2048
Copy link

Hello team.
I might be doing something wrong, but for me the 'Etymology' is empty for many words in kty-en-ru disctionary.
Few questions:

  1. why is that empty? Maybe, it is possible to not show it when it's empty.
  2. Is there a possibility to remove all those "Etymology" and other dropdown options and links to "Wiktionary"? As I use it later to create an Anki card and, ideally, it would be nice to pass just a plain text.

Please, refer to the screenshot.
Image

Thank you for ideas.

@seth-js
Copy link
Contributor

seth-js commented May 8, 2025

why is that empty?

That etymology text appears in Russian Wiktionary itself.

Image

Maybe, it is possible to not show it when it's empty.

I can most likely write some code to filter out this specific pattern от ?? so that read and any other words with the same issue will no longer have this etymology entry.

I'll look into doing this when I have some time.

Is there a possibility to remove all those "Etymology" and other dropdown options and links to "Wiktionary"?

Yes. The following CSS should help you out.

details[data-sc-content="details-entry-Etymology"],
details[data-sc-content="details-entry-Grammar"],
div[data-sc-content="backlink"] {
  display: none;
}

You can add this to Yomitan by doing this:

  1. Open your Yomitan settings
  2. Ensure Advanced is enabled at the bottom left
  3. Select the Appearance section
  4. Select the option Configure custom CSS…
  5. In the Popup CSS section, paste the CSS code

You can add this to Anki by doing this:

  1. Open Anki
  2. Select Browse at the top
  3. Select one of your cards you created with Yomitan
  4. Select the Cards button near the top right
  5. Select the Styling section
  6. Paste in that CSS code
  7. Hit save

Let me know if you have any problems.

@dollar2048
Copy link
Author

This is amazing! Thank you so much!
Although now I have a weird Numbers list inside the number list.

Image

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

2 participants