<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.terpsichore.space/index.php?action=history&amp;feed=atom&amp;title=Module%3AIPA</id>
	<title>Module:IPA - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.terpsichore.space/index.php?action=history&amp;feed=atom&amp;title=Module%3AIPA"/>
	<link rel="alternate" type="text/html" href="https://wiki.terpsichore.space/index.php?title=Module:IPA&amp;action=history"/>
	<updated>2026-04-14T10:07:42Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.4</generator>
	<entry>
		<id>https://wiki.terpsichore.space/index.php?title=Module:IPA&amp;diff=570&amp;oldid=prev</id>
		<title>Spacegod: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://wiki.terpsichore.space/index.php?title=Module:IPA&amp;diff=570&amp;oldid=prev"/>
		<updated>2023-07-09T21:46:28Z</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 21:46, 9 July 2023&lt;/td&gt;
				&lt;/tr&gt;
&lt;!-- diff cache key terpsichore_wiki:diff::1.12:old-569:rev-570 --&gt;
&lt;/table&gt;</summary>
		<author><name>Spacegod</name></author>
	</entry>
	<entry>
		<id>https://wiki.terpsichore.space/index.php?title=Module:IPA&amp;diff=569&amp;oldid=prev</id>
		<title>wiki&gt;Erutuon: perhaps logging the character and the text would make it easier to find the incorrect transcriptions on the page</title>
		<link rel="alternate" type="text/html" href="https://wiki.terpsichore.space/index.php?title=Module:IPA&amp;diff=569&amp;oldid=prev"/>
		<updated>2017-06-23T18:57:34Z</updated>

		<summary type="html">&lt;p&gt;perhaps logging the character and the text would make it easier to find the incorrect transcriptions on the page&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;local p = {}&lt;br /&gt;
&lt;br /&gt;
local match = mw.ustring.match&lt;br /&gt;
local gsub = mw.ustring.gsub&lt;br /&gt;
local U = mw.ustring.char&lt;br /&gt;
&lt;br /&gt;
local function IPAspan(text)&lt;br /&gt;
	return&lt;br /&gt;
		&amp;#039;&amp;lt;span title=&amp;quot;Representation in the International Phonetic Alphabet (IPA)&amp;quot; class=&amp;quot;IPA&amp;quot;&amp;gt;&amp;#039; ..&lt;br /&gt;
		text ..&lt;br /&gt;
		&amp;#039;&amp;lt;/span&amp;gt;&amp;#039;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function ine(text)&lt;br /&gt;
	if text == &amp;quot;&amp;quot; then&lt;br /&gt;
		return nil&lt;br /&gt;
	else&lt;br /&gt;
		return text&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.tag(frame)&lt;br /&gt;
	local linkHelpPage = require(&amp;#039;Module:Yesno&amp;#039;)(frame.args.link, false)&lt;br /&gt;
	&lt;br /&gt;
	local args = frame:getParent().args[1] and frame:getParent().args&lt;br /&gt;
		or frame.args&lt;br /&gt;
	local namespace = mw.title.getCurrentTitle().nsText&lt;br /&gt;
	&lt;br /&gt;
	local text, lang&lt;br /&gt;
	&lt;br /&gt;
	local err = {}&lt;br /&gt;
	local trackingCategories = {}&lt;br /&gt;
	local IPApage&lt;br /&gt;
	&lt;br /&gt;
	-- Tracks incorrect characters.&lt;br /&gt;
	local function track(text)&lt;br /&gt;
		-- non-IPA g&lt;br /&gt;
		if mw.ustring.find(text, U(0x67)) then&lt;br /&gt;
			mw.log(&amp;quot;Incorrect character g found in &amp;quot; .. text)&lt;br /&gt;
			table.insert(trackingCategories, &amp;quot;[[Category:IPA templates with incorrect characters]]&amp;quot;)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	if linkHelpPage then&lt;br /&gt;
		text = ine(args[2])&lt;br /&gt;
		lang = ine(args[1])&lt;br /&gt;
	&lt;br /&gt;
		if lang then&lt;br /&gt;
			IPApage = mw.loadData(&amp;quot;Module:IPA/data&amp;quot;)[lang]&lt;br /&gt;
			&lt;br /&gt;
			if not IPApage then &lt;br /&gt;
				table.insert(err, &amp;quot;[No IPA key for the language code &amp;quot; .. lang..&amp;quot;]&amp;quot;)&lt;br /&gt;
			end&lt;br /&gt;
		else&lt;br /&gt;
			table.insert(err, &amp;quot;[language code?]&amp;quot;)&lt;br /&gt;
		end&lt;br /&gt;
	else&lt;br /&gt;
		text = ine(args[1])&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	local output = &amp;quot;&amp;quot;&lt;br /&gt;
	&lt;br /&gt;
	if text then&lt;br /&gt;
		workingString = text&lt;br /&gt;
		&lt;br /&gt;
		-- Remove targets of wikilinks.&lt;br /&gt;
		workingString = gsub(workingString, &amp;quot;%[%[([^|]+|)&amp;quot;, &amp;quot;&amp;quot;)&lt;br /&gt;
		-- Remove HTML tags.&lt;br /&gt;
		workingString = gsub(workingString, &amp;quot;&amp;lt;[^&amp;gt;]+&amp;gt;&amp;quot;, &amp;quot;&amp;quot;)&lt;br /&gt;
		track(workingString)&lt;br /&gt;
		&lt;br /&gt;
		text = IPAspan(text)&lt;br /&gt;
	&lt;br /&gt;
		if IPApage then&lt;br /&gt;
			output = &amp;quot;[[&amp;quot; .. IPApage .. &amp;quot;|&amp;quot; .. text .. &amp;quot;]]&amp;quot;&lt;br /&gt;
		elseif text then&lt;br /&gt;
			output = text&lt;br /&gt;
		end&lt;br /&gt;
	else&lt;br /&gt;
		table.insert(err, &amp;quot;[IPA symbols?]&amp;quot;)&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	if #err &amp;gt; 0 then&lt;br /&gt;
		err = &amp;quot;&amp;lt;sup&amp;gt;&amp;quot; .. table.concat(err) .. &amp;quot;&amp;lt;/sup&amp;gt;&amp;quot;&lt;br /&gt;
	else&lt;br /&gt;
		err = &amp;quot;&amp;quot;&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	-- Makes the error message show only in preview mode.&lt;br /&gt;
	if frame:preprocess(&amp;quot;{{REVISIONID}}&amp;quot;) == &amp;quot;&amp;quot; then&lt;br /&gt;
		output = output .. err&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	return output .. table.concat(trackingCategories)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>wiki&gt;Erutuon</name></author>
	</entry>
</feed>