5 757
contributi
Modifiche
⧼vector-jumptonavigation⧽
⧼vector-jumptosearch⧽
Riga 22:
Riga 22:
+
+
+
+
+
Riga 49:
Riga 54:
− --if not mw.ustring.find(decomposed, acute_or_grave) then +
Riga 57:
Riga 62:
− +
+
+
+
+
Riga 63:
Riga 72:
−
−
− --else
− --decomposed=mw.ustring.gsub(decomposed,"(".. vowel ..")(" .. not_vowel .. "*)$",'%1'..mw.ustring.char(0x301)..%2')
− --end+
Riga 281:
Riga 286:
− +
nessun oggetto della modifica
--sč at the end of a word is /ʃ/
--sč at the end of a word is /ʃ/
word = word:gsub("sč","ʃ")
word = word:gsub("sč","ʃ")
end
if mw.ustring.find(word,"č") then
word = mw.ustring.toNFC(word)
--sč at the end of a word is /ʧ/
word = word:gsub("č","ʧ")
end
end
if mw.ustring.find(word,"â") then
if mw.ustring.find(word,"â") then
-- Default to penultimate stress rather than throw error?
-- Default to penultimate stress rather than throw error?
if not mw.ustring.find(decomposed, acute_or_grave) then
-- Allow monosyllabic unstressed words.
-- Allow monosyllabic unstressed words.
--local vowel_count = select(2, decomposed:gsub("[æaeiou]", "%1"))
--local vowel_count = select(2, decomposed:gsub("[æaeiou]", "%1"))
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")
--end
--end
elseif transcription =='e' then
elseif transcriptio =='e' then
decomposed = mw.ustring.gsub(decomposed,"(" .. vowel .. ")(" .. not_vowel .. "*" .. vowel .. not_vowel .."*)$","%1" .. mw.ustring.char(0x301) .. "%2")
elseif transcriptio =='o' then
decomposed = mw.ustring.gsub(decomposed,"(" .. vowel .. ")(" .. not_vowel .. "*" .. vowel .. not_vowel .."*)$","%1" .. mw.ustring.char(0x301) .. "%2")
elseif transcriptio =='i' 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")
else
else
decomposed=mw.ustring.gsub(decomposed,"(".. vowel ..")(" .. not_vowel .. "*)$",'%1' ..mw.ustring.char(0x301).. '%2')
decomposed=mw.ustring.gsub(decomposed,"(".. vowel ..")(" .. not_vowel .. "*)$",'%1' ..mw.ustring.char(0x301).. '%2')
end
end
end
local transcription = decomposed
local transcription = decomposed
"([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.