UnicodeData: add unicode category names
Original Reporter info from Mantis: Alextp
-
Reporter name: CudaText man
Original Reporter info from Mantis: Alextp
- Reporter name: CudaText man
Description:
UnicodeData unit gives UGC_nnnn consts, which are unicode category code.
I suggest to add array, which gives official category names for them.
Like
const UnicodeCategoryNames: array[0..29] of string[2] = ...
From this page https://en.wikipedia.org/wiki/Unicode_character_property
I got all names:
==
const
// Unicode General Category
UGC_UppercaseLetter = 0; Lu
UGC_LowercaseLetter = 1; Ll
UGC_TitlecaseLetter = 2; Lt
UGC_ModifierLetter = 3; Lm
UGC_OtherLetter = 4; Lo
UGC_NonSpacingMark = 5; Mn
UGC_CombiningMark = 6; Mc
UGC_EnclosingMark = 7; Me
UGC_DecimalNumber = 8; Nd
UGC_LetterNumber = 9; Nl
UGC_OtherNumber = 10; No
UGC_ConnectPunctuation = 11; Pc
UGC_DashPunctuation = 12; Pd
UGC_OpenPunctuation = 13; Ps
UGC_ClosePunctuation = 14; Pe
UGC_InitialPunctuation = 15; Pi
UGC_FinalPunctuation = 16; Pf
UGC_OtherPunctuation = 17; Po
UGC_MathSymbol = 18; Sm
UGC_CurrencySymbol = 19; Sc
UGC_ModifierSymbol = 20; Sk
UGC_OtherSymbol = 21; So
UGC_SpaceSeparator = 22; Zs
UGC_LineSeparator = 23; Zl
UGC_ParagraphSeparator = 24; Zp
UGC_Control = 25; Cc
UGC_Format = 26; Cf
UGC_Surrogate = 27; Cs
UGC_PrivateUse = 28; Co
UGC_Unassigned = 29; Cn
==
Mantis conversion info:
- Mantis ID: 36478
- Version: 3.3.1
- Fixed in version: 3.3.1
- Fixed in revision: 43799 (#a37cb2d2)
- Target version: 3.2.0