Releases: elixir-unicode/unicode_string
Unicode String version 1.7.0
Unicode String version 1.6.0
Bug Fixes
- Fix word break detection when a
\p{word_break=extend}codepoint is preceeded by a letter and followed by a letter.
Enhancements
- Updated to CLDR 47 break rules and test data.
Unicode String version 1.5.0
Enhancements
-
Update to CLDR 46.1 segmentation data and tests.
-
Pass dialyzer with
:underspecsflag set.
Unicode String version 1.4.1
Unicode String version 1.3.1
Bug Fixes
- Fix
Unicode.String.split/2andUnicode.String.next/2when the passing rule is:no_breakrule. Thanks to @GregLMcDonald for the report. Closes #5.
Unicode String version 1.3.0
Bug Fixes
- Fix case folding for codepoints that fold to themselves.
Enhancements
-
Adds case mapping functions
Unicode.String.upcase/2,Unicode.String.downcase/2andUnicode/String.titlecase/2. These functions implement the full Unicode Casing algorithm including conditiional mappings. They are locale-aware and a locale can be specified as a string, atom or a Cldr.LanguageTag thereby providing basic integration betweenunicode_stringand ex_cldr. -
Case folding always follows the
:fullpath which allows mapping of single code points to multiple code points. There is no practical reason to implement the:simplepath. As a result, thetypeparameter toUnicode.String.Case.Folding.fold/2is no longer required or supported. -
Support an ex_cldr Language Tag as a parameter to
Unicode.String.Case.Folding.fold/2. In fact any map that has a:languagekey with a value that is an ISO 639-1 language code as a lower cased atom may be passed as a parameter.
Unicode String version 1.2.1
Unicode String version 1.2.0
Enhancements
- Adds
Unicode.String.stream/2to support streaming graphemes, words, sentences and line breaks.
Unicode String version 1.1.0
Enhancements
- Updates the segmentation supplemental data (including locales) for CLDR. This adds the "sv" and "fi" locale data for sentence break suppressions.
Unicode String version 1.0.1
Bug Fixes
- Woops, the priv/segments directory was not included in the build artifact