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

Cloze-body-kanji handlebar #1759

Open
Maltesaa opened this issue Jan 17, 2025 · 4 comments
Open

Cloze-body-kanji handlebar #1759

Maltesaa opened this issue Jan 17, 2025 · 4 comments
Labels
area/anki The issue or PR is related to Anki integration kind/enhancement The issue or PR is a new feature or request

Comments

@Maltesaa
Copy link

If currently using {cloze-prefix}{cloze-body}{cloze-suffix} for the sentence field of a card in Anki, you can commonly get kanji/kana mismatches if the source word is written in kana and the dictionary has it in kanji or vice versa. For example, take the word 煌びやか from this sentence 一気に周囲の景色がきらびやかになる。
Image
This is pretty annoying if you use hybrid cards where both the target word and sentence are on the front of the card, since you are basically spoiling the reading of the word.

It would be very nice to get a handlebar that uses the same spelling as the entry you make the card from.

@Maltesaa Maltesaa added the kind/enhancement The issue or PR is a new feature or request label Jan 17, 2025
@Kuuuube
Copy link
Member

Kuuuube commented Feb 8, 2025

Have tried using {search-query} handlebar instead?

@Kuuuube Kuuuube added the area/anki The issue or PR is related to Anki integration label Feb 8, 2025
@Maltesaa
Copy link
Author

I just tried it and it seems to be the exact same as using {cloze-body}

@Kuuuube
Copy link
Member

Kuuuube commented Feb 18, 2025

Taking another look at this, I misunderstood it the first time. I'm not sure this is reasonable to implement since it would essentially require inverting the deconjugation from the dictionary's listing to make sure the kanji goes in the right spots.

For entries that match the reading of the search query it would be simple (as with your example) but I'm not sure that's worth implementing since even simple cases such as:

Searching いきます, deconjugates into 行く, Yomitan doesn't have a surefire way to know where to put 行 in いきます since the dict entry isnt 行きます.

@Maltesaa
Copy link
Author

I see... I don't know how Yomitan works behind the scenes but it seemed to me like you could just run the deconjucator in reverse to get the kanjified version, but it seems to be much more complicated... I guess this issue could be closed then?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/anki The issue or PR is related to Anki integration kind/enhancement The issue or PR is a new feature or request
Projects
None yet
Development

No branches or pull requests

2 participants