Module:User:DerekWinters/Hanunoo

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

This is a private module sandbox of DerekWinters, for their own experimentation. Items in this module may be added and removed at DerekWinters's discretion; do not rely on this module's stability.


local export = {}

local consonants = {
--consonants
	='ᜣ', ='ᜤ', ='ᜥ',
	='ᜦ', ='ᜧ', ='ᜨ', 
	='ᜩ', ='ᜪ', ='ᜫ',
	='ᜬ', ='ᜮ', ='ᜭ',
	='ᜯ', ='ᜰ', ='ᜱ',
}

local diacritics = {
--vowels
	='', ='ᜲ', ='ᜲ', ='ᜳ', ='ᜳ',
}

local tt = {

--vowels
	='ᜠ', ='ᜡ', ='ᜡ', ='ᜢ', ='ᜢ',
}

function export.tr(text, lang, sc)
	if sc ~= "Latn" then
		return nil
	end
	text = mw.ustring.gsub(text, 'ng', 'ŋ')
	text = mw.ustring.gsub(
		text,
		'()'..
		'(?)',
		function(c, d)
			if d == "" then        
				return consonants .. '᜴'
			else
				return consonants .. diacritics
			end
		end)

	text = mw.ustring.gsub(text, '.', tt)
	
	return text
end
 
return export