add dictionary formatting field
This commit is contained in:
parent
786ef851c9
commit
f7d7b1bd84
@ -324,6 +324,7 @@ function modelIdToMarkers(id) {
|
||||
return {
|
||||
'anki-term-model': [
|
||||
'audio',
|
||||
'dictionary',
|
||||
'expression',
|
||||
'expression-furigana',
|
||||
'glossary',
|
||||
@ -335,6 +336,7 @@ function modelIdToMarkers(id) {
|
||||
],
|
||||
'anki-kanji-model': [
|
||||
'character',
|
||||
'dictionary',
|
||||
'glossary',
|
||||
'glossary-list',
|
||||
'kunyomi',
|
||||
|
@ -124,6 +124,7 @@ class Yomichan {
|
||||
const markers = [
|
||||
'audio',
|
||||
'character',
|
||||
'dictionary',
|
||||
'expression',
|
||||
'expression-furigana',
|
||||
'glossary',
|
||||
@ -139,9 +140,6 @@ class Yomichan {
|
||||
for (const marker of markers) {
|
||||
let value = definition[marker] || null;
|
||||
switch (marker) {
|
||||
case 'audio':
|
||||
value = '';
|
||||
break;
|
||||
case 'expression':
|
||||
if (mode === 'term_kana' && definition.reading) {
|
||||
value = definition.reading;
|
||||
|
Loading…
Reference in New Issue
Block a user