Module:zh-glyph/display-phonetic

Hello, you have come here looking for the meaning of the word Module:zh-glyph/display-phonetic. In DICTIOUS you will not only get to know all the dictionary meanings for the word Module:zh-glyph/display-phonetic, but we will also tell you about its etymology, its characteristics and you will know how to say Module:zh-glyph/display-phonetic in singular and plural. Everything you need to know about the word Module:zh-glyph/display-phonetic you have here. The definition of the word Module:zh-glyph/display-phonetic will help you to be more precise and correct when speaking or writing your texts. Knowing the definition ofModule:zh-glyph/display-phonetic, as well as those of other words, enriches your vocabulary and provides you with more and better linguistic resources.
local export = {}
local m_phonetic = mw.loadData("Module:zh-glyph/phonetic")
local m_och = require("Module:och-pron").retrieve_pron

function export.show(frame)
	local phonekeys = {}
	for k in pairs(m_phonetic) do table.insert(phonekeys, k) end
	table.sort(phonekeys)
	local result = { "The table below lists all the phonetic series of ] recognised by ].\n==List==" }
	if mw.ustring.match(mw.title.getCurrentTitle().text, "2$") then
		i, j = 529, 1056
		other = "← ]"
	else
		i, j = 1, 528
		other = "→ ]"
	end
	table.insert(result, "\n'''''<center>" .. other .. "</center>'''''")
	table.insert(result, "\n{| class=\"Hani\" style=\"font-size:150%; border:1px solid #aaa\" cellpadding=\"10\"")
	k = 1
	for _, base in ipairs(phonekeys) do
		if k >= i and k <= j then
			local och = mw.text.split(m_och(base, nil, true) or "", ",")
			table.insert(result, "\n|-\n!width=17% style=\"background-color:#D1E8F0;\"|]" .. (och ~= "" and "<span class=\"IPA\" style=\"font-size:60%\"> (" .. och .. ")</span>" or "") .. "\n|style=\"background-color:#FAF9E8;\"|")
			for derivation in mw.text.gsplit(m_phonetic, "") do
				table.insert(result, " ]")
			end
		end
		k = k + 1
	end
	table.insert(result, "\n|}\n'''''<center>" .. other .. "</center>'''''")
	return table.concat(result)
end

return export