Module:ett-pronunciation

From Wiktionary, the free dictionary
Jump to navigation Jump to search


local export = {}

local rsubn = mw.ustring.gsub

local m_a = require("Module:accent_qualifier")
local m_IPA = require("Module:IPA")

local lang_ett = require("Module:languages").getByCode("ett")

function export.show(frame)
    local args = frame:getParent().args

    local p, results_ett = {}

    if args[1] then
        for index, item in ipairs(args) do
            table.insert(p, (item ~= "") and item or nil)
        end
    end

    for _, word in ipairs(p) do
        table.insert(results_ett,
                     {pron = "/" .. export.ett_IPA(word) .. "/"})
    end

    local final_output = ""
end
local consonants = {
    ['b'] = 'b', ['c'] = 'k', ['v'] = 'w', ['z'] = 'tˢ', ['h'] = 'h', ['ϑ'] = 'tʼ', ['k'] = 'k', ['l'] = 'l', 
    ['m'] = 'm', ['n'] = 'n', ['p'] = 'p', ['σ'] = 'ss',  ['q'] = 'k', ['r'] = 'r', ['s'] = 's', ['t'] = 't', ['φ'] = 'pʼ', 
    ['vh'] = 'f'
}

local vowels = {
    ['a'] = 'a',
    ['e'] = 'e',
    ['i'] = 'i',
    ['u'] = 'u',
}

return export