5 757
contributi
Modifiche
⧼vector-jumptonavigation⧽
⧼vector-jumptosearch⧽
Riga 28:
Riga 28:
− +
− word = mw.ustring.toNFC(word)+
− word = word:gsub("â","a")+
− +
Riga 59:
Riga 59:
− --if transcriptio == 'a' then +
− -- decomposed = mw.ustring.gsub(decomposed,"(" .. vowel .. ")(" .. not_vowel .. "*" .. vowel .. not_vowel .."*)$","%1" .. mw.ustring.char(0x301) .. "%2")+
− if transcriptio =='e' then +
Riga 73:
Riga 73:
+
+
+
+
+
nessun oggetto della modifica
word = word:gsub("č","ʧ")
word = word:gsub("č","ʧ")
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/
-- â at the end of a word is /a/
-- word = word:gsub("â","a")
end
--end
if mw.ustring.find(word,"ğ") then
if mw.ustring.find(word,"ğ") then
word = mw.ustring.toNFC(word)
word = mw.ustring.toNFC(word)
--if vowel_count ~= 1 then
--if vowel_count ~= 1 then
transcriptio=mw.ustring.sub(decomposed,-1)
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
if mw.ustring.find(decomposed,"â") then
decomposed = mw.ustring.toNFC(decomposed)
-- â at the end of a decomposed is /a/
decomposed = decomposed:gsub("â","a")
end
end
end