local export = {}
local m_string_utils = require("Module:string utilities")
local sub = m_string_utils.sub
local find = m_string_utils.find
local gsub = m_string_utils.gsub
local match = m_string_utils.match
local toNFD = mw.ustring.toNFD
local toNFC = mw.ustring.toNFC
local function font_consolas(text)
return '<span style=\"font-family: Consolas, monospace;\">' .. text .. '</span>'
end
local function font_ipa(text)
return '<span class=\"IPA\">/' .. text .. '/</span>'
end
local dialects = {
np = "Nyingpo",
--tc = "Tʽecieu",
}
local lmz_initial = {
= "p", = "pʰ", = "b", = "m", = "ʔm", = "f", = "v",
= "t", = "tʰ", = "d", = "n", = "ʔn", = "l", = "ʔl",
= "t͡s", = "t͡sʰ", = "d͡z", = "s", = "z",
= "t͡ʃ", = "t͡ʃʰ", = "d͡ʒ", = "ʃ", = "ʒ",
= "k", = "kʰ", = "g", = "ŋ", = "ʔŋ", = "h", = "ɦ",
= "c", = "cʰ", = "ɟ", = "ç", = "n̠ʲ", = "ɦʲ",
= "kʷ", = "kʰʷ", = "gʷ", = "hʷ", = "ɦʷ", = "ʔɦʷ",
= "",
}
--"æ" = ɛ~æ?
--nasalised vs ŋ coda?
local lmz_final = {
= "a", = "aŋ",
= "e", = "əŋ", = "ẽ",
= "i", = "iəŋ", = "ĩ", = "iɑʊ", = "iʊ", = "iʔ", = "iaʔ",
= "o", = "oŋ", = "oʔ",
= "u", = "ũ", = "ø̃",
= "ɔ", = "ɔ̃",
= "y", = "yɪŋ", = "ʏ̃",
= "ɑʊ",
= "ɛ", = "ɛ̃",
= "əʊ",
}
local function lmz_to_ipa(word)
local syllables = {}
for syllable in word:gmatch("%S+") do
table.insert(syllables, convert_syllable(syllable))
end
return table.concat(syllables, " ")
end
export = lmz_to_ipa(word)
return export
--totally unfinished