Модул:kanjitab/data
Документацију овог модула можете да направите на страници Модул:kanjitab/data/док
local yomi_info = {
["goon"] = {
keys = {"goon"},
onyomi = true,
link = "{{ja-r|呉%音|ご.%おん}}",
description = "a form of [[Додатак:Јапански речник#on'yomi|on'yomi]] introduced in the 5th and 6th centuries, based on the {{w|Jiankang}} pronunciation of Early {{w|Middle Chinese}} via the Korean peninsular",
},
["irregular"] = {
keys = {"i", "irr", "irreg", "irregular"},
display = "''irregular''",
appendix = false,
reading_category = "irregular kanji readings", -- terms read with X
kanji_category = false, -- terms spelled with kanji with X readings
},
["jūbakoyomi"] = {
keys = {"j", "ok"},
required_kanji = 2,
kanji_category = false,
link = "{{ja-r|重%箱%読み|じゅう%ばこ%よみ}}",
description = "a reading pattern for two-kanji compound terms, consisting of an an [[Додатак:Јапански речник#on'yomi|on'yomi]] for the first portion and a [[Додатак:Јапански речник#kun'yomi|kun'yomi]] for the second",
},
["jukujikun"] = {
keys = {"juku", "jukuji", "jukujikun"},
compound_reading = true,
kanji_category = false,
link = "{{ja-r|熟%字%訓|じゅく%じ%くん}}",
description = "an inseparable reading of a multi-kanji term",
},
["kan'on"] = {
keys = {"kanon"},
onyomi = true,
link = "{{ja-r|漢%音|かん%おん}}",
description = "a form of [[Додатак:Јапански речник#on'yomi|on'yomi]] introduced from the 7th to the 9th centuries, based on the {{w|Chang'an}} pronunciation of {{w|Middle Chinese}}",
},
["kan'yōon"] = {
keys = {"kan", "kanyo", "kanyoon"},
onyomi = true,
link = "{{ja-r|慣%用%音|かん%よう%おん}}",
description = "a form of [[Додатак:Јапански речник#on'yomi|on'yomi]] encompassing unconventional readings that do not show any of the expected correspondences which would qualify for one of the other kinds",
},
["kun'yomi"] = {
keys = {"k", "kun"},
link = "{{ja-r|訓%読み|くん%よみ}}",
description = "a reading which is not derived from a Chinese pronunciation",
},
["nanori"] = {
keys = {"n", "nanori"},
link = "{{ja-r|名%乗り|な%のり}}",
description = "a type of reading used for people and places",
},
["none"] = { -- blank
keys = {"", "none"},
display = "",
appendix = false,
reading_category = false,
kanji_category = false,
},
["on'yomi"] = {
keys = {"o", "on"},
onyomi = true,
link = "{{ja-r|音%読み|おん%よみ}}",
description = "a reading based on the pronunciation in the originating variety of Chinese",
},
["sōon"] = {
keys = {"soon"},
onyomi = true,
link = "{{ja-r|宋%音|そう%おん}}",
description = "a form of [[Додатак:Јапански речник#on'yomi|on'yomi]] introduced from the 12th to the 14th centuries, based on {{w|Song dynasty}} pronunciations of Late {{w|Middle Chinese}}",
},
["tōon"] = {
keys = {"toon"},
onyomi = true,
link = "{{ja-r|唐%音|とう%おん}}",
description = "a form of [[Додатак:Јапански речник#on'yomi|on'yomi]] introduced from the 14th to the 19th centuries",
},
["yutōyomi"] = {
keys = {"ko", "y", "yu"},
required_kanji = 2,
kanji_category = false,
link = "{{ja-r|湯%桶%読み|ゆ%とう%よみ}}",
description = "a reading pattern for two-kanji compound terms, consisting of a [[Додатак:Јапански речник#kun'yomi|kun'yomi]] for the first portion and an an [[Додатак:Јапански речник#on'yomi|on'yomi]] for the second",
},
}
local data = {}
for k, v in pairs(yomi_info) do
v.type = k
if v.reading_category == nil then
v.reading_category = k
end
if v.kanji_category == nil then
v.kanji_category = k
end
local keys = v.keys
v.keys = nil
for i = 1, #keys do
data[keys[i]] = v
end
data[k] = v -- Set the canonical name as an alias.
end
return data