Module:User:Victar:Phlv-translit

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

Language code in page name (User:Victar:Phlv) not recognized.


local export = {}

local U = mw.ustring.char

local gdy_pattern = "" .. U(0x10BB2)

local gdy_map = {
	 = "g", -- gimel-daleth-yodh with two dots above
	 = "d", -- gimel-daleth-yodh with hat above
	 = "y", -- gimel-daleth-yodh with two dots below
	 = "j", -- gimel-daleth-yodh with dot below
}

local tt = {
	 = "ʾ", -- aleph-het
	 = "b", -- beth
	 = "?", -- gimel-daleth-yodh (Should have been transliterated)
	 = "ḍ", -- old daleth
	 = "h", -- he
	 = "'", -- waw-nun-ayin-resh
	 = "z", -- zayin
	 = "k", -- kaph
	 = "k", -- old kaph
	 = "l", -- lamedh
	 = "ƚ", -- old lamedh
	 = "ḷ", -- l-lamedh
	 = "m", -- mem-qoph
	 = "s", -- samekh
	 = "p", -- pe
	 = "c", -- sadhe
	 = "š", -- shin
	 = "t", -- taw
	 = "yt", -- x1
	 = "ty", -- x2
	 = "", -- I
	 = "", -- ahriman
}

function export.tr(text, lang, sc)
	-- If the script is not Phlv, do not transliterate
	if sc ~= "Phlv" then
		return
	end
	
	text = mw.ustring.gsub(text, gdy_pattern, gdy_map)
	
	-- Category to catch automatic transcriptions of waw-ayin-resh and mem-qoph
	-- ]
	local ambig_note = ""
	if mw.ustring.match(text, "") then
		ambig_note = "]"
	end
	
	-- Transliterate characters
	text = mw.ustring.gsub(text, '.', tt)
	
	return text
end

return export