bump JMdict to 2021-07-19

main
Stefan Majewsky 3 years ago
parent 54fcf305ed
commit ba8cfff126

@ -1,3 +1,17 @@
# v2.0.0 (TBD)
JMdict was updated to 2021-09-17. This requires the following changes in enum variants:
- added `Dialect::Brazilian`
- added `GlossType::Trademark`
- added `KanjiInfo::RareKanjiForm`
- added `SenseInfo::Document`
- added `SenseInfo::Group`
- renamed `SenseInfo::{LiteraryOrFormalTerm => FormalOrLiteraryTerm}`
- added `SenseTopic::Clothing`
- added `SenseTopic::Psychiatry`
- added `SenseTopic::Railway`
# v1.0.0 (2021-04-18) # v1.0.0 (2021-04-18)
Initial stable release. No changes from v0.99.1. Initial stable release. No changes from v0.99.1.

File diff suppressed because one or more lines are too long

@ -49,6 +49,7 @@ fn main() {
doc: "Dialect of Japanese in which a certain vocabulary occurs.".into(), doc: "Dialect of Japanese in which a certain vocabulary occurs.".into(),
entities: Some(&entities["dial"]), entities: Some(&entities["dial"]),
variants: vec![ variants: vec![
v("bra", "Brazilian"),
v("hob", "Hokkaido"), v("hob", "Hokkaido"),
v("ksb", "Kansai"), v("ksb", "Kansai"),
v("ktb", "Kantou"), v("ktb", "Kantou"),
@ -91,6 +92,7 @@ fn main() {
v("expl", "Explanation"), v("expl", "Explanation"),
v("fig", "FigurativeSpeech"), v("fig", "FigurativeSpeech"),
v("lit", "LiteralTranslation"), v("lit", "LiteralTranslation"),
v("tm", "Trademark"),
], ],
})); }));
@ -105,6 +107,7 @@ fn main() {
v("ik", "IrregularKanaUsage"), v("ik", "IrregularKanaUsage"),
v("io", "IrregularOkuriganaUsage"), v("io", "IrregularOkuriganaUsage"),
v("oK", "OutdatedKanji"), v("oK", "OutdatedKanji"),
v("rK", "RareKanjiForm"),
], ],
})); }));
@ -238,18 +241,20 @@ fn main() {
v("dated", "DatedTerm"), v("dated", "DatedTerm"),
v("dei", "Deity"), v("dei", "Deity"),
v("derog", "Derogatory"), v("derog", "Derogatory"),
v("doc", "Document"),
v("ev", "Event"), v("ev", "Event"),
v("fam", "FamiliarLanguage"), v("fam", "FamiliarLanguage"),
v("fem", "FemaleTermOrLanguage"), v("fem", "FemaleTermOrLanguage"),
v("fict", "Fiction"), v("fict", "Fiction"),
v("form", "FormalOrLiteraryTerm"),
v("given", "GivenName"), v("given", "GivenName"),
v("group", "Group"),
v("hist", "HistoricalTerm"), v("hist", "HistoricalTerm"),
v("hon", "HonorificLanguage"), v("hon", "HonorificLanguage"),
v("hum", "HumbleLanguage"), v("hum", "HumbleLanguage"),
v("id", "IdiomaticExpression"), v("id", "IdiomaticExpression"),
v("joc", "JocularTerm"), v("joc", "JocularTerm"),
v("leg", "Legend"), v("leg", "Legend"),
v("litf", "LiteraryOrFormalTerm"),
v("m-sl", "MangaSlang"), v("m-sl", "MangaSlang"),
v("male", "MaleTermOrLanguage"), v("male", "MaleTermOrLanguage"),
v("myth", "Mythology"), v("myth", "Mythology"),
@ -306,6 +311,7 @@ fn main() {
v("bot", "Botany"), v("bot", "Botany"),
v("bus", "Business"), v("bus", "Business"),
v("chem", "Chemistry"), v("chem", "Chemistry"),
v("cloth", "Clothing"),
v("comp", "Computing"), v("comp", "Computing"),
v("cryst", "Crystallography"), v("cryst", "Crystallography"),
v("ecol", "Ecology"), v("ecol", "Ecology"),
@ -348,7 +354,9 @@ fn main() {
v("physics", "Physics"), v("physics", "Physics"),
v("physiol", "Physiology"), v("physiol", "Physiology"),
v("print", "Printing"), v("print", "Printing"),
v("psy", "Psychiatry"),
v("psych", "Psychology"), v("psych", "Psychology"),
v("rail", "Railway"),
v("shogi", "Shogi"), v("shogi", "Shogi"),
v("sports", "Sports"), v("sports", "Sports"),
v("stat", "Statistics"), v("stat", "Statistics"),

@ -1,5 +1,6 @@
{ {
"dial": { "dial": {
"bra": "Brazilian",
"hob": "Hokkaido-ben", "hob": "Hokkaido-ben",
"ksb": "Kansai-ben", "ksb": "Kansai-ben",
"ktb": "Kantou-ben", "ktb": "Kantou-ben",
@ -20,10 +21,10 @@
"agric": "agriculture", "agric": "agriculture",
"anat": "anatomy", "anat": "anatomy",
"archeol": "archeology", "archeol": "archeology",
"archit": "architecture, building", "archit": "architecture",
"art": "art, aesthetics", "art": "art, aesthetics",
"astron": "astronomy", "astron": "astronomy",
"audvid": "audio-visual", "audvid": "audiovisual",
"aviat": "aviation", "aviat": "aviation",
"baseb": "baseball", "baseb": "baseball",
"biochem": "biochemistry", "biochem": "biochemistry",
@ -31,6 +32,7 @@
"bot": "botany", "bot": "botany",
"bus": "business", "bus": "business",
"chem": "chemistry", "chem": "chemistry",
"cloth": "clothing",
"comp": "computing", "comp": "computing",
"cryst": "crystallography", "cryst": "crystallography",
"ecol": "ecology", "ecol": "ecology",
@ -53,7 +55,7 @@
"gramm": "grammar", "gramm": "grammar",
"grmyth": "Greek mythology", "grmyth": "Greek mythology",
"hanaf": "hanafuda", "hanaf": "hanafuda",
"horse": "horse-racing", "horse": "horse racing",
"law": "law", "law": "law",
"ling": "linguistics", "ling": "linguistics",
"logic": "logic", "logic": "logic",
@ -61,7 +63,7 @@
"math": "mathematics", "math": "mathematics",
"mech": "mechanical engineering", "mech": "mechanical engineering",
"med": "medicine", "med": "medicine",
"met": "climate, weather", "met": "meteorology",
"mil": "military", "mil": "military",
"music": "music", "music": "music",
"ornith": "ornithology", "ornith": "ornithology",
@ -73,14 +75,16 @@
"physics": "physics", "physics": "physics",
"physiol": "physiology", "physiol": "physiology",
"print": "printing", "print": "printing",
"psych": "psychology, psychiatry", "psy": "psychiatry",
"psych": "psychology",
"rail": "railway",
"shogi": "shogi", "shogi": "shogi",
"sports": "sports", "sports": "sports",
"stat": "statistics", "stat": "statistics",
"sumo": "sumo", "sumo": "sumo",
"telec": "telecommunications", "telec": "telecommunications",
"tradem": "trademark", "tradem": "trademark",
"vidg": "video game", "vidg": "video games",
"zool": "zoology" "zool": "zoology"
}, },
"ke_inf": { "ke_inf": {
@ -88,7 +92,8 @@
"iK": "word containing irregular kanji usage", "iK": "word containing irregular kanji usage",
"ik": "word containing irregular kana usage", "ik": "word containing irregular kana usage",
"io": "irregular okurigana usage", "io": "irregular okurigana usage",
"oK": "word containing out-dated kanji" "oK": "word containing out-dated kanji or kanji usage",
"rK": "rarely-used kanji form"
}, },
"misc": { "misc": {
"X": "rude or X-rated term (not displayed in educational software)", "X": "rude or X-rated term (not displayed in educational software)",
@ -102,18 +107,20 @@
"dated": "dated term", "dated": "dated term",
"dei": "deity", "dei": "deity",
"derog": "derogatory", "derog": "derogatory",
"doc": "document",
"ev": "event", "ev": "event",
"fam": "familiar language", "fam": "familiar language",
"fem": "female term or language", "fem": "female term or language",
"fict": "fiction", "fict": "fiction",
"form": "formal or literary term",
"given": "given name or forename, gender not specified", "given": "given name or forename, gender not specified",
"group": "group",
"hist": "historical term", "hist": "historical term",
"hon": "honorific or respectful (sonkeigo) language", "hon": "honorific or respectful (sonkeigo) language",
"hum": "humble (kenjougo) language", "hum": "humble (kenjougo) language",
"id": "idiomatic expression", "id": "idiomatic expression",
"joc": "jocular, humorous term", "joc": "jocular, humorous term",
"leg": "legend", "leg": "legend",
"litf": "literary or formal term",
"m-sl": "manga slang", "m-sl": "manga slang",
"male": "male term or language", "male": "male term or language",
"myth": "mythology", "myth": "mythology",

@ -7,9 +7,9 @@
use hex_literal::hex; use hex_literal::hex;
use std::path::PathBuf; use std::path::PathBuf;
const ENTRYPACK_URL: &str = "https://dl.xyrillian.de/jmdict/entrypack-v1-2021-04-13.json.gz"; const ENTRYPACK_URL: &str = "https://dl.xyrillian.de/jmdict/entrypack-v1-2021-07-19.json.gz";
const ENTRYPACK_SHA256SUM: [u8; 32] = const ENTRYPACK_SHA256SUM: [u8; 32] =
hex!("9b92671745758a07528a7b9a057c9d4726709b539707786bd281179fd3a4eac3"); hex!("6d539f6b1841c213815ec9daa89bf9e5c1046e627f96db50ce800e995c1ca9ca");
pub struct EntryPack { pub struct EntryPack {
pub path: PathBuf, pub path: PathBuf,

Loading…
Cancel
Save