<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://linguifex.com/w/index.php?action=history&amp;feed=atom&amp;title=Module%3Aar-entryname</id>
	<title>Module:ar-entryname - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://linguifex.com/w/index.php?action=history&amp;feed=atom&amp;title=Module%3Aar-entryname"/>
	<link rel="alternate" type="text/html" href="https://linguifex.com/w/index.php?title=Module:ar-entryname&amp;action=history"/>
	<updated>2026-04-06T14:02:20Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.6</generator>
	<entry>
		<id>https://linguifex.com/w/index.php?title=Module:ar-entryname&amp;diff=424542&amp;oldid=prev</id>
		<title>Sware: Created page with &quot;local m_str_utils = require(&quot;Module:string utilities&quot;)  local find = m_str_utils.find local gsub = m_str_utils.gsub local U = m_str_utils.char  local taTwiil = U(0x640) local waSla = U(0x671) -- diacritics ordinarily removed by entry_name replacements local Arabic_diacritics = U(0x64B, 0x64C, 0x64D, 0x64E, 0x64F, 0x650, 0x651, 0x652, 0x670)  -- replace alif waṣl with alif -- remove tatweel and diacritics: fathatan, dammatan, kasratan, fatha, -- damma, kasra, shadda, su...&quot;</title>
		<link rel="alternate" type="text/html" href="https://linguifex.com/w/index.php?title=Module:ar-entryname&amp;diff=424542&amp;oldid=prev"/>
		<updated>2025-01-12T15:48:25Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;local m_str_utils = require(&amp;quot;Module:string utilities&amp;quot;)  local find = m_str_utils.find local gsub = m_str_utils.gsub local U = m_str_utils.char  local taTwiil = U(0x640) local waSla = U(0x671) -- diacritics ordinarily removed by entry_name replacements local Arabic_diacritics = U(0x64B, 0x64C, 0x64D, 0x64E, 0x64F, 0x650, 0x651, 0x652, 0x670)  -- replace alif waṣl with alif -- remove tatweel and diacritics: fathatan, dammatan, kasratan, fatha, -- damma, kasra, shadda, su...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;local m_str_utils = require(&amp;quot;Module:string utilities&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
local find = m_str_utils.find&lt;br /&gt;
local gsub = m_str_utils.gsub&lt;br /&gt;
local U = m_str_utils.char&lt;br /&gt;
&lt;br /&gt;
local taTwiil = U(0x640)&lt;br /&gt;
local waSla = U(0x671)&lt;br /&gt;
-- diacritics ordinarily removed by entry_name replacements&lt;br /&gt;
local Arabic_diacritics = U(0x64B, 0x64C, 0x64D, 0x64E, 0x64F, 0x650, 0x651, 0x652, 0x670)&lt;br /&gt;
&lt;br /&gt;
-- replace alif waṣl with alif&lt;br /&gt;
-- remove tatweel and diacritics: fathatan, dammatan, kasratan, fatha,&lt;br /&gt;
-- damma, kasra, shadda, sukun, superscript (dagger) alef&lt;br /&gt;
local replacements = {&lt;br /&gt;
	from = {U(0x0671), &amp;quot;[&amp;quot; .. U(0x0640, 0x064B) .. &amp;quot;-&amp;quot; .. U(0x0652, 0x0670, 0x0656) .. &amp;quot;]&amp;quot;},&lt;br /&gt;
	to   = {U(0x0627)}&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
local export = {}&lt;br /&gt;
&lt;br /&gt;
function export.makeEntryName(text, lang, sc)&lt;br /&gt;
	if text == waSla or find(text, &amp;quot;^&amp;quot; .. taTwiil .. &amp;quot;?[&amp;quot; .. Arabic_diacritics .. &amp;quot;]&amp;quot; .. &amp;quot;$&amp;quot;) then&lt;br /&gt;
		return text&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	for i, from in ipairs(replacements.from) do&lt;br /&gt;
		local to = replacements.to[i] or &amp;quot;&amp;quot;&lt;br /&gt;
		text = gsub(text, from, to)&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	return text&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return export&lt;/div&gt;</summary>
		<author><name>Sware</name></author>
	</entry>
</feed>