Difference between revisions of "Module:Language/data/iana languages/make/doc"

From blackwiki
Jump to navigation Jump to search
blackwiki>Trappist the monk
m (ce;)
blackwiki>Trappist the monk
Line 3: Line 3:
 
*[[Module:Language/data/iana scripts]]
 
*[[Module:Language/data/iana scripts]]
 
*[[Module:Language/data/iana regions]]
 
*[[Module:Language/data/iana regions]]
 +
*[[Module:Language/data/iana variants]]
  
 
The tool skips records that contain the words: 'Deprecated', 'Preferred-Value', and 'Private use'.
 
The tool skips records that contain the words: 'Deprecated', 'Preferred-Value', and 'Private use'.
  
At this writing, the tool extracts only the subtag code and description(s) from language, script, and region records.
+
At this writing, the tool extracts only the subtag code and description(s) from language, script, region, and variant records.
  
 
== Usage ==
 
== Usage ==

Revision as of 11:58, 5 November 2017

This is a crude tool that reads a local copy of an IANA language-subtag-registry file and extracts the information necessary to create the data tables held by:

The tool skips records that contain the words: 'Deprecated', 'Preferred-Value', and 'Private use'.

At this writing, the tool extracts only the subtag code and description(s) from language, script, region, and variant records.

Usage

To use this tool:

  1. open a blank sandbox page and paste this {{#invoke:}} into it at the top line:
    {{#invoke:Language/name/data/iana_data_extraction_tool|iana_extract}}
  2. Go to the current language-subtag-registry file (or any of the files held by archive.org). Copy the whole (or just as much as you need) and paste it into the sandbox page below the {{#invoke:}}.
  3. Click Show preview
  4. wait
  5. get result

There is some crude error checking that will insert an error message in the output. No guarantees that such messaging will be helpful. Search for the word 'error' in the tool's output.