View Issue Details

IDProjectCategoryView StatusLast Update
0036478FPCRTLpublic2019-12-27 12:09
ReporterCudaText manAssigned ToMichael Van Canneyt 
PrioritynormalSeverityminorReproducibilityN/A
Status resolvedResolutionfixed 
Product Version3.3.1Product Build 
Target VersionFixed in Version3.3.1 
Summary0036478: UnicodeData: add unicode category names
DescriptionUnicodeData 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
==
TagsNo tags attached.
Fixed in Revision43799
FPCOldBugId
FPCTarget3.2.0
Attached Files

Activities

CudaText man

2019-12-25 21:53

reporter   ~0120065

const
  UnicodeCategoryNames: array[0..29] of string[2] = (
    'Lu',
    'Ll',
    'Lt',
    'Lm',
    'Lo',
    'Mn',
    'Mc',
    'Me',
    'Nd',
    'Nl',
    'No',
    'Pc',
    'Pd',
    'Ps',
    'Pe',
    'Pi',
    'Pf',
    'Po',
    'Sm',
    'Sc',
    'Sk',
    'So',
    'Zs',
    'Zl',
    'Zp',
    'Cc',
    'Cf',
    'Cs',
    'Co',
    'Cn'
    );

Michael Van Canneyt

2019-12-27 12:09

administrator   ~0120085

Applied, thank you for the patch !

Issue History

Date Modified Username Field Change
2019-12-25 21:46 CudaText man New Issue
2019-12-25 21:53 CudaText man Note Added: 0120065
2019-12-27 12:09 Michael Van Canneyt Assigned To => Michael Van Canneyt
2019-12-27 12:09 Michael Van Canneyt Status new => resolved
2019-12-27 12:09 Michael Van Canneyt Resolution open => fixed
2019-12-27 12:09 Michael Van Canneyt Fixed in Version => 3.3.1
2019-12-27 12:09 Michael Van Canneyt Fixed in Revision => 43799
2019-12-27 12:09 Michael Van Canneyt FPCTarget => 3.2.0
2019-12-27 12:09 Michael Van Canneyt Note Added: 0120085