Gustaf-C / anki-chinese-support-3

Anki add-on providing support for Chinese study
https://ankiweb.net/shared/info/1752008591
GNU General Public License v3.0
26 stars 7 forks source link

Is it possible to color specific fields? #79

Open soliviantar opened 1 month ago

soliviantar commented 1 month ago

Hi Gustaf, thanks so much for keeping this alive!

I have a question. I have a deck with single hanzi which are colored in the Color field and all is well.

However, now I have added a new field ("Word") with a common word which includes said hanzi. I would like this 2 (or more) syllable word to be colored as well, but I can't seem to find out how to do that. If I set the name to one of the hanzi color options in the config file it will color it, bu it will also overwrite the field with the single Hanzi field content.

Is there a way to color just this "Word" field? Thanks!

Gustaf-C commented 1 month ago

At the moment that is not possible to do automatically. You could achieve the same thing manually by directly editing the HTML for the field.

soliviantar commented 1 month ago

I see, thanks. I did it by creating duplicating the decks, changing the name of the field, using the addon and the exporting it and importing again into the original deck.

Not pretty, but I managed. Hopefully this addon will add some new functionalities at some point, but it's good enough that it's working as it is now. So thanks again for that!!