<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="uz">
	<id>https://ziyosfera.uz/index.php?action=history&amp;feed=atom&amp;title=Modul%3AUnihan_pronunciation</id>
	<title>Modul:Unihan pronunciation - Oʻzgarishlar tarixi</title>
	<link rel="self" type="application/atom+xml" href="https://ziyosfera.uz/index.php?action=history&amp;feed=atom&amp;title=Modul%3AUnihan_pronunciation"/>
	<link rel="alternate" type="text/html" href="https://ziyosfera.uz/index.php?title=Modul:Unihan_pronunciation&amp;action=history"/>
	<updated>2026-11-29T01:26:16Z</updated>
	<subtitle>Ziyosferadagi mazkur sahifaning oʻzgarishlar tarixi</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://ziyosfera.uz/index.php?title=Modul:Unihan_pronunciation&amp;diff=1470693&amp;oldid=prev</id>
		<title>Admin 02:14, 2026-yil 14-oktyabr da</title>
		<link rel="alternate" type="text/html" href="https://ziyosfera.uz/index.php?title=Modul:Unihan_pronunciation&amp;diff=1470693&amp;oldid=prev"/>
		<updated>2026-10-14T02:14:22Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Yangi sahifa&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>Admin</name></author>
	</entry>
</feed>