file management

This commit is contained in:
Alex Yatskov 2016-12-23 16:25:14 -08:00
parent 74cd35093d
commit 09b2db4fdf
8 changed files with 6 additions and 5934 deletions

4
.gitattributes vendored
View File

@ -1,4 +0,0 @@
ext/bg/data/edict/*.json filter=lfs diff=lfs merge=lfs -text
ext/bg/data/enamdict/*.json filter=lfs diff=lfs merge=lfs -text
ext/bg/data/kanjidic/*.json filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text

3
.gitmodules vendored Normal file
View File

@ -0,0 +1,3 @@
[submodule "ext/bg/lang/data"]
path = ext/bg/lang/data
url = https://FooSoft@bitbucket.org/FooSoft/yomichan-data.git

File diff suppressed because it is too large Load Diff

View File

@ -1,33 +0,0 @@
{
"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

@ -264,7 +264,7 @@ function onDictionarySetUrl(e) {
if (url.includes('/')) {
dictUrl.val(url);
} else {
dictUrl.val(chrome.extension.getURL(`bg/data/${url}/index.json`));
dictUrl.val(chrome.extension.getURL(`bg/lang/data/${url}/index.json`));
}
dictUrl.trigger('input');

View File

@ -31,7 +31,7 @@ class Translator {
}
const promises = [
loadJsonInt('bg/data/deinflect.json'),
loadJsonInt('bg/lang/deinflect.json'),
this.database.prepare()
];

1
ext/bg/lang/data Submodule

@ -0,0 +1 @@
Subproject commit a33d050c508450fd2f1f8b68cfe7abe44cba72c0