artyompetrov / AutoDefine_oxfordlearnersdictionaries

An add-on to Anki that auto-defines words and images.
GNU General Public License v2.0
17 stars 10 forks source link

disabling verb forms not working #24

Open Geniusssmit opened 7 months ago

Geniusssmit commented 7 months ago

Describe the bug setting vero_form to false is not working and still adds verb forms

To Reproduce Steps to reproduce the behavior: addon settings: VERB_FORMS": false,

Debug info:

Additional context (e.g., exception) Using latest branch

artyompetrov commented 7 months ago

Please try on https://github.com/artyompetrov/AutoDefine_oxfordlearnersdictionaries/tree/add-bulk-and-default-template

Geniusssmit commented 7 months ago

I used this branch

artyompetrov commented 7 months ago

which word do you trying to define ?

Geniusssmit commented 7 months ago

debilitate

artyompetrov commented 7 months ago

I'll check the reason later - added to my todo list or MR is appreciated

Geniusssmit commented 7 months ago

also after adding definitions from anki browser by clicking this button image anki forces me to force sync the collection image

artyompetrov commented 4 months ago

"anki forces me to force sync the collection" - that is because it creates new note type. There is no way to create new note type without collection sync

VagabondSnufkin commented 4 months ago

But before the 19th of May, it was not necessary to sync after each auto-defining. Can I change something in Config not to have to sync after every defining?

Nima38 commented 4 months ago

I have the same problem today, by setting the value of "verb forms" to "false", it doesn't do the job and still tries to put the different verb forms. OS: macOS ANKI version: Version ⁨23.12.1 (1a1d4d54)⁩

Nima38 commented 4 months ago

https://github.com/artyompetrov/AutoDefine_oxfordlearnersdictionaries/assets/133772585/9b4e6d23-422e-4e94-be33-d73429dcf1eb

Here is a video of what's happening.

artyompetrov commented 4 months ago

@VagabondSnufkin can you send video of your config and capture the problem?

VagabondSnufkin commented 4 months ago

@artyompetrov It's just it forces me to do a full sync after clicking the 'auto-define' icon.

This is my config: image

I have ny own card/note type with about 8/9 fields, and before the update my collection didn't need to be fully synchronised. It is not the biggest deal but requires lots of syncing ;)

artyompetrov commented 4 months ago

@VagabondSnufkin can you also send a full screenshot of browser window after defining?

Nima38 commented 4 months ago

@VagabondSnufkin I presume it is because of the first field in the config. You are using the default template (the new one) while you do not have the note type, therefore you need to sync after creating a new note type. Change the value of "USE_DEFAULT_TEMPLATE" in config to "false" and use your own note type and check if that works.

VagabondSnufkin commented 4 months ago

Thank you. Changing to 'false' worked. Let me ask you both one more question. The add-on defines the word from the source field, which is '0'. Before an update it was possible to highlight any word in any field and then, by clicking 'define', the highlighted word was defined. What to change in config to enable this function?

artyompetrov commented 4 months ago

@VagabondSnufkin please send a screenshot of template you are using

TigerBest commented 1 month ago

I have the same problem. Anki Version is 24.04 Qt6, add-on version is latest. My config and template is as below: image