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

Inconsistent ability to add Anki notes #160

Closed
snfergy opened this issue May 13, 2023 · 8 comments
Closed

Inconsistent ability to add Anki notes #160

snfergy opened this issue May 13, 2023 · 8 comments
Labels
invalid This doesn't seem right

Comments

@snfergy
Copy link

snfergy commented May 13, 2023

Sometimes when attempting to add Anki notes by hovering over subtitles the feature isn't available. I'm not sure if this is related to the first bullet in the troubleshooting, as I'm able to do it on other sub lines.

https://dl.dropboxusercontent.com/s/7pocc7bt6ty88ta/memento_HXyNRUBXaP.mp4

@ripose-jp
Copy link
Owner

90% of the time this is related to your note template.

Set your duplicate policy to "allowed in same deck". Can you add any note?

@snfergy
Copy link
Author

snfergy commented May 13, 2023

Yes, that seems to have done the trick. How can I view what's causing the issue in particular?

@ripose-jp
Copy link
Owner

How can I view what's causing the issue in particular?

I don't know if there is a way. Anki/AnkiConnect decide what qualifies a note as a duplicate and they don't tell Memento anything beyond that.

The reason I asked you to change your duplicate policy was to check if the problem was with your note template or Memento. The fact that changing your duplicate policy allows Memento to add cards means that your notes are being detected as duplicates Anki. You can fix this by fixing your notes or your template. You can post your template and I'll let you know if I see anything immediately wrong, but beyond that you'll have to troubleshoot yourself.

@snfergy
Copy link
Author

snfergy commented May 13, 2023

It's quite a lot. I'm using a premade deck as a template.

Front Template: https://pastebin.com/1eCis5de
Back Template: https://pastebin.com/FkXfkK4z

@ripose-jp
Copy link
Owner

I mean your Memento template, not your Anki template. I've never written an Anki template so I can't help you debug that.

@snfergy
Copy link
Author

snfergy commented May 13, 2023

@ripose-jp
Copy link
Owner

From what I've seen, SentKanji is probably the key that Anki uses to detect duplicates. If so, it ignores markup and just looks at the text. When you add vocab from one sentence all other in the same sentence are detected as duplicates.

Maybe add spaces around <b>{close-body}</b> to try and trick Anki.

This is all just speculation, I don't guarantee this will work.

@snfergy
Copy link
Author

snfergy commented May 13, 2023

That worked! Thanks a lot.

@ripose-jp ripose-jp added the invalid This doesn't seem right label May 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants