Definition from Wiktionary, the free dictionary
Jump to: navigation, search

This module will transliterate Inuktitut language text.

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:iu-translit/testcases.


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

local export = {}

function, lang, sc)
	text = require("Module:Cans-translit").tr(text, lang, sc)
	text = mw.ustring.gsub(text,"ī","ii")
	text = mw.ustring.gsub(text,"ō","uu")
	text = mw.ustring.gsub(text,"ā","aa")
	text = mw.ustring.gsub(text,"š","sh")
	text = mw.ustring.gsub(text,"ð","th")
	text = mw.ustring.gsub(text,"e","ai")
	text = mw.ustring.gsub(text,"o","u")
	text = mw.ustring.gsub(text,"y","j")
	text = mw.ustring.gsub(text,"f","v")
	text = mw.ustring.gsub(text,"c","g")
	return text

return export