m-rtin / anki-ipa

Anki add-on to insert IPA transcriptions
https://ankiweb.net/shared/info/799647424
GNU Affero General Public License v3.0
21 stars 12 forks source link

Question: Would that be possible to have multiple IPA fields? #27

Open frgomes opened 3 years ago

frgomes commented 3 years ago

I have some decks involving fields:

I would like to have two IPA fields, one for Front and another for Back.

Then I've created a new card type as below:

Then I've tried Edit > Add IPA...

Language: german
Field of word: Front
Field of IPA transcription: FrontIPA
[Add]

When I click on the musical note for obtaining the IPA translation, the plugin complains that "IPA not found" was not found. Looks like the plugin is considering the default configuration, instead of obeying my last command.

OK. Let's try then to configure the plugin.

I've configured then saying that the word field is "Front" and the IPA field is "FrontIPA". After a restart I've tried again, but without any progress: the transcription fails saying "IPA not found".

Any clues? What I'm doing wrong?

Would that be possible to have multiple IPA fields?

Thanks

frgomes commented 3 years ago

Apparently, only language: eng is implemented.

sheley commented 1 year ago

thanks for your work on this add-on!

similarly to the feature request above, would also be cool someday to be able to name multiple WORD_FIELDS.

I'm currently using several note types that have different names for the "front" input, so every time i want to use the plugin for different note types i have to change the config.

would it possible to have a config that looks something like this:

{
   "KEYBOARD_SHORTCUT": "Ctrl+Shift+Z",
    "fields" [{
        "IPA_FIELD": "IPA",
        "WORD_FIELD": "Adjective"
    },
    {
        "IPA_FIELD": "IPA",
        "WORD_FIELD": "Noun"
    },
    {
        "IPA_FIELD": "IPA (plural)",
        "WORD_FIELD": "Plural"
    }]

?