mirror of
https://github.com/ElnuDev/rust-jmdict.git
synced 2025-04-24 03:46:11 -07:00
bump JMdict to 2021-07-19
This commit is contained in:
parent
54fcf305ed
commit
ba8cfff126
5 changed files with 3004 additions and 2031 deletions
14
CHANGELOG.md
14
CHANGELOG.md
|
@ -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)
|
||||
|
||||
Initial stable release. No changes from v0.99.1.
|
||||
|
|
4980
data/entrypack.json
4980
data/entrypack.json
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(),
|
||||
entities: Some(&entities["dial"]),
|
||||
variants: vec![
|
||||
v("bra", "Brazilian"),
|
||||
v("hob", "Hokkaido"),
|
||||
v("ksb", "Kansai"),
|
||||
v("ktb", "Kantou"),
|
||||
|
@ -91,6 +92,7 @@ fn main() {
|
|||
v("expl", "Explanation"),
|
||||
v("fig", "FigurativeSpeech"),
|
||||
v("lit", "LiteralTranslation"),
|
||||
v("tm", "Trademark"),
|
||||
],
|
||||
}));
|
||||
|
||||
|
@ -105,6 +107,7 @@ fn main() {
|
|||
v("ik", "IrregularKanaUsage"),
|
||||
v("io", "IrregularOkuriganaUsage"),
|
||||
v("oK", "OutdatedKanji"),
|
||||
v("rK", "RareKanjiForm"),
|
||||
],
|
||||
}));
|
||||
|
||||
|
@ -238,18 +241,20 @@ fn main() {
|
|||
v("dated", "DatedTerm"),
|
||||
v("dei", "Deity"),
|
||||
v("derog", "Derogatory"),
|
||||
v("doc", "Document"),
|
||||
v("ev", "Event"),
|
||||
v("fam", "FamiliarLanguage"),
|
||||
v("fem", "FemaleTermOrLanguage"),
|
||||
v("fict", "Fiction"),
|
||||
v("form", "FormalOrLiteraryTerm"),
|
||||
v("given", "GivenName"),
|
||||
v("group", "Group"),
|
||||
v("hist", "HistoricalTerm"),
|
||||
v("hon", "HonorificLanguage"),
|
||||
v("hum", "HumbleLanguage"),
|
||||
v("id", "IdiomaticExpression"),
|
||||
v("joc", "JocularTerm"),
|
||||
v("leg", "Legend"),
|
||||
v("litf", "LiteraryOrFormalTerm"),
|
||||
v("m-sl", "MangaSlang"),
|
||||
v("male", "MaleTermOrLanguage"),
|
||||
v("myth", "Mythology"),
|
||||
|
@ -306,6 +311,7 @@ fn main() {
|
|||
v("bot", "Botany"),
|
||||
v("bus", "Business"),
|
||||
v("chem", "Chemistry"),
|
||||
v("cloth", "Clothing"),
|
||||
v("comp", "Computing"),
|
||||
v("cryst", "Crystallography"),
|
||||
v("ecol", "Ecology"),
|
||||
|
@ -348,7 +354,9 @@ fn main() {
|
|||
v("physics", "Physics"),
|
||||
v("physiol", "Physiology"),
|
||||
v("print", "Printing"),
|
||||
v("psy", "Psychiatry"),
|
||||
v("psych", "Psychology"),
|
||||
v("rail", "Railway"),
|
||||
v("shogi", "Shogi"),
|
||||
v("sports", "Sports"),
|
||||
v("stat", "Statistics"),
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
{
|
||||
"dial": {
|
||||
"bra": "Brazilian",
|
||||
"hob": "Hokkaido-ben",
|
||||
"ksb": "Kansai-ben",
|
||||
"ktb": "Kantou-ben",
|
||||
|
@ -20,10 +21,10 @@
|
|||
"agric": "agriculture",
|
||||
"anat": "anatomy",
|
||||
"archeol": "archeology",
|
||||
"archit": "architecture, building",
|
||||
"archit": "architecture",
|
||||
"art": "art, aesthetics",
|
||||
"astron": "astronomy",
|
||||
"audvid": "audio-visual",
|
||||
"audvid": "audiovisual",
|
||||
"aviat": "aviation",
|
||||
"baseb": "baseball",
|
||||
"biochem": "biochemistry",
|
||||
|
@ -31,6 +32,7 @@
|
|||
"bot": "botany",
|
||||
"bus": "business",
|
||||
"chem": "chemistry",
|
||||
"cloth": "clothing",
|
||||
"comp": "computing",
|
||||
"cryst": "crystallography",
|
||||
"ecol": "ecology",
|
||||
|
@ -53,7 +55,7 @@
|
|||
"gramm": "grammar",
|
||||
"grmyth": "Greek mythology",
|
||||
"hanaf": "hanafuda",
|
||||
"horse": "horse-racing",
|
||||
"horse": "horse racing",
|
||||
"law": "law",
|
||||
"ling": "linguistics",
|
||||
"logic": "logic",
|
||||
|
@ -61,7 +63,7 @@
|
|||
"math": "mathematics",
|
||||
"mech": "mechanical engineering",
|
||||
"med": "medicine",
|
||||
"met": "climate, weather",
|
||||
"met": "meteorology",
|
||||
"mil": "military",
|
||||
"music": "music",
|
||||
"ornith": "ornithology",
|
||||
|
@ -73,14 +75,16 @@
|
|||
"physics": "physics",
|
||||
"physiol": "physiology",
|
||||
"print": "printing",
|
||||
"psych": "psychology, psychiatry",
|
||||
"psy": "psychiatry",
|
||||
"psych": "psychology",
|
||||
"rail": "railway",
|
||||
"shogi": "shogi",
|
||||
"sports": "sports",
|
||||
"stat": "statistics",
|
||||
"sumo": "sumo",
|
||||
"telec": "telecommunications",
|
||||
"tradem": "trademark",
|
||||
"vidg": "video game",
|
||||
"vidg": "video games",
|
||||
"zool": "zoology"
|
||||
},
|
||||
"ke_inf": {
|
||||
|
@ -88,7 +92,8 @@
|
|||
"iK": "word containing irregular kanji usage",
|
||||
"ik": "word containing irregular kana 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": {
|
||||
"X": "rude or X-rated term (not displayed in educational software)",
|
||||
|
@ -102,18 +107,20 @@
|
|||
"dated": "dated term",
|
||||
"dei": "deity",
|
||||
"derog": "derogatory",
|
||||
"doc": "document",
|
||||
"ev": "event",
|
||||
"fam": "familiar language",
|
||||
"fem": "female term or language",
|
||||
"fict": "fiction",
|
||||
"form": "formal or literary term",
|
||||
"given": "given name or forename, gender not specified",
|
||||
"group": "group",
|
||||
"hist": "historical term",
|
||||
"hon": "honorific or respectful (sonkeigo) language",
|
||||
"hum": "humble (kenjougo) language",
|
||||
"id": "idiomatic expression",
|
||||
"joc": "jocular, humorous term",
|
||||
"leg": "legend",
|
||||
"litf": "literary or formal term",
|
||||
"m-sl": "manga slang",
|
||||
"male": "male term or language",
|
||||
"myth": "mythology",
|
||||
|
|
|
@ -7,9 +7,9 @@
|
|||
use hex_literal::hex;
|
||||
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] =
|
||||
hex!("9b92671745758a07528a7b9a057c9d4726709b539707786bd281179fd3a4eac3");
|
||||
hex!("6d539f6b1841c213815ec9daa89bf9e5c1046e627f96db50ce800e995c1ca9ca");
|
||||
|
||||
pub struct EntryPack {
|
||||
pub path: PathBuf,
|
||||
|
|
Loading…
Add table
Reference in a new issue