Uwaga |
---|
Moduł:removeDiacritics
Przejdź do nawigacji
Przejdź do wyszukiwania
Dokumentacja dla tego modułu może zostać utworzona pod nazwą Moduł:removeDiacritics/opis
local p = {}
function p.removeDiacritics( frame )
local text = frame.args[1]
local nfd = mw.ustring.toNFD( text )
local res = ''
for c in mw.ustring.gcodepoint( nfd ) do
if c<128 then
res = res .. string.char(c)
end
end
return res
end
return p