<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://70.231.62.181/index.php?action=history&amp;feed=atom&amp;title=Module%3AUnicode_data%2Fcontrol</id>
	<title>Module:Unicode data/control - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://70.231.62.181/index.php?action=history&amp;feed=atom&amp;title=Module%3AUnicode_data%2Fcontrol"/>
	<link rel="alternate" type="text/html" href="http://70.231.62.181/index.php?title=Module:Unicode_data/control&amp;action=history"/>
	<updated>2026-04-22T15:02:24Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>http://70.231.62.181/index.php?title=Module:Unicode_data/control&amp;diff=16854553&amp;oldid=prev</id>
		<title>imported&gt;Dušan Kreheľ: + link in comment to commons</title>
		<link rel="alternate" type="text/html" href="http://70.231.62.181/index.php?title=Module:Unicode_data/control&amp;diff=16854553&amp;oldid=prev"/>
		<updated>2025-07-28T15:37:57Z</updated>

		<summary type="html">&lt;p&gt;+ link in comment to commons&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;-- [[:commons:Data:Unicode/data/category/singles.tab]]&lt;br /&gt;
-- [[:commons:Data:Unicode/data/category/ranges.tab]]&lt;br /&gt;
&lt;br /&gt;
local function get_result()&lt;br /&gt;
	local categories = {&lt;br /&gt;
		[&amp;quot;Cc&amp;quot;] = &amp;quot;control&amp;quot;,&lt;br /&gt;
		[&amp;quot;Cf&amp;quot;] = &amp;quot;format&amp;quot;,&lt;br /&gt;
		[&amp;quot;Cs&amp;quot;] = &amp;quot;surrogate&amp;quot;,&lt;br /&gt;
		[&amp;quot;Co&amp;quot;] = &amp;quot;private-use&amp;quot;,&lt;br /&gt;
		[&amp;quot;Cn&amp;quot;] = &amp;quot;unassigned&amp;quot;,&lt;br /&gt;
		[&amp;quot;Zs&amp;quot;] = &amp;quot;space-separator&amp;quot;,&lt;br /&gt;
		[&amp;quot;Zl&amp;quot;] = &amp;quot;line-separator&amp;quot;,&lt;br /&gt;
		[&amp;quot;Zp&amp;quot;] = &amp;quot;paragraph-separator&amp;quot;&lt;br /&gt;
	}&lt;br /&gt;
	&lt;br /&gt;
	local result={}&lt;br /&gt;
	local write_index&lt;br /&gt;
	local category&lt;br /&gt;
	local first_char&lt;br /&gt;
	&lt;br /&gt;
	-- singles&lt;br /&gt;
	result.singles={}&lt;br /&gt;
	local data=mw.ext.data.get(&amp;quot;Unicode/data/category/singles.tab&amp;quot;)&lt;br /&gt;
	for index, cols in ipairs(data.data) do&lt;br /&gt;
		if cols[1] and cols[2]  then&lt;br /&gt;
			first_char=string.sub(cols[2], 1, 1)&lt;br /&gt;
			if first_char == &amp;quot;C&amp;quot; or first_char == &amp;quot;Z&amp;quot; then&lt;br /&gt;
				category=categories[cols[2]]&lt;br /&gt;
				if category then&lt;br /&gt;
					result.singles[tonumber(cols[1], 16)]=category&lt;br /&gt;
				end&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	-- ranges&lt;br /&gt;
	data=mw.ext.data.get(&amp;quot;Unicode/data/category/ranges.tab&amp;quot;)&lt;br /&gt;
	write_index=1&lt;br /&gt;
	result.ranges={}&lt;br /&gt;
	for index, cols in ipairs(data.data) do&lt;br /&gt;
		if cols[1] and cols[2] and cols[3] then&lt;br /&gt;
			first_char=string.sub(cols[3], 1, 1)&lt;br /&gt;
			if first_char == &amp;quot;C&amp;quot; or first_char == &amp;quot;Z&amp;quot; then&lt;br /&gt;
				category=categories[cols[3]]&lt;br /&gt;
				if category then&lt;br /&gt;
					result.ranges[write_index]={tonumber(cols[1], 16), tonumber(cols[2], 16), category}&lt;br /&gt;
					write_index=write_index+1&lt;br /&gt;
				end&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	result.ranges.length = #result.ranges&lt;br /&gt;
	&lt;br /&gt;
	return result&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return get_result()&lt;/div&gt;</summary>
		<author><name>imported&gt;Dušan Kreheľ</name></author>
	</entry>
</feed>