Module:yue-IPA

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


export = {}

function export.yueIPA(frame)
	local params = {
		 = {},
		 = {}, --this param is ignored
		 = {},
		 = { alias_of = 'audio' },
		 = {},
		 = {},
	}
	
	local args = require("Module:parameters").process(frame:getParent().args, params)
	
	local yue_pron = require("Module:yue-pron")
	local m_a = require("Module:accent qualifier")
	local m_IPA = require("Module:IPA")
	local lang = require("Module:languages").getByCode("yue")

	if args then require("Module:debug").track("yue-IPA/multiple-args") end
	
	local rom = args
	local audio = args.audio or ''
	local loc = args.loc or ']'
	local cx = args.cx or ''
	if audio ~= '' then
		audio = audio=='y' and 'yue-'..rom..'.ogg' or audio
		audio = [=[
** {{audio|lang=yue|]=]..audio..'}}'
	end

	return '* '..m_a.format_qualifiers(lang, {"]", loc, cx})..[=[ 
** '']'': <span style="font-family:monospace">]=]..rom..[=[</span>
** '']'': <span style="font-family:monospace">]=]..yue_pron.jyutping_to_yale(rom)..[=[</span>
** ]=]..m_IPA.format_IPA_full { lang = lang, items = {{pron="/"..yue_pron.jyutping_to_ipa(rom).."/"}} }
..audio
end

return export