<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://mywikibiz.com/index.php?action=history&amp;feed=atom&amp;title=Module%3ALanguage%2Fdata%2FISO_639-5%2Fmake</id>
	<title>Module:Language/data/ISO 639-5/make - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://mywikibiz.com/index.php?action=history&amp;feed=atom&amp;title=Module%3ALanguage%2Fdata%2FISO_639-5%2Fmake"/>
	<link rel="alternate" type="text/html" href="https://mywikibiz.com/index.php?title=Module:Language/data/ISO_639-5/make&amp;action=history"/>
	<updated>2026-06-14T05:24:27Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.3</generator>
	<entry>
		<id>https://mywikibiz.com/index.php?title=Module:Language/data/ISO_639-5/make&amp;diff=472423&amp;oldid=prev</id>
		<title>Zoran: Pywikibot 6.4.0</title>
		<link rel="alternate" type="text/html" href="https://mywikibiz.com/index.php?title=Module:Language/data/ISO_639-5/make&amp;diff=472423&amp;oldid=prev"/>
		<updated>2021-07-15T23:30:27Z</updated>

		<summary type="html">&lt;p&gt;Pywikibot 6.4.0&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;require('Module:No globals');&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; I S O _ 5 _ N A M E _ E X T R A C T &amp;gt;------------------------------------------&lt;br /&gt;
&lt;br /&gt;
{{#invoke:Language/data/ISO 639-5/make|ISO_5_name_extract|file-date=2013-02-11}}&lt;br /&gt;
&lt;br /&gt;
reads a local copy of data from the table at https://www.loc.gov/standards/iso639-5/id.php, extracts&lt;br /&gt;
the ISO 639-5 codes and their associated language names&lt;br /&gt;
&lt;br /&gt;
useful lines in the source table have the form:&lt;br /&gt;
	&amp;lt;Identifier&amp;gt;\t&amp;lt;English name&amp;gt;\t&amp;lt;French name&amp;gt;\t&amp;lt;639-2&amp;gt;\t&amp;lt;Hierarchy&amp;gt;\t&amp;lt;Notes&amp;gt;\n&lt;br /&gt;
where:&lt;br /&gt;
	&amp;lt;Identifier&amp;gt; is the 639-5 language code&lt;br /&gt;
	&amp;lt;English name&amp;gt; is the English name&lt;br /&gt;
	&amp;lt;French names&amp;gt; is the French name (not used here)&lt;br /&gt;
	&amp;lt;639-2&amp;gt; is language group or remainder group or blank (not used here)&lt;br /&gt;
	&amp;lt;Hierarchy&amp;gt;  (not used here)&lt;br /&gt;
	&amp;lt;Notes&amp;gt; (not used here)&lt;br /&gt;
&lt;br /&gt;
for the file date use the date listed at the bottom of the source page in yyyymmdd numeric format without hyphens or spaces&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local function ISO_5_name_extract (frame)&lt;br /&gt;
	local page = mw.title.getCurrentTitle();									-- get a page object for this page&lt;br /&gt;
	local content = page:getContent();											-- get unparsed content&lt;br /&gt;
	local content_table = {};													-- table of text lines from source&lt;br /&gt;
	local out_table = {};														-- output table&lt;br /&gt;
	local code, name;&lt;br /&gt;
&lt;br /&gt;
	local file_date = 'File-Date: ' .. frame.args[&amp;quot;file-date&amp;quot;];					-- set the file date line from |file-date= (from the bottom of the source page)&lt;br /&gt;
&lt;br /&gt;
	content_table = mw.text.split (content, '[\r\n]');							-- make a table of text lines&lt;br /&gt;
	for _, line in ipairs (content_table) do									-- for each line&lt;br /&gt;
		code, name = line:match ('^(%l%l%l)\t([%a %-,%(%)\226\128\145]+)\t');	-- \226\128\145 is non-breaking hyphen U+2011 (E2 80 91)&lt;br /&gt;
		if code then&lt;br /&gt;
			name = name:gsub ('\226\128\145', '-');								-- replace non-breaking hyphens with hyphen-minus&lt;br /&gt;
			table.insert (out_table,&lt;br /&gt;
				table.concat ({&lt;br /&gt;
					'[&amp;quot;',														-- open code index&lt;br /&gt;
					code,&lt;br /&gt;
					'&amp;quot;] = {&amp;quot;',													-- close code index; open name table&lt;br /&gt;
					name,&lt;br /&gt;
					'&amp;quot;}'														-- close the names table&lt;br /&gt;
				})&lt;br /&gt;
			)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	table.sort (out_table);&lt;br /&gt;
	&lt;br /&gt;
	return &amp;quot;&amp;lt;br /&amp;gt;&amp;lt;pre&amp;gt;-- &amp;quot; .. file_date .. &amp;quot;&amp;lt;br /&amp;gt;return {&amp;lt;br /&amp;gt;&amp;amp;#9;&amp;quot; .. table.concat (out_table, ',&amp;lt;br /&amp;gt;&amp;amp;#9;') .. &amp;quot;&amp;lt;br /&amp;gt;&amp;amp;#9;}&amp;lt;br /&amp;gt;&amp;quot; .. &amp;quot;&amp;lt;/pre&amp;gt;&amp;quot;;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; E X P O R T E D   F U N C T I O N S &amp;gt;------------------------------------------&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
return {&lt;br /&gt;
	ISO_5_name_extract = ISO_5_name_extract&lt;br /&gt;
	};&lt;/div&gt;</summary>
		<author><name>Zoran</name></author>
	</entry>
</feed>