This module will transliterate Koryak 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:kpy-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", ="V", ="G", ="D", ="Je", ="Jo", ="Ž", ="Z", ="I", ="J",
="K", ="L", ="M", ="N", ="O", ="P", ="R", ="S", ="T", ="U", ="F",
="X", ="C", ="Č", ="Š", ="Ś", ="ʺ", ="Ə", ="ʹ", ="E", ="Ju", ="Ja",
="Ŋ", ="Q",
='a', ='b', ='v', ='g', ='d', ='je', ='jo', ='ž', ='z', ='i', ='y',
='k', ='l', ='m', ='n', ='o', ='p', ='r', ='s', ='t', ='u', ='f',
='x', ='c', ='č', ='š', ='ś', ='ʺ', ='ə', ='ʹ', ='e', ='ju', ='ya',
="ŋ", ='q',
}
function export.tr(text, lang, sc)
text = mw.ustring.gsub(text, "Вʼ", "W")
text = mw.ustring.gsub(text, "вʼ", "w")
text = mw.ustring.gsub(text, "Гʼ", "H")
text = mw.ustring.gsub(text, "гʼ", "h")
return (mw.ustring.gsub(text, '.' ,tab))
end
return export