Bug Fixes
-
Word breaking in a dictionary locale now applies the dictionary only to runs of text written in the script(s) that dictionary covers, with the standard Unicode rules governing everything else. Previously
Unicode.String.split("Japanese", break: :word, locale: :ja)returned each letter separately. -
Word and line breaking no longer raise a
File.Errorwhen the ICU dictionaries have not been downloaded withmix unicode.string.download.dictionaries. Segmentation now falls back to the standard Unicode rules, andUnicode.String.break/2andUnicode.String.splitter/2return{:error, reason}.