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

Trying to format the definition output to Anki #123

Open
ajbjc opened this issue Dec 19, 2024 · 0 comments
Open

Trying to format the definition output to Anki #123

ajbjc opened this issue Dec 19, 2024 · 0 comments

Comments

@ajbjc
Copy link

ajbjc commented Dec 19, 2024

Is it possible to make it easier to edit the word meaning in Anki without using an HTML editor? With the styling:

[data-sc-content|="example-sentence"] {
  display: none;
}

[data-sc-content|="attribution"] {
  display: none;
}

I get rid of some stuff:
Capture3

However, when I try to remove any of the list elements: *, ① and the bullet points, it just deletes the tags at the top which I want to keep. The only way to edit out the list elements and the items I don't want: is to get the HTML, format it and then find the parts that need deleting. I also tried removing all relevant mentions of <li>, <ul>\ and <ol>\ from the Yomitan Handlebars.js Anki card template which does nothing. All I want to do is to get it to say either:

[exp] [adjectival]
arriving at the present, present-day

or

[exp] [5-dan]
to arrive at the present day

Depending on which is needed

Also, despite setting text-align to center for the yomi-glossary class, only the tags by themselves get centred, and none of the list items gets centred.

Lastly, is there a full list of data-sc-contents I can use? For example, I want to remove the extra "see: ..." info that sometimes appears for definitions.

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

1 participant