Модул:category tree/poscatboiler/data/symbols

Script error: The function "main" does not exist.

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 their sounds or meanings.",
	parents = {"симболи"},
}

labels["Хан карактери"] = {
	description = "{{{langname}}} symbols of the Han logographic script, which can represent sounds or convey meanings directly.",
	topright = "{{wp|Chinese characters}}",
	parents = {"logograms"},
}

labels["ideograms"] = {
	description = "{{{langname}}} symbols that represent objects, ideas or concepts directly.",
	umbrella_parents = "Почетак",
	parents = {"симболи"},
}

labels["iteration marks"] = {
	description = "{{{langname}}} glyphs that act as a shorthand for repeated text.",
	parents = {"abbreviations", "симболи"},
}

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 single words or morphemes.",
	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 = {"симболи"},
}

labels["multigraphs"] = {
	description = "{{{langname}}} symbols consisting of multiple letters.",
	parents = {"симболи"},
}

local function multigraph(name, n)
	labels[name] = {
		description = "{{{langname}}} symbols consisting of " .. n .. " letters.",
		parents = {"multigraphs"},
	}
end

multigraph("digraphs", "два")
multigraph("trigraphs", "три")
multigraph("tetragraphs", "четири")
multigraph("pentagraphs", "пет")
multigraph("hexagraphs", "шест")
multigraph("heptagraphs", "седам")
multigraph("octagraphs", "осам")

-- 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 = {
		"Кишобран метакатегорија",
		{name = "симболи", is_label = true, sort = " "},
	},
}


return {LABELS = labels, RAW_CATEGORIES = raw_categories}