Module:pine-pron: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 12: Line 12:
local m_IPA = require("Module:IPA")
local m_IPA = require("Module:IPA")


local vowels_spelling = "aeiouyůảẻỉỏủỷ" .. c.hook
local vowels_spelling = "aeiouyůảẻỉỏủỷ"
local vowels = "[aɑæɔoʊuʏyɛœøiɪe]"
local vowels = "[aɑæɔoʊuʏyɛœøiɪe]"
local lazy_consonants = "[^" .. vowels_spelling .."]"
local lazy_consonants = "[^" .. vowels_spelling .."]"
local consonants_spelling = "[rṛtįpsṡdḍgġhḥkḳlḷƛvbnṇmṃʧʦ" .. c.dotabove .. c.dotbelow .. "]"
local consonants_spelling = "[rṛtįpsṡdḍgġhḥkḳlḷƛvbnṇmṃʧʦð]"


local laxen = {
local laxen = {
Line 66: Line 66:
term = term:gsub("(t[sṡ])", {["ts"] = "ʦ", ["tṡ"] = "ʧ"})
term = term:gsub("(t[sṡ])", {["ts"] = "ʦ", ["tṡ"] = "ʧ"})
term = term:gsub("ḍ", "ð")
local words = split(term, "%s")
local words = split(term, "%s")