Module:User:Awesomemeeos/serbiacroatia

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

This is a private module sandbox of Awesomemeeos, for their own experimentation. Items in this module may be added and removed at Awesomemeeos's discretion; do not rely on this module's stability.


local export = {}

function export.pronunciation(word, accent)
	if type(word) == "table" then
		word, accent =
			word.args[1] or word:getParent().args[1],
			word.args.accent or word:getParent().args.accent
    end
    if not word or (word == "") then
        error("Please put the word as the first postional parameter!")
    end
    word = mw.ustring.lower(word)

local m_IPA = require("Module:IPA")
local lang = require("Module:languages").getByCode("sh")

local letters_phonemes = {
	["a"] = "a", ["а"] = "a",
	["e"] = "e", ["е"] = "e",
	["i"] = "i", ["и"] = "i",
	["o"] = "o", ["о"] = "o",
	["u"] = "u", ["у"] = "u",
	
	["b"] = "b", ["б"] = "b",
	["v"] = "ʋ", ["в"] = "ʋ",
	["g"] = "ɡ", ["г"] = "ɡ",
	["d"] = "d", ["д"] = "d",
	["đ"] = "d͡ʑ", ["ђ"] = "d͡ʑ",
	["ž"] = "ʒ", ["ж"] = "ʒ",
	["z"] = "z", ["з"] = "z",
	["j"] = "j", ["ј"] = "j",
	["k"] = "k", ["к"] = "k",
	["l"] = "l", ["л"] = "l",
	["lj"] = "ʎ", ["љ"] = "ʎ",
	["m"] = "m", ["м"] = "m",
	["n"] = "n", ["н"] = "n",
	["nj"] = "ɲ", ["њ"] = "ɲ",
	["p"] = "p", ["п"] = "p",
	["r"] = "r", ["р"] = "r",
	["s"] = "s", ["с"] = "s",
	["t"] = "t", ["т"] = "t",
	["ć"] = "t͡ɕ", ["ћ"] = "t͡ɕ",
	["f"] = "f", ["ф"] = "f",
	["h"] = "x", ["х"] = "x",
	["c"] = "t͡s", ["ц"] = "t͡s",
	["č"] = "t͡ʃ", ["ч"] = "t͡ʃ",
	["dž"] = "d͡ʒ", ["џ"] = "d͡ʒ",
	["š"] = "ʃ", ["ш"] = "ʃ",
	
	["ś"] = "ɕ",
	["ź"] = "ʑ",
	["m(‧*[vf])"] = "ɱ", ["м(‧*[вф])"] = "ɱ",
	["n(‧*[kg])"] = "ŋ", ["н(‧*[кг])"] = "ŋ",
	["."] = "",
	["¯"] = "ː",
	["`"] = "ˇ",
	["á"] = "ǎː", ["ш"] = "ʃ",
	["é"] = "ěː", ["ш"] = "ʃ",
	["í"] = "ǐː", ["ш"] = "ʃ",
	["ó"] = "ǒː", ["ш"] = "ʃ",
	["ú"] = "ǔː", ["ш"] = "ʃ",
	["ŕ"] = "ř̩ː", ["ш"] = "ʃ",
	[" ̏"] = "ˆ",
	[" ̑"] = "ˆː",
}

local function IPA_word(term)
end

return export
end