Skip to content

Unicode version 1.1.0

Choose a tag to compare

@kipcole9 kipcole9 released this 22 Nov 20:45

Breaking Changes

  • Removed Unicode.Guards from this library and moved them to the unicode_set package.

Enhancements

  • Unicode.Category.categories/0 now returns the super categories as well as the subcategories. These super categories are computed at compile time by consolidating the relevant subcategories. Unicode.Category.category/1 will only return one category, and it will be the subcategory as it consistent with earlier releases.

  • Add Unicode.ranges/0 that returns all Unicode codepoints as a list of 2-tuples representing the disjoint ranges of valid codepoints. The list is in sorted order.

  • Add aliases/0 for Unicode.Category, Unicode.Script, Unicode.Block, and Unicode.CombiningClass which returns the alias map for the relevant module.

  • Add fetch/1 and get/1 for Unicode.Category, Unicode.Script, Unicode.Block, and Unicode.CombiningClass. These functions leverage Unicode property value aliases for retrieving codepoints.

  • Add Unicode.fetch_property/1 and Unicode.get_property/1 that return the module responsible for handling a given Unicode property.

  • Add Unicode.compact_ranges/1 that given a list of 2-tuple ranges will compact them into as small a list of contiguous blocks as possible

  • Documented all public functions