add dictionary formatting field

This commit is contained in:
Alex Yatskov 2017-01-07 20:48:59 -08:00
parent 786ef851c9
commit f7d7b1bd84
2 changed files with 3 additions and 3 deletions

View File

@ -324,6 +324,7 @@ function modelIdToMarkers(id) {
return { return {
'anki-term-model': [ 'anki-term-model': [
'audio', 'audio',
'dictionary',
'expression', 'expression',
'expression-furigana', 'expression-furigana',
'glossary', 'glossary',
@ -335,6 +336,7 @@ function modelIdToMarkers(id) {
], ],
'anki-kanji-model': [ 'anki-kanji-model': [
'character', 'character',
'dictionary',
'glossary', 'glossary',
'glossary-list', 'glossary-list',
'kunyomi', 'kunyomi',

View File

@ -124,6 +124,7 @@ class Yomichan {
const markers = [ const markers = [
'audio', 'audio',
'character', 'character',
'dictionary',
'expression', 'expression',
'expression-furigana', 'expression-furigana',
'glossary', 'glossary',
@ -139,9 +140,6 @@ class Yomichan {
for (const marker of markers) { for (const marker of markers) {
let value = definition[marker] || null; let value = definition[marker] || null;
switch (marker) { switch (marker) {
case 'audio':
value = '';
break;
case 'expression': case 'expression':
if (mode === 'term_kana' && definition.reading) { if (mode === 'term_kana' && definition.reading) {
value = definition.reading; value = definition.reading;