Skip to content

Commit

Permalink
Improve default anki field setup (#1869)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kuuuube authored Mar 9, 2025
1 parent e6b7c58 commit 078dec4
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions ext/js/pages/settings/anki-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -1021,10 +1021,18 @@ class AnkiCardController {
const markers = getStandardFieldMarkers(dictionaryEntryType);
const markerAliases = new Map([
['expression', ['phrase', 'term', 'word']],
['reading', ['expression-reading', 'term-reading', 'word-reading']],
['furigana', ['expression-furigana', 'term-furigana', 'word-furigana']],
['glossary', ['definition', 'meaning']],
['audio', ['sound']],
['audio', ['sound', 'word-audio', 'term-audio', 'expression-audio']],
['dictionary', ['dict']],
['pitch-accents', ['pitch']],
['pitch-accents', ['pitch', 'pitch-accent', 'pitch-pattern']],
['sentence', ['example-sentence']],
['frequency-harmonic-rank', ['freq', 'frequency', 'freq-sort', 'freqency-sort']],
['popup-selection-text', ['selection']],
['pitch-accent-positions', ['pitch-position']],
['pitch-accent-categories', ['pitch-categories']],
['popup-selection-text', ['selection-text']],
]);

const hyphenPattern = /-/g;
Expand Down

0 comments on commit 078dec4

Please sign in to comment.