Unicode character properties #
A unicode character may have properties. A property has a name
and a type (Unicode.PropertyType
) and may have values.
see
The type of a property
- Catalog: Unicode.PropertyType
- Enumeration: Unicode.PropertyType
- Binary: Unicode.PropertyType
- String: Unicode.PropertyType
- Numeric: Unicode.PropertyType
- Miscellaneous: Unicode.PropertyType
Instances For
Property names, extends Basic Unicode Support Level 1 properties
- General_Category: Unicode.PropertyName
- Script: Unicode.PropertyName
- Alphabetic: Unicode.PropertyName
- Uppercase: Unicode.PropertyName
- Lowercase: Unicode.PropertyName
- White_Space: Unicode.PropertyName
- Noncharacter_Code_Point: Unicode.PropertyName
- Default_Ignorable_Code_Point: Unicode.PropertyName
- ANY: Unicode.PropertyName
- ASCII: Unicode.PropertyName
- ASSIGNED: Unicode.PropertyName
- Numeric_Value: Unicode.PropertyName
- Hex_Digit: Unicode.PropertyName
- ASCII_Hex_Digit: Unicode.PropertyName
- Emoji: Unicode.PropertyName
- Extended_Pictographic: Unicode.PropertyName
- Grapheme_Cluster_Break: Unicode.PropertyName
- Sentence_Break: Unicode.PropertyName
- Word_Break: Unicode.PropertyName
- Math: Unicode.PropertyName
- Regional_Indicator: Unicode.PropertyName
Instances For
Equations
- Unicode.instBEqPropertyName = { beq := Unicode.beqPropertyName✝ }
Equations
- One or more equations did not get rendered due to their size.
get type of property
Equations
- Unicode.typeOfProperty Unicode.PropertyName.General_Category = Unicode.PropertyType.Enumeration
- Unicode.typeOfProperty Unicode.PropertyName.Script = Unicode.PropertyType.Enumeration
- Unicode.typeOfProperty Unicode.PropertyName.Alphabetic = Unicode.PropertyType.Binary
- Unicode.typeOfProperty Unicode.PropertyName.Uppercase = Unicode.PropertyType.Binary
- Unicode.typeOfProperty Unicode.PropertyName.Lowercase = Unicode.PropertyType.Binary
- Unicode.typeOfProperty Unicode.PropertyName.White_Space = Unicode.PropertyType.Binary
- Unicode.typeOfProperty Unicode.PropertyName.Noncharacter_Code_Point = Unicode.PropertyType.Binary
- Unicode.typeOfProperty Unicode.PropertyName.Default_Ignorable_Code_Point = Unicode.PropertyType.Binary
- Unicode.typeOfProperty Unicode.PropertyName.ANY = Unicode.PropertyType.Binary
- Unicode.typeOfProperty Unicode.PropertyName.ASCII = Unicode.PropertyType.Binary
- Unicode.typeOfProperty Unicode.PropertyName.ASSIGNED = Unicode.PropertyType.Binary
- Unicode.typeOfProperty Unicode.PropertyName.Numeric_Value = Unicode.PropertyType.Numeric
- Unicode.typeOfProperty Unicode.PropertyName.Hex_Digit = Unicode.PropertyType.Binary
- Unicode.typeOfProperty Unicode.PropertyName.ASCII_Hex_Digit = Unicode.PropertyType.Binary
- Unicode.typeOfProperty Unicode.PropertyName.Emoji = Unicode.PropertyType.Binary
- Unicode.typeOfProperty Unicode.PropertyName.Extended_Pictographic = Unicode.PropertyType.Binary
- Unicode.typeOfProperty Unicode.PropertyName.Grapheme_Cluster_Break = Unicode.PropertyType.Enumeration
- Unicode.typeOfProperty Unicode.PropertyName.Sentence_Break = Unicode.PropertyType.Enumeration
- Unicode.typeOfProperty Unicode.PropertyName.Word_Break = Unicode.PropertyType.Enumeration
- Unicode.typeOfProperty Unicode.PropertyName.Math = Unicode.PropertyType.Binary
- Unicode.typeOfProperty Unicode.PropertyName.Regional_Indicator = Unicode.PropertyType.Binary
Instances For
Equations
- Unicode.matchPropertyAlias s palias = (decide (Unicode.normalize s = palias.short) || decide (Unicode.normalize s = Unicode.normalize palias.long))
Instances For
get PropertyValueAlias of property name and value
Equations
- Unicode.getPropertyValueAlias name val = match Unicode.propertyValueAliases.find? (Unicode.matchPropertyValueAlias name val) with | some palias => some palias | none => none
Instances For
get PropertyName of property name s
Instances For
get GeneralCategory of long property value s
Instances For
get GeneralCategory of property value s
Equations
Instances For
get PropertyName of property value
Equations
- Unicode.ofValue? s = match Unicode.GeneralCategory.ofValue? s.toSubstring with | some val => some Unicode.PropertyName.General_Category | none => none
Instances For
get PropertyName of compatibility property name, see Compatibility_Properties
Equations
- One or more equations did not get rendered due to their size.