This commit is contained in:
Alex Yatskov 2016-10-26 20:30:44 -07:00
parent d9e3e68f48
commit 5710dc55a7
4 changed files with 5930 additions and 2 deletions

5895
ext/bg/data/rules.json Normal file

File diff suppressed because it is too large Load Diff

33
ext/bg/data/tags.json Normal file
View File

@ -0,0 +1,33 @@
{
"P": {"class": "popular", "desc": "popular term", "order": 1, "score": 5},
"exp": {"class": "expression", "order": 2},
"id": {"class": "expression", "order": 2},
"arch": {"class": "archaism", "order": 2, "score": -1},
"iK": {"class": "archaism", "order": 2, "score": -1},
"news": {"class": "frequent", "desc": "appears frequently in Mainichi Shimbun", "order": 3},
"ichi": {"class": "frequent", "desc": "listed as common in Ichimango Goi Bunruishuu", "order": 3},
"spec": {"class": "frequent", "desc": "common words not included in frequency lists", "order": 3},
"gai": {"class": "frequent", "desc": "common loanword", "order": 3},
"jouyou": {"class": "frequent", "desc": "included in list of regular-use characters", "order": 3},
"jinmeiyou": {"class": "frequent", "desc": "included in list of characters for use in personal names", "order": 3},
"jlpt": {"desc": "corresponding Japanese Language Proficiency Test level"},
"grade": {"desc": "school grade level at which the character is taught"},
"strokes": {"desc": "number of strokes needed to write the character"},
"heisig": {"desc": "frame number in Remembering the Kanji"},
"surname": {"class": "name", "order": 4},
"place": {"class": "name", "order": 4},
"unclass": {"class": "name", "order": 4},
"company": {"class": "name", "order": 4},
"product": {"class": "name", "order": 4},
"work": {"class": "name", "order": 4},
"masc": {"class": "name", "order": 4},
"fem": {"class": "name", "order": 4},
"person": {"class": "name", "order": 4},
"given": {"class": "name", "order": 4},
"station": {"class": "name", "order": 4},
"organization": {"class": "name", "order": 4}
}

View File

@ -50,7 +50,7 @@ function renderText(data, template) {
} }
function canAddDefinitions(definitions, modes) { function canAddDefinitions(definitions, modes) {
return invokeApiBg('canAddDefinitions', {definitions, modes}); return invokeApiBg('canAddDefinitions', {definitions, modes}).catch(() => null);
} }
function addDefinition(definition, mode) { function addDefinition(definition, mode) {

View File

@ -1,7 +1,7 @@
{ {
"manifest_version": 2, "manifest_version": 2,
"name": "Yomichan", "name": "Yomichan",
"version": "0.996", "version": "0.997",
"description": "Japanese dictionary with Anki integration", "description": "Japanese dictionary with Anki integration",
"icons": {"16": "img/icon16.png", "48": "img/icon48.png", "128": "img/icon128.png"}, "icons": {"16": "img/icon16.png", "48": "img/icon48.png", "128": "img/icon128.png"},