Jump to content

Module:Unicode data/scripts/doc

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Erutuon (talk | contribs) at 17:29, 29 June 2018 (delete unnecessary module rating). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Usage

Extracted from Scripts.txt and PropertyValueAliases.txt from the Unicode Character Database using two scripts shown below, written in Lua 5.3 and using LPeg. The scripts must be in the same folder as the two data files, and you must have a global function named "sortedpairs" that can iterate over integer keys in a sparse table in numerical order. (The sortedPairs function in Module:table on English Wiktionary will work.)