lib: improve jmdict ingestion, update constants
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
-- Source: http://www.edrdg.org/jmwsgi/edhelp.py
|
||||
|
||||
INSERT INTO "JMdict_InfoDialect"("id", "description") VALUES
|
||||
('bra', 'Brazilian'),
|
||||
('hob', 'Hokkaido-ben'),
|
||||
@@ -8,10 +10,11 @@ INSERT INTO "JMdict_InfoDialect"("id", "description") VALUES
|
||||
('nab', 'Nagano-ben'),
|
||||
('osb', 'Osaka-ben'),
|
||||
('rkb', 'Ryuukyuu-ben'),
|
||||
('std', 'Tokyo-ben (std)'),
|
||||
('thb', 'Touhoku-ben'),
|
||||
('tsb', 'Tosa-ben'),
|
||||
('tsug', 'Tsugaru-ben');
|
||||
|
||||
|
||||
INSERT INTO "JMdict_InfoField"("id", "description") VALUES
|
||||
('agric', 'agriculture'),
|
||||
('anat', 'anatomy'),
|
||||
@@ -25,13 +28,18 @@ INSERT INTO "JMdict_InfoField"("id", "description") VALUES
|
||||
('biochem', 'biochemistry'),
|
||||
('biol', 'biology'),
|
||||
('bot', 'botany'),
|
||||
('boxing', 'boxing'),
|
||||
('Buddh', 'Buddhism'),
|
||||
('bus', 'business'),
|
||||
('cards', 'card games'),
|
||||
('chem', 'chemistry'),
|
||||
('chmyth', 'Chinese mythology'),
|
||||
('Christn', 'Christianity'),
|
||||
('civeng', 'civil engineering'),
|
||||
('cloth', 'clothing'),
|
||||
('comp', 'computing'),
|
||||
('cryst', 'crystallography'),
|
||||
('dent', 'dentistry'),
|
||||
('ecol', 'ecology'),
|
||||
('econ', 'economics'),
|
||||
('elec', 'electricity, elec. eng.'),
|
||||
@@ -39,6 +47,8 @@ INSERT INTO "JMdict_InfoField"("id", "description") VALUES
|
||||
('embryo', 'embryology'),
|
||||
('engr', 'engineering'),
|
||||
('ent', 'entomology'),
|
||||
('figskt', 'figure skating'),
|
||||
('film', 'film'),
|
||||
('finc', 'finance'),
|
||||
('fish', 'fishing'),
|
||||
('food', 'food, cooking'),
|
||||
@@ -53,62 +63,82 @@ INSERT INTO "JMdict_InfoField"("id", "description") VALUES
|
||||
('grmyth', 'Greek mythology'),
|
||||
('hanaf', 'hanafuda'),
|
||||
('horse', 'horse racing'),
|
||||
('internet', 'Internet'),
|
||||
('jpmyth', 'Japanese mythology'),
|
||||
('kabuki', 'kabuki'),
|
||||
('law', 'law'),
|
||||
('ling', 'linguistics'),
|
||||
('logic', 'logic'),
|
||||
('MA', 'martial arts'),
|
||||
('mahj', 'mahjong'),
|
||||
('manga', 'manga'),
|
||||
('math', 'mathematics'),
|
||||
('mech', 'mechanical engineering'),
|
||||
('med', 'medicine'),
|
||||
('met', 'meteorology'),
|
||||
('mil', 'military'),
|
||||
('min', 'mineralogy'),
|
||||
('mining', 'mining'),
|
||||
('motor', 'motorsport'),
|
||||
('music', 'music'),
|
||||
('noh', 'noh (theatre)'),
|
||||
('ornith', 'ornithology'),
|
||||
('paleo', 'paleontology'),
|
||||
('pathol', 'pathology'),
|
||||
('pharm', 'pharmacy'),
|
||||
('pharm', 'pharmacology'),
|
||||
('phil', 'philosophy'),
|
||||
('photo', 'photography'),
|
||||
('physics', 'physics'),
|
||||
('physiol', 'physiology'),
|
||||
('print', 'printing'),
|
||||
('politics', 'politics'),
|
||||
('print', 'printing (press)'),
|
||||
('prowres', 'professional wrestling'),
|
||||
('psy', 'psychiatry'),
|
||||
('psyanal', 'psychoanalysis'),
|
||||
('psych', 'psychology'),
|
||||
('rail', 'railway'),
|
||||
('rommyth', 'Roman mythology'),
|
||||
('Shinto', 'Shinto'),
|
||||
('shogi', 'shogi'),
|
||||
('shogi', 'shogi (game)'),
|
||||
('ski', 'skiing'),
|
||||
('sports', 'sports'),
|
||||
('stat', 'statistics'),
|
||||
('sumo', 'sumo'),
|
||||
('stockm', 'stock market'),
|
||||
('sumo', 'sumo (wrestling)'),
|
||||
('surg', 'surgery'),
|
||||
('telec', 'telecommunications'),
|
||||
('tradem', 'trademark'),
|
||||
('tv', 'television'),
|
||||
('vet', 'veterinary terms'),
|
||||
('vidg', 'video games'),
|
||||
('zool', 'zoology');
|
||||
|
||||
INSERT INTO "JMdict_InfoKanji"("id", "description") VALUES
|
||||
('ateji', 'ateji (phonetic) reading'),
|
||||
('ik', 'word containing irregular kana usage'),
|
||||
('iK', 'word containing irregular kanji usage'),
|
||||
('ik', 'word containing irregular kana usage'),
|
||||
('io', 'irregular okurigana usage'),
|
||||
('oK', 'word containing out-dated kanji or kanji usage'),
|
||||
('rK', 'rarely-used kanji form');
|
||||
('rK', 'rarely-used kanji form'),
|
||||
('sK', 'search-only kanji form');
|
||||
|
||||
INSERT INTO "JMdict_InfoMisc"("id", "description") VALUES
|
||||
('abbr', 'abbreviation'),
|
||||
('arch', 'archaism'),
|
||||
('aphorism', 'aphorism (pithy saying)'),
|
||||
('arch', 'archaic'),
|
||||
('char', 'character'),
|
||||
('chn', 'children''s language'),
|
||||
('col', 'colloquialism'),
|
||||
('col', 'colloquial'),
|
||||
('company', 'company name'),
|
||||
('creat', 'creature'),
|
||||
('dated', 'dated term'),
|
||||
('dei', 'deity'),
|
||||
('derog', 'derogatory'),
|
||||
('doc', 'document'),
|
||||
('euph', 'euphemistic'),
|
||||
('ev', 'event'),
|
||||
('fam', 'familiar language'),
|
||||
('fem', 'female term or language'),
|
||||
('fem', 'female term, language, or name'),
|
||||
('fict', 'fiction'),
|
||||
('form', 'formal or literary term'),
|
||||
('given', 'given name or forename, gender not specified'),
|
||||
@@ -120,12 +150,11 @@ INSERT INTO "JMdict_InfoMisc"("id", "description") VALUES
|
||||
('joc', 'jocular, humorous term'),
|
||||
('leg', 'legend'),
|
||||
('m-sl', 'manga slang'),
|
||||
('male', 'male term or language'),
|
||||
('male', 'male term, language, or name'),
|
||||
('myth', 'mythology'),
|
||||
('net-sl', 'Internet slang'),
|
||||
('obj', 'object'),
|
||||
('obs', 'obsolete term'),
|
||||
('obsc', 'obscure term'),
|
||||
('on-mim', 'onomatopoeic or mimetic word'),
|
||||
('organization', 'organization name'),
|
||||
('oth', 'other'),
|
||||
@@ -136,10 +165,11 @@ INSERT INTO "JMdict_InfoMisc"("id", "description") VALUES
|
||||
('product', 'product name'),
|
||||
('proverb', 'proverb'),
|
||||
('quote', 'quotation'),
|
||||
('rare', 'rare'),
|
||||
('rare', 'rare term'),
|
||||
('relig', 'religion'),
|
||||
('sens', 'sensitive'),
|
||||
('serv', 'service'),
|
||||
('ship', 'ship name'),
|
||||
('sl', 'slang'),
|
||||
('station', 'railway station'),
|
||||
('surname', 'family or surname'),
|
||||
@@ -149,7 +179,7 @@ INSERT INTO "JMdict_InfoMisc"("id", "description") VALUES
|
||||
('work', 'work of art, literature, music, etc. name'),
|
||||
('X', 'rude or X-rated term (not displayed in educational software)'),
|
||||
('yoji', 'yojijukugo');
|
||||
|
||||
|
||||
INSERT INTO "JMdict_InfoPOS"("id", "description") VALUES
|
||||
('adj-f', 'noun or verb acting prenominally'),
|
||||
('adj-i', 'adjective (keiyoushi)'),
|
||||
@@ -238,7 +268,7 @@ INSERT INTO "JMdict_InfoPOS"("id", "description") VALUES
|
||||
('vn', 'irregular nu verb'),
|
||||
('vr', 'irregular ru verb, plain form ends with -ri'),
|
||||
('vs', 'noun or participle which takes the aux. verb suru'),
|
||||
('vs-c', 'su verb - precursor to the modern suru'),
|
||||
('vs-c', 'suru verb - precursor to the modern suru'),
|
||||
('vs-i', 'suru verb - included'),
|
||||
('vs-s', 'suru verb - special class'),
|
||||
('vt', 'transitive verb'),
|
||||
@@ -246,6 +276,16 @@ INSERT INTO "JMdict_InfoPOS"("id", "description") VALUES
|
||||
|
||||
INSERT INTO "JMdict_InfoReading"("id", "description") VALUES
|
||||
('gikun', 'gikun (meaning as reading) or jukujikun (special kanji reading)'),
|
||||
('go', 'on-yomi, go'),
|
||||
('ik', 'word containing irregular kana usage'),
|
||||
('jouyou', 'approved reading for jouyou kanji'),
|
||||
('kan', 'on-yomi, kan'),
|
||||
('kanyou', 'on-yomi, kan''you'),
|
||||
('kun', 'kun-yomi'),
|
||||
('name', 'reading used only in names (nanori)'),
|
||||
('ok', 'out-dated or obsolete kana usage'),
|
||||
('uK', 'word usually written using kanji alone');
|
||||
('on', 'on-yomi'),
|
||||
('rad', 'reading used as name of radical'),
|
||||
('rk', 'rarely used kana form'),
|
||||
('sk', 'search-only kana form'),
|
||||
('tou', 'on-yomi, tou');
|
||||
|
||||
Reference in New Issue
Block a user