5 757
contributi
Modifiche
⧼vector-jumptonavigation⧽
⧼vector-jumptosearch⧽
Riga 1:
Riga 1:
− +
Riga 29:
Riga 29:
− word = mw.ustring.toNFC(word)+
− -- â at the end of a word is /æ/+
− word = word:gsub("â","æ")+
+
+
+
+
Riga 58:
Riga 62:
− transcriptio=mw.ustring.sub(decomposed,-1)+
− if transcriptio == 'a' then +
− decomposed = mw.ustring.gsub(decomposed,"(" .. vowel .. ")(" .. not_vowel .. "*" .. vowel .. not_vowel .."*)$","%1" .. mw.ustring.char(0x301) .. "%2")+
− elseif transcriptio =='e' then +
Riga 73:
Riga 77:
+
Riga 286:
Riga 291:
− +
nessun oggetto della modifica
local export = {}
local export = {}
local k=" "
local stress = "ˈ"
local stress = "ˈ"
local long = "ː"
local long = "ː"
end
end
if mw.ustring.find(word,"â") then
if mw.ustring.find(word,"â") then
word = mw.ustring.toNFC(word)
--â at the end of a word is /a/
if mw.ustring.match(word,"â.")==nil then
word=word:gsub("â","a ")
else
word=word:gsub("â","a")
end
end
end
if mw.ustring.find(word,"ğ") then
if mw.ustring.find(word,"ğ") then
--local vowel_count = select(2, decomposed:gsub("[æaeiou]", "%1"))
--local vowel_count = select(2, decomposed:gsub("[æaeiou]", "%1"))
--if vowel_count ~= 1 then
--if vowel_count ~= 1 then
transcriptio=mw.ustring.sub(decomposed,-1)
if transcriptio == 'a' then
decomposed = mw.ustring.gsub(decomposed,"(" .. vowel .. ")(" .. not_vowel .. "*" .. vowel .. not_vowel .."*)$","%1" .. mw.ustring.char(0x301) .. "%2")
--end
--end
elseif transcriptio =='e' then
decomposed = mw.ustring.gsub(decomposed,"(" .. vowel .. ")(" .. not_vowel .. "*" .. vowel .. not_vowel .."*)$","%1" .. mw.ustring.char(0x301) .. "%2")
decomposed = mw.ustring.gsub(decomposed,"(" .. vowel .. ")(" .. not_vowel .. "*" .. vowel .. not_vowel .."*)$","%1" .. mw.ustring.char(0x301) .. "%2")
elseif transcriptio =='o' then
elseif transcriptio =='o' then
end
end
end
end
"([kg])(" .. front .. ")",
"([kg])(" .. front .. ")",
"%1" .. fronted .. "%2")
"%1" .. fronted .. "%2")
:gsub("a", "ä")
:gsub("a", "a")
:gsub("n", "n̺") -- Converts n before a consonant, which is incorrect.
:gsub("n", "n̺") -- Converts n before a consonant, which is incorrect.