Modifiche

⧼vector-jumptonavigation⧽ ⧼vector-jumptosearch⧽

Modulo:It-pronunciation

211 byte aggiunti, 05:28, 18 dic 2018
nessun oggetto della modifica
Riga 28: Riga 28:  
           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)
+
        -- 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")
+
        -- 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)
Riga 59: Riga 59:  
             --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  
+
             if transcriptio == 'a' 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")
 
             --end
 
             --end
               if transcriptio =='e' then  
+
               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  
Riga 73: Riga 73:  
          
 
          
 
    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
 
 

Menu di navigazione