Module:pine-pron: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 11: Line 11:
local c = require("Module:languages/data").chars
local c = require("Module:languages/data").chars
local m_IPA = require("Module:IPA")
local m_IPA = require("Module:IPA")
local vowels_spelling = "aeiouyůảẻỉỏủỷ"
local vowels = "[aɑæɔoʊuʏyɛœøiɪe]"
local lazy_consonants = "[^" .. vowels_spelling .."]"


local laxen = {
local laxen = {
Line 43: Line 47:
t d ḍ s ṡ ts tṡ r ṛ l ḷ ƛ lį ḷį n ṇ nį ṇį dn ng kn
t d ḍ s ṡ ts tṡ r ṛ l ḷ ƛ lį ḷį n ṇ nį ṇį dn ng kn
k g ġ h hį ḥ kṇ tġ]]
k g ġ h hį ḥ kṇ tġ]]
function export.syllabify_from_spelling(term)
local digraphs = {
["tṡ"] = "ʧ", ["ng"] = "ŋ",
["ts"] = "ʦ"
}
return ret
end


function export.crux(term)
function export.crux(term)
Line 65: Line 79:
-- simple consonant subtitutions
-- simple consonant subtitutions
term = term:gsub("ṡ", "ʃ")
term = term:gsub("ṡ", "ʃ")
term = term:gsub("tʃ", "ʧ"); term = term:gsub("ts", "ʦ")
term = term:gsub("ḷ", "ɬ"); term = term:gsub("ḥ", "ʔ");  
term = term:gsub("ḷ", "ɬ"); term = term:gsub("ḥ", "ʔ");