<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://test.st34an.tech/index.php?action=history&amp;feed=atom&amp;title=Module%3ACategory_tree%2Fposcatboiler%2Fdata%2Fscripts</id>
	<title>Module:Category tree/poscatboiler/data/scripts - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://test.st34an.tech/index.php?action=history&amp;feed=atom&amp;title=Module%3ACategory_tree%2Fposcatboiler%2Fdata%2Fscripts"/>
	<link rel="alternate" type="text/html" href="https://test.st34an.tech/index.php?title=Module:Category_tree/poscatboiler/data/scripts&amp;action=history"/>
	<updated>2026-04-10T18:59:04Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://test.st34an.tech/index.php?title=Module:Category_tree/poscatboiler/data/scripts&amp;diff=95&amp;oldid=prev</id>
		<title>Jsrs701: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://test.st34an.tech/index.php?title=Module:Category_tree/poscatboiler/data/scripts&amp;diff=95&amp;oldid=prev"/>
		<updated>2026-04-10T07:25:55Z</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 07:25, 10 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 mediawikidb:diff:1.41:old-94:rev-95 --&gt;
&lt;/table&gt;</summary>
		<author><name>Jsrs701</name></author>
	</entry>
	<entry>
		<id>https://test.st34an.tech/index.php?title=Module:Category_tree/poscatboiler/data/scripts&amp;diff=94&amp;oldid=prev</id>
		<title>bob&gt;Juelos at 18:00, 4 September 2024</title>
		<link rel="alternate" type="text/html" href="https://test.st34an.tech/index.php?title=Module:Category_tree/poscatboiler/data/scripts&amp;diff=94&amp;oldid=prev"/>
		<updated>2024-09-04T18:00:59Z</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 raw_categories = {}&lt;br /&gt;
local raw_handlers = {}&lt;br /&gt;
&lt;br /&gt;
-- A list of Unicode blocks to which the characters of the script or scripts belong is created by this module&lt;br /&gt;
-- and displayed in script category pages.&lt;br /&gt;
local blocks_submodule = &amp;quot;Module:category tree/poscatboiler/data/scripts/blocks&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-----------------------------------------------------------------------------&lt;br /&gt;
--                                                                         --&lt;br /&gt;
--                               SCRIPT LABELS                             --&lt;br /&gt;
--                                                                         --&lt;br /&gt;
-----------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[=[&lt;br /&gt;
The following values are recognized for each script label:&lt;br /&gt;
&lt;br /&gt;
&amp;#039;description&amp;#039;&lt;br /&gt;
  A plain English description for the label. Special template substitutions are recognized; see below.&lt;br /&gt;
&amp;#039;umbrella_parents&amp;#039;&lt;br /&gt;
  A table listing one or more parent categories of the umbrella category &amp;#039;LABELS by script&amp;#039; for this label.&lt;br /&gt;
  The format is as for regular raw categories (see [[Module:category tree/poscatboiler/data/documentation]]).&lt;br /&gt;
&amp;#039;umbrella_breadcrumb&amp;#039;&lt;br /&gt;
  The breadcrumb to use in the umbrella category &amp;#039;LABELS by script&amp;#039;. Defaults to &amp;quot;by script&amp;quot;.&lt;br /&gt;
&amp;#039;catfix&amp;#039;&lt;br /&gt;
  Same as the &amp;#039;catfix&amp;#039; parameter for regular raw categories (see [[Module:category tree/poscatboiler/data/documentation]]).&lt;br /&gt;
  This specifies a language code to use to ensure that pages in the category are displayed in the right font and linked&lt;br /&gt;
  appropriately. If this is set, the &amp;#039;catfix_sc&amp;#039; parameter will effectively be set with the script code in question.&lt;br /&gt;
&lt;br /&gt;
Special template-like parameters can be used inside the &amp;#039;description&amp;#039; field (as well as in the &amp;#039;root_description&amp;#039;, &amp;#039;root_intro&amp;#039; and&lt;br /&gt;
&amp;#039;root_additional&amp;#039; variable values initialized below). These are replaced by the equivalent text.&lt;br /&gt;
&lt;br /&gt;
{{{code}}}: Script code.&lt;br /&gt;
{{{codes}}}: A comma-separated list of all the alias codes for this script. This applies especially to Arabic, which has&lt;br /&gt;
  multiple aliases (e.g. &amp;#039;tt-Arab&amp;#039;, &amp;#039;ur-Arab&amp;#039;, &amp;#039;ku-Arab&amp;#039;, etc.).&lt;br /&gt;
{{{codesplural}}}: The value &amp;quot;s&amp;quot; if {{{codes}}} lists more than one code, otherwise an empty string.&lt;br /&gt;
{{{scname}}}: The name of the script that the category belongs to.&lt;br /&gt;
{{{sccat}}}: The name of the script&amp;#039;s main category, which adds &amp;quot;script&amp;quot; to the capitalized regular name.&lt;br /&gt;
{{{scdisp}}}: The display form of the script, which adds &amp;quot;script&amp;quot; to the regular name.&lt;br /&gt;
{{{scprosename}}}: Same as {{{scdisp}}} for Morse code and flag semaphore, otherwise adds &amp;quot;the&amp;quot; before {{{scdisp}}}.&lt;br /&gt;
{{{Wikipedia}}}: The Wikipedia article for the script (if it is present in the language&amp;#039;s data file), or else {{{sccat}}}.&lt;br /&gt;
]=]&lt;br /&gt;
&lt;br /&gt;
local script_labels = {}&lt;br /&gt;
&lt;br /&gt;
script_labels[&amp;quot;characters&amp;quot;] = {&lt;br /&gt;
	description = &amp;quot;All characters from {{{scprosename}}}, and their possible variations, such as versions with diacritics and combinations recognized as single characters in any language.&amp;quot;,&lt;br /&gt;
	umbrella_parents = {&amp;quot;Fundamental&amp;quot;},&lt;br /&gt;
	umbrella_breadcrumb = &amp;quot;Characters by script&amp;quot;,&lt;br /&gt;
	catfix = &amp;quot;mul&amp;quot;,&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
script_labels[&amp;quot;appendices&amp;quot;] = {&lt;br /&gt;
	description = &amp;quot;Appendices about {{{scprosename}}}.&amp;quot;,&lt;br /&gt;
	umbrella_parents = {&amp;quot;Category:Appendices&amp;quot;},&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
script_labels[&amp;quot;languages&amp;quot;] = {&lt;br /&gt;
	description = &amp;quot;Languages that use {{{scprosename}}}.&amp;quot;,&lt;br /&gt;
	umbrella_parents = {&amp;quot;All languages&amp;quot;},&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
script_labels[&amp;quot;templates&amp;quot;] = {&lt;br /&gt;
	description = &amp;quot;Templates with predefined contents for {{{scprosename}}}.&amp;quot;,&lt;br /&gt;
	umbrella_parents = {&amp;quot;Templates&amp;quot;},&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
script_labels[&amp;quot;modules&amp;quot;] = {&lt;br /&gt;
	description = &amp;quot;Modules with scripts for {{{scprosename}}}.&amp;quot;,&lt;br /&gt;
	umbrella_parents = {&amp;quot;Modules&amp;quot;},&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-----------------------------------------------------------------------------&lt;br /&gt;
--                                                                         --&lt;br /&gt;
--                              RAW CATEGORIES                             --&lt;br /&gt;
--                                                                         --&lt;br /&gt;
-----------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
raw_categories[&amp;quot;All scripts&amp;quot;] = {&lt;br /&gt;
	description = &amp;quot;This category contains the categories for every script (writing system) on Wiktionary.&amp;quot;,&lt;br /&gt;
	additional = &amp;quot;See [[Wiktionary:List of scripts]] for a full list.&amp;quot;,&lt;br /&gt;
	parents = {&amp;quot;Fundamental&amp;quot;},&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
-- Types of writing systems listed in [[Module:writing systems/data]].&lt;br /&gt;
raw_categories[&amp;quot;Scripts by type&amp;quot;] = {&lt;br /&gt;
	description = &amp;quot;Scripts classified by how they represent words.&amp;quot;,&lt;br /&gt;
	parents = {{ name = &amp;quot;All scripts&amp;quot;, sort = &amp;quot; &amp;quot; }},&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
raw_categories[&amp;quot;Alphabetic writing systems&amp;quot;] = {&lt;br /&gt;
	description = &amp;quot;Scripts whose symbols represent individual speech sounds.&amp;quot;,&lt;br /&gt;
	parents = {&amp;quot;Scripts by type&amp;quot;},&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
raw_categories[&amp;quot;Abjads&amp;quot;] = {&lt;br /&gt;
	description = &amp;quot;Scripts whose basic symbols represent consonants. Some of these are impure abjads, which have letters for some vowels.&amp;quot;,&lt;br /&gt;
	parents = {&amp;quot;Scripts by type&amp;quot;},&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
raw_categories[&amp;quot;Abugidas&amp;quot;] = {&lt;br /&gt;
	description = &amp;quot;Scripts whose symbols represent consonant and vowel combinations. Symbols representing the same consonant combined with different vowels are for the most part similar in form.&amp;quot;,&lt;br /&gt;
	parents = {&amp;quot;Scripts by type&amp;quot;},&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
raw_categories[&amp;quot;Logographic writing systems&amp;quot;] = {&lt;br /&gt;
	description = &amp;quot;Scripts whose symbols represent individual words.&amp;quot;,&lt;br /&gt;
	parents = {&amp;quot;Scripts by type&amp;quot;},&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
raw_categories[&amp;quot;Pictographic writing systems&amp;quot;] = {&lt;br /&gt;
	description = &amp;quot;Scripts whose symbols represent individual words by using symbols that resemble the physical objects to which those words refer.&amp;quot;,&lt;br /&gt;
	parents = {&amp;quot;Scripts by type&amp;quot;},&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
raw_categories[&amp;quot;Semisyllabaries&amp;quot;] = {&lt;br /&gt;
	description = &amp;quot;Scripts which are a combination of an alphabet and a syllbary.&amp;quot;,&lt;br /&gt;
	parents = {&amp;quot;Scripts by type&amp;quot;},&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
raw_categories[&amp;quot;Syllabaries&amp;quot;] = {&lt;br /&gt;
	description = &amp;quot;Scripts whose symbols represent consonant and vowel combinations. Symbols representing the same consonant combined with different vowels are for the most part different in form.&amp;quot;,&lt;br /&gt;
	parents = {&amp;quot;Scripts by type&amp;quot;},&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
for script_label, obj in pairs(script_labels) do&lt;br /&gt;
	raw_categories[mw.getContentLanguage():ucfirst(script_label) .. &amp;quot; by script&amp;quot;] = {&lt;br /&gt;
		description = &amp;quot;Categories with &amp;quot; .. script_label .. &amp;quot; of various specific scripts.&amp;quot;,&lt;br /&gt;
		breadcrumb = obj.umbrella_breadcrumb or &amp;quot;by script&amp;quot;,&lt;br /&gt;
		parents = obj.umbrella_parents,&lt;br /&gt;
	}&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-----------------------------------------------------------------------------&lt;br /&gt;
--                                                                         --&lt;br /&gt;
--                                RAW HANDLERS                             --&lt;br /&gt;
--                                                                         --&lt;br /&gt;
-----------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-- Intro text for &amp;quot;root&amp;quot; categories such as [[Category:Arabic script]]. Template substitutions are as described above.&lt;br /&gt;
local root_intro = [=[&amp;lt;div style=&amp;quot;clear: right; border: solid #aaa 1px; margin: 1 1 1 1; background: #f9f9f9; width: 250px; padding: 5px; text-align: left; float: right&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;text-align: center; margin-bottom: 10px; margin-top: 5px&amp;quot;&amp;gt;&amp;#039;&amp;#039;&amp;#039;{{{scdisp}}}&amp;#039;&amp;#039;&amp;#039;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;font-size: 90%; background: #f9f9f9&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align: middle; height: 35px;&amp;quot; | [[File:Book notice.png|35px|none|Information]] || {{{scdisp}}} information&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; style=&amp;quot;padding-left: 50px; border-bottom: 1px solid lightgray;&amp;quot; | &amp;#039;&amp;#039;&amp;#039;[[Appendix:{{{sccat}}}]]&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;vertical-align: Middle; height: 35px;&amp;quot; | [[File:Abc box.svg|35px|none|Code]] || {{{scdisp}}} code&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; style=&amp;quot;padding-left: 50px; border-bottom: 1px solid lightgray;&amp;quot; | &amp;#039;&amp;#039;&amp;#039;{{{code}}}&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/div&amp;gt;]=]&lt;br /&gt;
&lt;br /&gt;
-- Short description for &amp;quot;root&amp;quot; categories such as [[Category:Arabic script]]. Template substitutions are as described above.&lt;br /&gt;
local root_description = &amp;quot;This is the main category of &amp;#039;&amp;#039;&amp;#039;{{{scprosename}}}&amp;#039;&amp;#039;&amp;#039;.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
-- Additional description text for &amp;quot;root&amp;quot; categories such as [[Category:Arabic script]]. Template substitutions are as described above.&lt;br /&gt;
local root_additional = [=[Information about {{{scprosename}}} may be available at [[Appendix:{{{sccat}}}]].&lt;br /&gt;
&lt;br /&gt;
In various places at Wiktionary, {{{scprosename}}} is represented by the [[Wiktionary:Scripts|code{{{codesplural}}}]] {{{codes}}}.]=]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-- Replace template notation {{{}}} with variables.&lt;br /&gt;
local function substitute_template_refs(text, sc)&lt;br /&gt;
	local displayForm = sc:getDisplayForm()&lt;br /&gt;
	local scname = sc:getCanonicalName()&lt;br /&gt;
	local codes = {}&lt;br /&gt;
	&lt;br /&gt;
	for code, data in pairs(mw.loadData(&amp;quot;Module:scripts/data&amp;quot;)) do&lt;br /&gt;
		if data[1] == scname then&lt;br /&gt;
			table.insert(codes, &amp;quot;&amp;#039;&amp;#039;&amp;#039;&amp;quot; .. code .. &amp;quot;&amp;#039;&amp;#039;&amp;#039;&amp;quot;)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	if codes[2] then&lt;br /&gt;
		table.sort(&lt;br /&gt;
			codes,&lt;br /&gt;
			-- Four-letter codes have length 10, because they are bolded: &amp;#039;&amp;#039;&amp;#039;Latn&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
			function(code1, code2)&lt;br /&gt;
				if #code1 == 10 then&lt;br /&gt;
					if #code2 == 10 then&lt;br /&gt;
						return code1 &amp;lt; code2&lt;br /&gt;
					else&lt;br /&gt;
						return true&lt;br /&gt;
					end&lt;br /&gt;
				else&lt;br /&gt;
					if #code2 == 10 then&lt;br /&gt;
						return false -- four-letter codes before other codes&lt;br /&gt;
					else&lt;br /&gt;
						return code1 &amp;lt; code2&lt;br /&gt;
					end&lt;br /&gt;
				end&lt;br /&gt;
			end)&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	local content = {&lt;br /&gt;
		code = sc:getCode(),&lt;br /&gt;
		codesplural = codes[2] and &amp;quot;s&amp;quot; or &amp;quot;&amp;quot;,&lt;br /&gt;
		codes = table.concat(codes, &amp;quot;, &amp;quot;),&lt;br /&gt;
		scname = scname,&lt;br /&gt;
		sccat = sc:getCategoryName(),&lt;br /&gt;
		scdisp = displayForm,&lt;br /&gt;
		scprosename = (displayForm:find(&amp;quot;code&amp;quot;) or displayForm:find(&amp;quot;semaphore&amp;quot;)) and displayForm or &amp;quot;the &amp;quot; .. displayForm,&lt;br /&gt;
		Wikipedia = sc:getWikipediaArticle(),&lt;br /&gt;
	}&lt;br /&gt;
	&lt;br /&gt;
	text = string.gsub(&lt;br /&gt;
		text,&lt;br /&gt;
		&amp;quot;{{{([^}]+)}}}&amp;quot;,&lt;br /&gt;
		function (parameter)&lt;br /&gt;
			return content[parameter] or error(&amp;quot;No value for script category parameter &amp;#039;&amp;quot; .. parameter .. &amp;quot;&amp;#039;.&amp;quot;)&lt;br /&gt;
		end)&lt;br /&gt;
	&lt;br /&gt;
	return text&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
local function get_root_additional(additional, sc)&lt;br /&gt;
	local ret = { additional }&lt;br /&gt;
	&lt;br /&gt;
	local systems = sc:getSystems()&lt;br /&gt;
	for _, system in ipairs(systems) do&lt;br /&gt;
		table.insert(ret, &amp;quot;\n\nThe {{{scname}}} script is &amp;quot;)&lt;br /&gt;
		if mw.ustring.sub(system:getCanonicalName(), 1, 1) == &amp;quot;a&amp;quot; then&lt;br /&gt;
			table.insert(ret, &amp;quot;an &amp;quot;)&lt;br /&gt;
		else&lt;br /&gt;
			table.insert(ret, &amp;quot;a &amp;quot;)&lt;br /&gt;
		end&lt;br /&gt;
		&lt;br /&gt;
		local singular = system:getCategoryName()&lt;br /&gt;
		singular = mw.getContentLanguage():lcfirst(singular)&lt;br /&gt;
		singular = mw.ustring.gsub(singular, &amp;quot;ies$&amp;quot;, &amp;quot;y&amp;quot;)&lt;br /&gt;
		singular = mw.ustring.gsub(singular, &amp;quot;s$&amp;quot;, &amp;quot;&amp;quot;)&lt;br /&gt;
		&lt;br /&gt;
		table.insert(ret, singular .. &amp;quot;.&amp;quot;)&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	local blocks = require(blocks_submodule)&lt;br /&gt;
		.print_blocks_by_canonical_name(sc:getCanonicalName())&lt;br /&gt;
	&lt;br /&gt;
	if blocks then&lt;br /&gt;
		table.insert(ret, &amp;quot;\n&amp;quot;)&lt;br /&gt;
		table.insert(ret, blocks)&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	return substitute_template_refs(table.concat(ret), sc)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
local function get_script_obj(script)&lt;br /&gt;
	local scriptname = script:gsub(&amp;quot; script$&amp;quot;, &amp;quot;&amp;quot;)&lt;br /&gt;
	return require(&amp;quot;Module:scripts&amp;quot;).getByCanonicalName(scriptname) or&lt;br /&gt;
		-- [[Category:Undetermined script]] vs. name of script = &amp;quot;undetermined&amp;quot; &lt;br /&gt;
		require(&amp;quot;Module:scripts&amp;quot;).getByCanonicalName(mw.ustring.lower(scriptname))&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
local scripts_without_script_in_category = {&lt;br /&gt;
	-- FIXME, consider checking all scripts for names without &amp;#039;script&amp;#039; in them.&lt;br /&gt;
	[&amp;quot;Morse code&amp;quot;] = true,&lt;br /&gt;
	[&amp;quot;Flag semaphore&amp;quot;] = true,&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-- Handler for &amp;#039;SCRIPT script&amp;#039; e.g. [[Category:Arabic script]] as well as [[Category:Morse code]] and&lt;br /&gt;
-- [[Category:Flag semaphore]].&lt;br /&gt;
table.insert(raw_handlers, function(data)&lt;br /&gt;
	if not data.category:match(&amp;quot;^(.+ script)$&amp;quot;) and not scripts_without_script_in_category[data.category] then&lt;br /&gt;
		return nil&lt;br /&gt;
	end&lt;br /&gt;
	local sc = get_script_obj(data.category)&lt;br /&gt;
	if not sc then&lt;br /&gt;
		return nil&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	-- Compute parents.&lt;br /&gt;
	local parents = {}&lt;br /&gt;
	local systems = sc:getSystems()&lt;br /&gt;
	for _, system in ipairs(systems) do&lt;br /&gt;
		table.insert(parents, system:getCategoryName())&lt;br /&gt;
	end&lt;br /&gt;
	table.insert(parents, &amp;quot;All scripts&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
	-- Compute (extra) children.&lt;br /&gt;
	local children = {}&lt;br /&gt;
	for script_label, _ in pairs(script_labels) do&lt;br /&gt;
		table.insert(children, data.category .. &amp;quot; &amp;quot; .. script_label)&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	return {&lt;br /&gt;
		intro = substitute_template_refs(root_intro, sc),&lt;br /&gt;
		description = substitute_template_refs(root_description, sc),&lt;br /&gt;
		additional = get_root_additional(root_additional, sc),&lt;br /&gt;
		parents = parents,&lt;br /&gt;
		breadcrumb = sc:getCategoryName(),&lt;br /&gt;
		extra_children = children,&lt;br /&gt;
		can_be_empty = true,&lt;br /&gt;
	}&lt;br /&gt;
end)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-- Handler for &amp;#039;SCRIPT script LABELS&amp;#039; e.g. [[Category:Arabic script templates]] as well as [[Category:Morse code LABELS]] and&lt;br /&gt;
-- [[Category:Flag semaphore LABELS]].&lt;br /&gt;
table.insert(raw_handlers, function(data)&lt;br /&gt;
	local script, label&lt;br /&gt;
	for lab, _ in pairs(script_labels) do&lt;br /&gt;
		-- FIXME, if we add script labels with a hyphen in them we&amp;#039;ll have to escape the hyphen&lt;br /&gt;
		-- in the following patterns.&lt;br /&gt;
		script, label = data.category:match(&amp;quot;^(.+ script) (&amp;quot; .. lab .. &amp;quot;)$&amp;quot;)&lt;br /&gt;
		if script then&lt;br /&gt;
			break&lt;br /&gt;
		end&lt;br /&gt;
		-- Check for e.g. &amp;#039;Morse code characters&amp;#039; or &amp;#039;Flag semaphore templates&amp;#039;.&lt;br /&gt;
		script, label = data.category:match(&amp;quot;^(.+) (&amp;quot; .. lab .. &amp;quot;)$&amp;quot;)&lt;br /&gt;
		if script then&lt;br /&gt;
			if scripts_without_script_in_category[script] then&lt;br /&gt;
				break&lt;br /&gt;
			else&lt;br /&gt;
				script = nil&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	if not script then&lt;br /&gt;
		return nil&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local sc = get_script_obj(script)&lt;br /&gt;
	if not sc then&lt;br /&gt;
		return nil&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	local label_obj = script_labels[label]&lt;br /&gt;
	-- Compute description.&lt;br /&gt;
	local desc = substitute_template_refs(label_obj.description, sc)&lt;br /&gt;
&lt;br /&gt;
	-- Compute parents.&lt;br /&gt;
	local parents = {&lt;br /&gt;
		{name = script, sort = label},&lt;br /&gt;
		-- umbrella category&lt;br /&gt;
		mw.getContentLanguage():ucfirst(label) .. &amp;quot; by script&amp;quot;,&lt;br /&gt;
	}&lt;br /&gt;
&lt;br /&gt;
	return {&lt;br /&gt;
		description = substitute_template_refs(label_obj.description, sc),&lt;br /&gt;
		parents = parents,&lt;br /&gt;
		breadcrumb = label,&lt;br /&gt;
		catfix = label_obj.catfix,&lt;br /&gt;
		catfix_sc = label_obj.catfix and sc:getCode(),&lt;br /&gt;
	}&lt;br /&gt;
end)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
return {RAW_CATEGORIES = raw_categories, RAW_HANDLERS = raw_handlers}&lt;/div&gt;</summary>
		<author><name>bob&gt;Juelos</name></author>
	</entry>
</feed>