Modifiche

⧼vector-jumptonavigation⧽ ⧼vector-jumptosearch⧽

Modulo:It-pronunciation

120 byte aggiunti, 08:08, 26 dic 2018
nessun oggetto della modifica
Riga 1: Riga 1:  
local export = {}
 
local export = {}
 
+
local k=" "
 
local stress = "ˈ"
 
local stress = "ˈ"
 
local long = "ː"
 
local long = "ː"
Riga 29: Riga 29:  
         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")
+
        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
Riga 58: Riga 62:  
    --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)
+
            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
            elseif 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 77:  
          
 
          
 
    end
 
    end
 +
 
       end
 
       end
 
 
Riga 286: Riga 291:  
"([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.
 
 

Menu di navigazione