Repository navigation
This release makes every property value the Unicode Character Database declares resolvable, including the values a data file supplies only through an @missing annotation.
Enhancements
-
Resolves the default value of fifteen further properties, so
\p{jt=U},\p{bpt=None},\p{sc=Unknown},\p{age=NA}and their companions now answer. Every property's values together account for all 1,114,112 codepoints, where before only five did. -
Applies the range-specific defaults
BidiClass.txtdeclares, so an unassigned codepoint in a right-to-left block resolves asRorALrather thanL. -
Resolves
Joining_Groupvalues from any spelling, including theCrown_AinformPropertyValueAliases.txtuses. 73 of the 116 values previously resolved from neither spelling. -
Resolves binary property aliases that contain a separator, such as
Bidi_M,Gr_BaseandPat_Syn, which the lookup normalised but the alias table did not. -
Documents
Unicode.fetch_property/1andUnicode.get_property/1, which resolve a property named at runtime to the module that serves it. Both were public but carried@doc false, so the lookup thatunicode_setevaluates set expressions with was absent from the documentation. -
Adds an introduction guide covering the shape of the API: the three ways to reach a property, naming property values, character names, script extensions and the guards. Its examples run as doctests.
-
Loads
NameAliases.txt, soUnicode.CharacterName.to_codepoint/2resolves the names of the control characters, which have noNameproperty, along with abbreviations such asLFand the corrections for characters whose published name contains an error.Unicode.CharacterName.aliases/1returns a codepoint's aliases with their types.
Bug fixes
Unicode.EastAsianWidth.east_asian_width_category/1returns the UCD default:n, rather than:otherwhich is not a value of the property, for codepointsEastAsianWidth.txtomits.
Notes
known_*/0andcount/1include the default value for the affected properties, so those lists and counts are larger than in 2.1.0.