Add additional Anki card marker aliases (#2083)

This commit is contained in:
toasted-nutbread 2022-03-13 21:17:35 -04:00 committed by GitHub
parent 48b2807120
commit 1590f5218c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -677,9 +677,11 @@ class AnkiCardController {
const markers = this._ankiController.getFieldMarkers(cardType); const markers = this._ankiController.getFieldMarkers(cardType);
const markerAliases = new Map([ const markerAliases = new Map([
['expression', ['phrase', 'term', 'word']],
['glossary', ['definition', 'meaning']], ['glossary', ['definition', 'meaning']],
['audio', ['sound']], ['audio', ['sound']],
['dictionary', ['dict']] ['dictionary', ['dict']],
['pitch-accents', ['pitch']]
]); ]);
const hyphenPattern = /-/g; const hyphenPattern = /-/g;