<?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%3Afa-translit</id>
	<title>Module:fa-translit - 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%3Afa-translit"/>
	<link rel="alternate" type="text/html" href="https://linguifex.com/w/index.php?title=Module:fa-translit&amp;action=history"/>
	<updated>2026-05-18T17:29:32Z</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:fa-translit&amp;diff=496373&amp;oldid=prev</id>
		<title>Sware: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://linguifex.com/w/index.php?title=Module:fa-translit&amp;diff=496373&amp;oldid=prev"/>
		<updated>2026-04-21T12:46:23Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 12:46, 21 April 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;4&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff cache key mediawiki-mw_:diff:1.41:old-496372:rev-496373 --&gt;
&lt;/table&gt;</summary>
		<author><name>Sware</name></author>
	</entry>
	<entry>
		<id>https://linguifex.com/w/index.php?title=Module:fa-translit&amp;diff=496372&amp;oldid=prev</id>
		<title>wikt&gt;Babr at 08:49, 17 August 2025</title>
		<link rel="alternate" type="text/html" href="https://linguifex.com/w/index.php?title=Module:fa-translit&amp;diff=496372&amp;oldid=prev"/>
		<updated>2025-08-17T08:49:40Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;local export = {}&lt;br /&gt;
local m_str_utils = require(&amp;quot;Module:string utilities&amp;quot;)&lt;br /&gt;
local m_table = require(&amp;quot;Module:table&amp;quot;)&lt;br /&gt;
local concat = m_table.concat&lt;br /&gt;
local find = m_str_utils.find&lt;br /&gt;
local gsub = m_str_utils.gsub&lt;br /&gt;
local sub = m_str_utils.sub&lt;br /&gt;
local match = m_str_utils.match&lt;br /&gt;
local split = m_str_utils.split&lt;br /&gt;
local EOW = &amp;quot;([&amp;quot; .. &amp;quot;%s&amp;quot; .. &amp;quot;\n&amp;quot; .. &amp;quot;%p&amp;quot; .. &amp;quot;%x&amp;quot; .. &amp;quot;])&amp;quot;&lt;br /&gt;
local POW = &amp;quot;([&amp;quot; .. &amp;quot;%S&amp;quot; .. &amp;quot;]+)&amp;quot;&lt;br /&gt;
local hyphen = &amp;quot;&amp;lt;span class=\&amp;quot;Zsym mention\&amp;quot; style=\&amp;quot;font-size:100%;\&amp;quot;&amp;gt;&amp;amp;nbsp;/ &amp;lt;/span&amp;gt;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
local function basetr(text, lang, sc)&lt;br /&gt;
	return require(&amp;quot;Module:fa-cls-translit&amp;quot;).tr(text, lang, sc)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function s_split(text, delimiter)&lt;br /&gt;
    local can_split = find(text, delimiter) &lt;br /&gt;
    if not can_split then&lt;br /&gt;
        return text, nil  &lt;br /&gt;
    end&lt;br /&gt;
    return sub(text, 1, can_split-1), sub(text, can_split+2)&lt;br /&gt;
end &lt;br /&gt;
&lt;br /&gt;
function export.CLS_tr(text)&lt;br /&gt;
	-- if // is present, ignore // and everything AFTER&lt;br /&gt;
	text = gsub(text, &amp;quot;%%&amp;quot;, &amp;quot;&amp;quot;)&lt;br /&gt;
	local cls, ira = s_split(text, &amp;quot;//&amp;quot;)&lt;br /&gt;
	if cls then&lt;br /&gt;
	text = cls&lt;br /&gt;
	end&lt;br /&gt;
	text = basetr(text, lang, sc)&lt;br /&gt;
	if text == nil then&lt;br /&gt;
		return nil&lt;br /&gt;
		end&lt;br /&gt;
	return text&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function export.IRA_tr(text)&lt;br /&gt;
	-- if // is present, ignore // and everything BEFORE&lt;br /&gt;
	local cls, ira = s_split(text, &amp;quot;//&amp;quot;)&lt;br /&gt;
	if ira then&lt;br /&gt;
	text = ira&lt;br /&gt;
	end&lt;br /&gt;
	text = gsub(text, &amp;quot;%%&amp;quot;, &amp;quot;#&amp;quot;)&lt;br /&gt;
	text = basetr(text, lang, sc)&lt;br /&gt;
	if text == nil then&lt;br /&gt;
		return nil&lt;br /&gt;
	end&lt;br /&gt;
	text = gsub(text, &amp;quot;%.&amp;quot;, &amp;quot;/1&amp;quot;)&lt;br /&gt;
	text = gsub(text, &amp;quot;([^%a&amp;#039;]+)&amp;quot; , &amp;quot;#%1#&amp;quot;)&lt;br /&gt;
	text = require(&amp;#039;Module:fa-IPA&amp;#039;).romanize_ira(text)&lt;br /&gt;
	text = gsub(text, &amp;quot;#&amp;quot;, &amp;quot;&amp;quot;)&lt;br /&gt;
	text = gsub(text, &amp;quot;/1&amp;quot;, &amp;quot;.&amp;quot;)&lt;br /&gt;
	return text&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function export.tr(text)&lt;br /&gt;
	cls_result = export.CLS_tr(text)&lt;br /&gt;
	ira_result = export.IRA_tr(text)&lt;br /&gt;
	if cls_result == nil or ira_result == nil then&lt;br /&gt;
		return nil&lt;br /&gt;
		else&lt;br /&gt;
		if cls_result == ira_result then&lt;br /&gt;
			return cls_result&lt;br /&gt;
		end&lt;br /&gt;
		combined = {cls_result .. hyphen .. ira_result}&lt;br /&gt;
		return concat(combined)&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- I dont think anything uses this but Im too scared to remove it&lt;br /&gt;
function export.frame_xlit(text1, text2)&lt;br /&gt;
	text = text1 .. hyphen .. text2&lt;br /&gt;
	return text&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
return export&lt;/div&gt;</summary>
		<author><name>wikt&gt;Babr</name></author>
	</entry>
</feed>