Modül:ug-alfabeçeviri

Merhaba, buraya Modül:ug-alfabeçeviri kelimesinin anlamını aramaya geldiniz. DICTIOUS'da Modül:ug-alfabeçeviri kelimesinin tüm sözlük anlamlarını bulmakla kalmayacak, aynı zamanda etimolojisini, özelliklerini ve Modül:ug-alfabeçeviri kelimesinin tekil ve çoğul olarak nasıl söylendiğini de öğreneceksiniz. Modül:ug-alfabeçeviri kelimesi hakkında bilmeniz gereken her şey burada. Modül:ug-alfabeçeviri kelimesinin tanımı, konuşurken veya metinlerinizi yazarken daha kesin ve doğru olmanıza yardımcı olacaktır. XXX'in ve diğer kelimelerin tanımını bilmek, kelime dağarcığınızı zenginleştirir ve size daha fazla ve daha iyi dilsel kaynaklar sağlar.
Modül belgelemesi


local export = {}

local data = {}

data = {
	-- consonants
	 = "m",   = "n",   = "d",   = "t",
	 = "b",   = "p",   = "f",   = "q",
	 = "k",   = "ng",  = "g",   = "gh",
	 = "h",   = "x",   = "ch",
	 = "j",  = "zh",  = "z",   = "s",
	 = "sh",  = "r",   = "l",   = "'",
	 = "y",   = "w",
	-- vowels
	 = "a",  = "e",  = "ë",  = "i",
	 = "o",  = "ö",  = "u",  = "ü",
	-- punctuation
	="?",
	=",",
	=";",
	="-"
}

data = {
	 = "A",  = "B",  = "W",  = "G",  = "Gh",  = "D",  = "Ë",  = "E",  = "Zh",  = "J",
	 = "Z",  = "I",  = "Y",  = "K",  = "Q",  = "L",  = "M",  = "N",  = "Ng",  = "O",
	 = "Ö",  = "P",  = "R",  = "S",  = "T",  = "U",  = "Ü",  = "F",  = "X",  = "H",
	 = "Ch",  = "Sh",  = "Yu",  = "Ya",
	 = "É",
	 = "a",  = "b",  = "w",  = "g",  = "gh",  = "d",  = "ë",  = "e",  = "zh",  = "j",
	 = "z",  = "i",  = "y",  = "k",  = "q",  = "l",  = "m",  = "n",  = "ng",  = "o",
	 = "ö",  = "p",  = "r",  = "s",  = "t",  = "u",  = "ü",  = "f",  = "x",  = "h",
	 = "ch",  = "sh",  = "yu",  = "ya",
	 = "é",
}


function export.tr(text, lang, sc)
	if not data then
		return nil
	end
	
	-- remove initial hamza
	text = mw.ustring.gsub(text, "^\216\166(.)", "%1")
	text = mw.ustring.gsub(text, "%s\216\166(.)", " %1")
	
	-- add apostrophe in some cases
	text = mw.ustring.gsub(text, "()()()", "%1'%2%3") -- V'ngV
	text = mw.ustring.gsub(text, "()()", "%1'%2") -- n'g & n'gh
	text = mw.ustring.gsub(text, "()()", "%1'%2") -- ng'h
	text = mw.ustring.gsub(text, "()()", "%1'%2") -- z'h

	-- transliterate letters one to one
	text = mw.ustring.gsub(text, ".", data)

	return text
end

return export