diff options
| author | ZyX <kp-pav@yandex.ru> | 2015-07-26 16:37:01 +0300 | 
|---|---|---|
| committer | ZyX <kp-pav@yandex.ru> | 2015-07-26 22:59:46 +0300 | 
| commit | 4d2807e128b6a934828f0dc44d309e2234f50bce (patch) | |
| tree | 93efd17c3148df9da49642e46078e9cc3d92e102 | |
| parent | 12c269d32a69250adfd17447c1efd82c98d20584 (diff) | |
| download | rneovim-4d2807e128b6a934828f0dc44d309e2234f50bce.tar.gz rneovim-4d2807e128b6a934828f0dc44d309e2234f50bce.tar.bz2 rneovim-4d2807e128b6a934828f0dc44d309e2234f50bce.zip  | |
documentation: Document table meanings in comment to genunicodetables
| -rw-r--r-- | scripts/genunicodetables.lua | 14 | 
1 files changed, 14 insertions, 0 deletions
diff --git a/scripts/genunicodetables.lua b/scripts/genunicodetables.lua index e8de5026de..36339e2fc6 100644 --- a/scripts/genunicodetables.lua +++ b/scripts/genunicodetables.lua @@ -1,3 +1,17 @@ +-- Script creates the following tables in unicode_tables.generated.h: +-- +-- 1. doublewidth and ambiguous tables: sorted list of non-overlapping closed  +--    intervals. Codepoints in these intervals have double (W or F) or ambiguous  +--    (A) east asian width respectively. +-- 2. combining table: same as the above, but characters inside are combining  +--    characters (i.e. have general categories equal to Mn, Mc or Me). +-- 3. foldCase, toLower and toUpper tables used to convert characters to  +--    folded/lower/upper variants. In these tables first two values are  +--    character ranges: like in previous tables they are sorted and must be  +--    non-overlapping. Third value means step inside the range: e.g. if it is  +--    2 then interval applies only to first, third, fifth, … character in range.  +--    Fourth value is number that should be added to the codepoint to yield  +--    folded/lower/upper codepoint.  if arg[1] == '--help' then    print('Usage:')    print('  genunicodetables.lua UnicodeData.txt CaseFolding.txt ' ..  | 
