模組:Category tree/poscatboiler/data/symbols/sandbox


此數據子模塊定義了維基詞典分類結構的一部分。

關於poscatboiler系統的介紹以及如何添加或更改分類,請參見Module:category tree/poscatboiler/data/documentation


local labels = {}
local raw_categories = {}



-----------------------------------------------------------------------------
--                                                                         --
--                                  LABELS                                 --
--                                                                         --
-----------------------------------------------------------------------------


labels["符號"] = {
	description = "{{{langname}}} written signs.",
	umbrella_parents = "分类",
	parents = {{name = "{{{langcat}}}", raw = true}},
}

labels["附加符號"] = {
	description = "{{{langname}}} glyphs that are added to characters to modify the their sounds or meanings.",
	parents = {"符號"},
}

labels["漢字"] = {
	description = "{{{langname}}} symbols of the Han logographic script, which can represent sounds or convey meanings directly.",
	parents = {"符號"},
}

labels["字母"] = {
	description = "{{{langname}}} symbols that represent single sounds. Variations of letters, such as letters with diacritics, should also be categorized here.",
	parents = {"符號"},
}

labels["連字"] = {
	description = "{{{langname}}} letters that have been combined into a single graphical unit.",
	parents = {"符號"},
}

labels["logograms"] = {
	description = "{{{langname}}} symbols that represent objects, ideas or concepts directly.",
	umbrella_parents = "分类",
	parents = {"符號"},
}

labels["matched pairs"] = {
	description = "{{{langname}}} pairs of separate characters that are used together. Example: [[( )]].",
	parents = {"符號"},
}

labels["數字符號"] = {
	description = "{{{langname}}} symbols that represent numerals.",
	parents = {"符號"},
}

labels["標點符號"] = {
	description = "{{{langname}}} symbols that indicate structure and organization of writing.",
	parents = {"符號"},
}

labels["音節"] = {
	description = "{{{langname}}} symbols that represent groups of sounds. Variations of syllables, such as syllables with diacritics, should also be categorized here.",
	parents = {"符號"},
}


-- Add 'umbrella_parents' key if not already present.
for key, data in pairs(labels) do
	if not data.umbrella_parents then
		data.umbrella_parents = "符號子分類"
	end
end


-----------------------------------------------------------------------------
--                                                                         --
--                              RAW CATEGORIES                             --
--                                                                         --
-----------------------------------------------------------------------------


raw_categories["符號子分類"] = {
	description = "Umbrella categories covering topics related to symbols.",
	additional = "{{{umbrella_meta_msg}}}",
	parents = {
		"Umbrella metacategories",
		{name = "符號", is_label = true, sort = " "},
	},
}


return {LABELS = labels, RAW_CATEGORIES = raw_categories}