Modifiche

⧼vector-jumptonavigation⧽ ⧼vector-jumptosearch⧽

Modulo:Fan-pronunciation

7 byte rimossi, 21:49, 2 ott 2018
nessun oggetto della modifica
Riga 49: Riga 49:  
-- 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
+
         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"))
Riga 61: Riga 61:  
             elseif transcriptio =='o' then  
 
             elseif transcriptio =='o' 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 =='æ' then  
+
             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
Riga 72: Riga 72:  
               --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
+
      end
 
 
 
local transcription = decomposed
 
local transcription = decomposed

Menu di navigazione