From Wikibooks, open books for an open world
This page may need to be
reviewed for quality.
Jump to navigation
Jump to search
This module removes the Tashkil (diacretics) and the Tatweel character from Arabic text. It's useful for links e.g. to Wiktionary.
local export = {}
function export.convert(frame)
local args = frame:getParent().args
local text = frame.args[1]
text = mw.ustring.gsub(text, '[ـًٌٍَُِّْٰ]', '')
return text
end
return export