OoDeLally / anki-add-hooks-userscripts

Automate Anki card creation from popular translation websites
MIT License
21 stars 3 forks source link

Template issue #40

Closed bibizombie closed 3 years ago

bibizombie commented 3 years ago

Your software

Describe the bug Hello and thank you for your script. I just installed it and am having the following issue: I think that the size of the text in the flashcards should be growing from large to small. You can see on the below screenshot that the most important words (at the top) are actually smaller, and the example sentence in grey is the largest. How can I change this? (Sorry I am not familiar with coding and Github).

Screenshot image

OoDeLally commented 3 years ago

Hi @bibizombie, Thanks for the report. This should fix it. https://github.com/OoDeLally/anki-add-hooks-userscripts/commit/070055cfaa2e9473f922c3d45fa17da7d449bdc8

bibizombie commented 3 years ago

Hi @OoDeLally, Many thanks for fixing this! It seems to work well on my side. Cheers!

bibizombie commented 3 years ago

Hi @OoDeLally, How do you change the deck and the card type association, once it has been set (through Chrome)? I can't find a way to modify that. Thanks in advance!

OoDeLally commented 3 years ago

Hi @bibizombie I didn't implemented that feature (laziness?) However you can modify the storage by following these steps: https://stackoverflow.com/a/56918709/1541141

You should see something like this

{
    "deckName_en -> cz": "čeština",
    "deckName_en -> fr": "Default",
    "deckName_fr -> en": "enfr",
    "modelName_en -> cz": "Basic (and reversed card)",
    "modelName_en -> fr": "Basic",
    "modelName_fr -> en": "Basic (and reversed card)"
}

You can see for each <source> -> <target> tuple, the storage contains a deck name and a model name. Either delete the wrong values or modify them directly.

bibizombie commented 3 years ago

Great, thank you @OoDeLally