Module:sva-translit
Get Module:sva-translit essential facts below. View Videos or join the Module:sva-translit discussion. Add Module:sva-translit to your PopFlock.com topic list for future reference or share this resource on social media.
Module:sva-translit

This module will transliterate Svan language text per WT:SVA TR.

The module should preferably not be called directly from templates or other modules. To use it from a template, use {{xlit}}. Within a module, use Module:languages#Language:transliterate.

For testcases, see Module:sva-translit/testcases.

Functions

tr(text, lang, sc)
Transliterates a given piece of text written in the script specified by the code sc, and language specified by the code lang. When the transliteration fails, returns nil.

local export = {}
	-- Keep synchronized with [[Module:Geor-translit]]
local tt = {
	["?"]="a", ["?"]="a", ["?"]="b", ["?"]="b", ["?"]="g", ["?"]="g", ["?"]="d", ["?"]="d", ["?"]="e", ["?"]="v", ["?"]="v", ["?"]="z", ["?"]="?",
	["?"]="t", ["?"]="t", ["?"]="i", ["?"]="i", ["?"]="?", ["?"]="?", ["?"]="l", ["?"]="l", ["?"]="m", ["?"]="n", ["?"]="n", ["?"]="y", ["?"]="o",
	["?"]="?", ["?"]="?", ["?"]="?", ["?"]="?", ["?"]="r", ["?"]="r", ["?"]="s", ["?"]="?", ["?"]="w", ["?"]="u", ["?"]="u",["?"]="p", ["?"]="p",
	["?"]="k", ["?"]="k", ["?"]="?", ["?"]="?", ["?"]="q?", ["?"]="?", ["?"]="?", ["?"]="?", ["?"]="?", ["?"]="c",
	["?"]="?", ["?"]="c?", ["?"]="", ["?"]="", ["?"]="x", ["?"]="x", ["?"]="q", ["?"]="?", ["?"]="h", ["?"]="?", ["?"]="f", ["?"]="?", ["?"]="?", ["?"]="?"
};

function export.tr(text)
	text = mw.ustring.gsub(text, '', 'ü')
	text = mw.ustring.gsub(text, '', 'ö')
	text = mw.ustring.gsub(text, '', 'ä')
	text = mw.ustring.gsub(text, '.', tt)
	
	return text
end

return export

  This article uses material from the Wikipedia page available here. It is released under the Creative Commons Attribution-Share-Alike License 3.0.

Module:sva-translit
 



 



 
Music Scenes