<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ar">
	<id>https://3rabica.org/index.php?action=history&amp;feed=atom&amp;title=%D9%88%D8%AD%D8%AF%D8%A9%3ALanguage%2Fscripts</id>
	<title>وحدة:Language/scripts - تاريخ المراجعة</title>
	<link rel="self" type="application/atom+xml" href="https://3rabica.org/index.php?action=history&amp;feed=atom&amp;title=%D9%88%D8%AD%D8%AF%D8%A9%3ALanguage%2Fscripts"/>
	<link rel="alternate" type="text/html" href="https://3rabica.org/index.php?title=%D9%88%D8%AD%D8%AF%D8%A9:Language/scripts&amp;action=history"/>
	<updated>2026-06-05T00:02:16Z</updated>
	<subtitle>تاريخ التعديل لهذه الصفحة في الويكي</subtitle>
	<generator>MediaWiki 1.43.7</generator>
	<entry>
		<id>https://3rabica.org/index.php?title=%D9%88%D8%AD%D8%AF%D8%A9:Language/scripts&amp;diff=1074&amp;oldid=prev</id>
		<title>عبد العزيز: أنشأ الصفحة ب&#039;local p = {}  local gsub = mw.ustring.gsub local length = mw.ustring.len  local data = require(&quot;Module:Language/scripts/data&quot;)  function p.print(frame) 	local scriptCode...&#039;</title>
		<link rel="alternate" type="text/html" href="https://3rabica.org/index.php?title=%D9%88%D8%AD%D8%AF%D8%A9:Language/scripts&amp;diff=1074&amp;oldid=prev"/>
		<updated>2016-12-01T13:12:24Z</updated>

		<summary type="html">&lt;p&gt;أنشأ الصفحة ب&amp;#039;local p = {}  local gsub = mw.ustring.gsub local length = mw.ustring.len  local data = require(&amp;quot;Module:Language/scripts/data&amp;quot;)  function p.print(frame) 	local scriptCode...&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;صفحة جديدة&lt;/b&gt;&lt;/p&gt;&lt;div&gt;local p = {}&lt;br /&gt;
&lt;br /&gt;
local gsub = mw.ustring.gsub&lt;br /&gt;
local length = mw.ustring.len&lt;br /&gt;
&lt;br /&gt;
local data = require(&amp;quot;Module:Language/scripts/data&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
function p.print(frame)&lt;br /&gt;
	local scriptCode = frame.args[1]&lt;br /&gt;
	local scriptData = scriptCode and data[scriptCode] or &amp;quot;Please supply a valid script code.&amp;quot;&lt;br /&gt;
	local characters = scriptData and scriptData.characters or &amp;quot;No characters found for &amp;quot; .. scriptCode .. &amp;quot;.&amp;quot;&lt;br /&gt;
	return characters&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local script = {}&lt;br /&gt;
&lt;br /&gt;
-- Based on the Script:countCharacters() function of Module:scripts on Wiktionary&lt;br /&gt;
local function countCharacters(text, scriptCode)&lt;br /&gt;
	if not data[scriptCode][&amp;quot;characters&amp;quot;] then&lt;br /&gt;
		return 0&lt;br /&gt;
	else&lt;br /&gt;
		local _, count = gsub(text, &amp;quot;[&amp;quot; .. data[scriptCode][&amp;quot;characters&amp;quot;] .. &amp;quot;]&amp;quot;, &amp;quot;&amp;quot;)&lt;br /&gt;
		return count&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.isLatn(text)&lt;br /&gt;
	if type(tostring(text)) == &amp;quot;string&amp;quot; then&lt;br /&gt;
		local count = countCharacters(text, &amp;quot;Latn&amp;quot;)&lt;br /&gt;
		if count &amp;lt; (length(text) / 4) then -- Only 25% of characters in string are Latin&lt;br /&gt;
			return false&lt;br /&gt;
		else&lt;br /&gt;
			return true&lt;br /&gt;
		end&lt;br /&gt;
	else&lt;br /&gt;
		return nil&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.Latin(frame)&lt;br /&gt;
	local text = frame.args[1]&lt;br /&gt;
	return p.isLatn(text)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>عبد العزيز</name></author>
	</entry>
</feed>