This module will transliterate Primitive Irish 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:pgl-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 chars = {
= " ",
= ".",
= "b", -- beith
= "l", -- luis
= "v", -- fearn
= "s", -- saille
= "n", -- nuin
= "h", -- uath
= "d", -- dair
= "t", -- tinne
= "c", -- coll
= "q", -- ceirt
= "m", -- muin
= "g", -- gort
= "ŋ", -- ngétal
= "z", -- straif
= "r", -- ruis
= "a", -- ailm
= "o", -- onn
= "u", -- úr
= "e", -- edad
= "i", -- idad
= "k", -- Or "ea"
= "oi",
= "ui",
= "p", -- Or "ia"
= "x", -- Or "ae"
= "p", -- peithboc "soft B"
= "",
= "",
}
function export.tr(text, lang, sc)
return (mw.ustring.gsub(text, '.', chars))
end
return export