<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://noumenapedia.net/index.php?action=history&amp;feed=atom&amp;title=Module%3AUnihan_pronunciation</id>
	<title>Module:Unihan pronunciation - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://noumenapedia.net/index.php?action=history&amp;feed=atom&amp;title=Module%3AUnihan_pronunciation"/>
	<link rel="alternate" type="text/html" href="https://noumenapedia.net/index.php?title=Module:Unihan_pronunciation&amp;action=history"/>
	<updated>2026-10-29T02:07:57Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://noumenapedia.net/index.php?title=Module:Unihan_pronunciation&amp;diff=9654&amp;oldid=prev</id>
		<title>Deleatur yhe: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://noumenapedia.net/index.php?title=Module:Unihan_pronunciation&amp;diff=9654&amp;oldid=prev"/>
		<updated>2026-09-09T15:05:19Z</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;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 15:05, 9 September 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&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;/table&gt;</summary>
		<author><name>Deleatur yhe</name></author>
	</entry>
	<entry>
		<id>https://noumenapedia.net/index.php?title=Module:Unihan_pronunciation&amp;diff=9653&amp;oldid=prev</id>
		<title>wikipedia&gt;MusikBot II: Protected &quot;Module:Unihan pronunciation&quot;: High-risk template or module: 254 transclusions (more info) ([Edit=Require autoconfirmed or confirmed access] (indefinite))</title>
		<link rel="alternate" type="text/html" href="https://noumenapedia.net/index.php?title=Module:Unihan_pronunciation&amp;diff=9653&amp;oldid=prev"/>
		<updated>2026-05-15T18:00:37Z</updated>

		<summary type="html">&lt;p&gt;Protected &amp;quot;&lt;a href=&quot;/Module:Unihan_pronunciation&quot; title=&quot;Module:Unihan pronunciation&quot;&gt;Module:Unihan pronunciation&lt;/a&gt;&amp;quot;: &lt;a href=&quot;https://en.wikipedia.org/wiki/High-risk_templates&quot; class=&quot;extiw&quot; title=&quot;wikipedia:High-risk templates&quot;&gt;High-risk template or module&lt;/a&gt;: 254 transclusions (&lt;a href=&quot;/index.php?title=User:MusikBot_II/TemplateProtector&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;User:MusikBot II/TemplateProtector (page does not exist)&quot;&gt;more info&lt;/a&gt;) ([Edit=Require autoconfirmed or confirmed access] (indefinite))&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;
local unicode_data = require(&amp;quot;Module:Unicode data&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
local passthrough = {&lt;br /&gt;
    [&amp;quot;,&amp;quot;] = true,&lt;br /&gt;
    [&amp;quot;-&amp;quot;] = true,&lt;br /&gt;
    [&amp;quot;:&amp;quot;] = true&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
-- Helper: format a syllable, optionally putting tone as superscript&lt;br /&gt;
local function format_syllable(syllable, tone_mode)&lt;br /&gt;
    if tone_mode == &amp;quot;sup&amp;quot; and syllable then&lt;br /&gt;
        -- Move the last character (tone number) into &amp;lt;sup&amp;gt;&lt;br /&gt;
        local base = syllable:sub(1, -2)&lt;br /&gt;
        local tone = syllable:sub(-1)&lt;br /&gt;
        return base .. &amp;quot;&amp;lt;sup&amp;gt;&amp;quot; .. tone .. &amp;quot;&amp;lt;/sup&amp;gt;&amp;quot;&lt;br /&gt;
    else&lt;br /&gt;
        return syllable&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--- @param frame table&lt;br /&gt;
function p.kCantonese(frame)&lt;br /&gt;
    local text = frame.args[1]&lt;br /&gt;
    local tone_mode = frame:getParent().args[&amp;quot;tone&amp;quot;]&lt;br /&gt;
    local result = {}&lt;br /&gt;
&lt;br /&gt;
    for char in mw.text.gsplit(text, &amp;quot;&amp;quot;, true) do&lt;br /&gt;
        if char == &amp;quot; &amp;quot; then&lt;br /&gt;
            -- ignore whitespace&lt;br /&gt;
        elseif passthrough[char] then&lt;br /&gt;
            table.insert(result, char)&lt;br /&gt;
        else&lt;br /&gt;
            local code = mw.ustring.codepoint(char)&lt;br /&gt;
            local syllable = unicode_data.lookup_kCantonese(code)&lt;br /&gt;
            table.insert(result, format_syllable(syllable, tone_mode))&lt;br /&gt;
        end&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
    return table.concat(result, &amp;quot; &amp;quot;)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>wikipedia&gt;MusikBot II</name></author>
	</entry>
</feed>