This module will transliterate Forest Nenets 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:syd-fne-translit/testcases.
tr(text, lang, sc)
text
written in the script specified by the code sc
, and language specified by the code lang
.nil
.local export = {}
local tab = {
="A", ="B", ="W", ="G", ="D", ="Ye", ="Yo", ="Ž", ="Z", ="Yi", ="Y", ="Ă",
="K", ="L", ="M", ="N", ="O", ="P", ="R", ="S", ="T", ="U", ="F", ="Yī",
="X", ="C", ="Ć", ="Š", ="Ś", ="ʺ", ="I", ="ʹ", ="E", ="Yu", ="Ya", ="Ŋ", ="Ł",
='a', ='b', ='w', ='g', ='d', ='ye', ='yo', ='ž', ='z', ='yi', ='y', ="ă", ="Ä",
='k', ='l', ='m', ='n', ='o', ='p', ='r', ='s', ='t', ='u', ='f', ="yī",
='x', ='c', ='ć', ='š', ='ś', ='ʺ', ='i', ='ʹ', ='e', ='yu', ='ya', ="ŋ", ="ł",
="q", ="h", ='Ū', ='ū', ="ä",
}
function export.tr(text, lang, sc)
return (mw.ustring.gsub(text, '.' ,tab))
end
return export