Differenze tra le versioni di "Modulo:Bananas"

Da Dialetto Metaurense.
 
(14 versioni intermedie di uno stesso utente non sono mostrate)
Riga 1: Riga 1:
 
local p={}
 
local p={}
  
−
--local acute_or_grave = "[" .. mw.ustring.char(0x300, 0x301) .. "]"
+
local acute_or_grave = mw.ustring.char(0x300, 0x301)  
  
  
 
function p.word(frame)
 
function p.word(frame)
  
−
--  a = mw.ustring.lower('Cé4A')
+
  a = mw.ustring.lower('Cé4A')
−
--  decomposed = mw.ustring.toNFD(a)
+
  decomposed = mw.ustring.toNFD(a)
−
--  return decomposed
+
  return decomposed
−
     transcription = transcription:gsub("([eo])(\204\128)",
+
      
−
function (vowel, accent)
+
end
−
return ({ e = "ɛ", o = "ɔ" })[vowel] .. accent
+
a=function(vowel)
−
end)
+
return({ e = "ɛ", o = "ɔ" })[vowel]
−
    return transcription 
 
 
end
 
end
−
 
  
 
return p
 
return p

Versione attuale delle 19:40, 18 set 2018

La documentazione per questo modulo può essere creata in Modulo:Bananas/man

local p={}

local acute_or_grave = mw.ustring.char(0x300, 0x301) 


function p.word(frame)

  a = mw.ustring.lower('Cé4A')
  decomposed = mw.ustring.toNFD(a)
  return decomposed
    
end
a=function(vowel)
 return({ e = "ɛ", o = "ɔ" })[vowel]
end

return p