Module:User:Wyang/yue-check-pron

Hello, you have come here looking for the meaning of the word Module:User:Wyang/yue-check-pron. In DICTIOUS you will not only get to know all the dictionary meanings for the word Module:User:Wyang/yue-check-pron, but we will also tell you about its etymology, its characteristics and you will know how to say Module:User:Wyang/yue-check-pron in singular and plural. Everything you need to know about the word Module:User:Wyang/yue-check-pron you have here. The definition of the word Module:User:Wyang/yue-check-pron will help you to be more precise and correct when speaking or writing your texts. Knowing the definition ofModule:User:Wyang/yue-check-pron, as well as those of other words, enriches your vocabulary and provides you with more and better linguistic resources.


local export = {}
local md = require("Module:User:Wyang/yue-monosyllabic").data
local pd = require("Module:User:Wyang/yue-polysyllabic").data

local function format_han(text, nolink) return '<span class="Hani" lang="zh" style="font-size:150%">' .. (nolink and text or ']') .. '</span>' end

function export.make(data)
	local result = {}
	for word, readings in pairs(pd) do
		i = 0
		reading = mw.text.split(readings, " ")
		for ch in mw.text.gsplit(word, "") do
			if not mw.ustring.find(ch, "") then
				i = i + 1
				if not reading then
					table.insert(result, "* unequal # of characters and Jyutping syllables in " ..
						format_han(word) .. " (''" .. readings .. "'')")
				else
					local ref = md
					if ref and not ref] then
						local temp = {}
						for chr, _ in pairs(ref) do
							table.insert(temp, chr)
						end
						table.insert(result, "* " .. format_han(ch, true) .. " (''" .. reading .. "'') in " .. 
							format_han(word) .. " (''" .. readings .. "'') not found in " .. 
							format_han(ch) .. " (''" .. table.concat(temp, ", ") .. "'')")
					end
				end
			end
		end
	end
	table.sort(result)
	return table.concat(result, "\n")
end

return export