45,647
edits
No edit summary |
No edit summary |
||
Line 14: | Line 14: | ||
--obsolete ligatures and L with stroke used to remove two-character hassle. will replace later | --obsolete ligatures and L with stroke used to remove two-character hassle. will replace later | ||
local consonant = "[ | local consonant = "[mnɲŋpbtdcɟwjkɡʔvðsɕxɣhħʨʥrlɬⱡłʣʦʔƀꝺđɣꬶɉʼ]" .. UNR .. "?" | ||
local front_vowel = "iɪyeøɛœæ" | local front_vowel = "iɪyeøɛœæ" | ||
local back_vowel = "uɔõɑʊɤɯ" | local back_vowel = "uɔõɑʊɤɯ" | ||
Line 20: | Line 20: | ||
function spat(c) | function spat(c) | ||
return "(·?ˈ[ | return "(·?ˈ[mnɲŋpbtdcɟkɡʔvðsɕxɣhʨʥrlɬłⱡʣjwʦ⁽ʰ⁾ʔːƀꝺđɣꬶɉ]*"..UNR.."?"..vowel..")" .. c .. "([^ː])" | ||
end | end | ||
Line 87: | Line 87: | ||
{"sꬶv", "skʔɨwː"}, {"sʔk", "ːsɨʔk"}, {"ɕꬶv", "ɕkɨwː"}, | {"sꬶv", "skʔɨwː"}, {"sʔk", "ːsɨʔk"}, {"ɕꬶv", "ɕkɨwː"}, | ||
{"([lr])(ʔ[kpt])", "ː%1ɨ%2"}, {" | {"([lr])(ʔ[kpt])", "ː%1ɨ%2"}, {"ⱡ([mnx])", "ːⱡɨ%1ː"}, {"ꝺx", "ːðɨɣː"}, | ||
{"ðꬶ", "ːðɨʔk"}, {"ɣ([nm])", "ːŋɨ%1ː"}, {"([ | {"ðꬶ", "ːðɨʔk"}, {"ɣ([nm])", "ːŋɨ%1ː"}, {"([ⱡrð])v", "ː%1ɨwː"}, | ||
{"x([mnl])", "ːɣɨ%1ː"}, {"xv", "ːɣɨwː"}, {"ƀ([msɕ])", "ːbɨ%1ː"}, | {"x([mnl])", "ːɣɨ%1ː"}, {"xv", "ːɣɨwː"}, {"ƀ([msɕ])", "ːbɨ%1ː"}, | ||
Line 101: | Line 101: | ||
["ḥ"] = "ʔ", ["į"] = "j", | ["ḥ"] = "ʔ", ["į"] = "j", | ||
["ġ"] = "x", ["g"] = "ɡ", -- IPA g | ["ġ"] = "x", ["g"] = "ɡ", -- IPA g | ||
["ų"] = "w", | ["ų"] = "w", ["ł"] = "ɬ", | ||
}}, | }}, | ||
{"o̊", "ɯ"}, {"t[ṡɕ]", "ʨ"}, {"dj", "ʥ"}, {"dl", " | {"o̊", "ɯ"}, {"t[ṡɕ]", "ʨ"}, {"dj", "ʥ"}, {"dl", "ⱡ"}, {"kj", "c"}, {"nj", "ɲ"}, {"ts", "ʦ"}, | ||
-- long consonants | -- long consonants | ||
Line 156: | Line 156: | ||
{"[ƀp]([msɕ])", "p%1ː"}, {"[ƀp]r", "px"}, | {"[ƀp]([msɕ])", "p%1ː"}, {"[ƀp]r", "px"}, | ||
{"b([sɕ])", "p%1"}, | {"b([sɕ])", "p%1"}, | ||
{"n[ꬶk]", "ŋk"}, {"([ | {"n[ꬶk]", "ŋk"}, {"([ðđʦⱡɕꬶrkt])v", "%1wː"}, | ||
{"[đt]n", "tnː"}, {"[đt]r", "tx"}, {"[đt][ꬶk]v", "tkwː"}, | {"[đt]n", "tnː"}, {"[đt]r", "tx"}, {"[đt][ꬶk]v", "tkwː"}, | ||
{"(ʦ[tđlmn])", "%1ː"}, {"ʦ[ꬶk]v", "ʦkwː"}, | {"(ʦ[tđlmn])", "%1ː"}, {"ʦ[ꬶk]v", "ʦkwː"}, | ||
Line 165: | Line 165: | ||
{"([lr])ʔ([ptk])", "%1%2ː"}, | {"([lr])ʔ([ptk])", "%1%2ː"}, | ||
{"lʦ(x?)v", "ɬʦ%1w"}, {"lʦx", "ɬʦx"}, | {"lʦ(x?)v", "ɬʦ%1w"}, {"lʦx", "ɬʦx"}, | ||
{"( | {"(ⱡ[mnꬶk])", "%1ː"}, | ||
{"([ꬶk][msɕ])", "%1ː"}, {"[ꬶk]s[ꬶk]", "kskː"}, {"[ꬶk]sl", " | {"([ꬶk][msɕ])", "%1ː"}, {"[ꬶk]s[ꬶk]", "kskː"}, {"[ꬶk]sl", "ksⱡ"}, | ||
{"[ɣɡ]([mn])", "ŋ%1ː"}, {"[ɣɡ]([vsl])", "k%1"}, | {"[ɣɡ]([mn])", "ŋ%1ː"}, {"[ɣɡ]([vsl])", "k%1"}, | ||
Line 182: | Line 182: | ||
--undo ligatures | --undo ligatures | ||
{"ʨ", "t͡ɕ"}, {"ʥ", "d͡ʑ"}, {" | {"ʨ", "t͡ɕ"}, {"ʥ", "d͡ʑ"}, {"ⱡ", "tɬ"}, {"ʣ", "d͡z"}, {"ʦ", "t͡s"}, | ||
{"ƀ", "p"}, {"ꝺ", "d"}, {"đ", "t"}, {"ꬶ", "ɡ"}, {"ɉ", "ɟ"}, {"õ", "ɔ̃"}, | {"ƀ", "p"}, {"ꝺ", "d"}, {"đ", "t"}, {"ꬶ", "ɡ"}, {"ɉ", "ɟ"}, {"õ", "ɔ̃"}, | ||
{"ṁ", "m̥"}, {"ṅ", "n̥"}, {"ħ", "h"}, {"ɡ⁽", "k⁽"}, | {"ṁ", "m̥"}, {"ṅ", "n̥"}, {"ħ", "h"}, {"ɡ⁽", "k⁽"}, | ||
Line 200: | Line 200: | ||
if w then | if w then | ||
term = gsub(term, "ꬶl", " | term = gsub(term, "ꬶl", "ʔⱡ") | ||
term = gsub(term, "ƛ", " | term = gsub(term, "ƛ", "ⱡʼ") | ||
for _, anap in ipairs(anaptyctic) do | for _, anap in ipairs(anaptyctic) do | ||
term = gsub(term, anap[1], anap[2]) | term = gsub(term, anap[1], anap[2]) |