Module:kanjitab/data

local yomi_info = { ["goon"] = { keys = {"goon"}, onyomi = true, link = "", description = "a form of on'yomi introduced in the 5th and 6th centuries, based on the pronunciation of Early  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 = "", description = "a reading pattern for two-kanji compound terms, consisting of an an on'yomi for the first portion and a kun'yomi for the second", },	["jukujikun"] = { keys = {"juku", "jukuji", "jukujikun"}, compound_reading = true, kanji_category = false, link = "", description = "an inseparable reading of a multi-kanji term", },	["kan'on"] = { keys = {"kanon"}, onyomi = true, link = "", description = "a form of on'yomi introduced from the 7th to the 9th centuries, based on the pronunciation of ", },	["kan'yōon"] = { keys = {"kan", "kanyo", "kanyoon"}, onyomi = true, link = "", description = "a form of 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 = "", description = "a reading which is not derived from a Chinese pronunciation", },	["nanori"] = { keys = {"n", "nanori"}, link = "", 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 = "", description = "a reading based on the pronunciation in the originating variety of Chinese", },	["sōon"] = { keys = {"soon"}, onyomi = true, link = "", description = "a form of on'yomi introduced from the 12th to the 14th centuries, based on pronunciations of Late ", },	["tōon"] = { keys = {"toon"}, onyomi = true, link = "", description = "a form of on'yomi introduced from the 14th to the 19th centuries", },	["yutōyomi"] = { keys = {"ko", "y", "yu"}, required_kanji = 2, kanji_category = false, link = "", description = "a reading pattern for two-kanji compound terms, consisting of a kun'yomi for the first portion and an an 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