From 02f4e1890cf8135b609b404c58ac7e8b27136ad6 Mon Sep 17 00:00:00 2001 From: "Steven G. Johnson" Date: Tue, 24 Jul 2018 10:45:02 -0400 Subject: charwidth=1 for soft hyphen and unassigned codepoints (#135) * use width=1 for soft hyphen and for unassigned/PUA codepoints * don't count unassigned codepoints when comparing with system wcwidth * more tests * indentation fixes * NEWS for 135 * remove special-casing for arabic control characters affecting a span of numbers, which are sometimes zero-width and sometimes not * regenerate --- NEWS.md | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'NEWS.md') diff --git a/NEWS.md b/NEWS.md index 7e0b6e0..24f15f0 100644 --- a/NEWS.md +++ b/NEWS.md @@ -17,6 +17,9 @@ - `toupper` of ß (U+00df) now yields ẞ (U+1E9E) ([#134]), similar to musl; case-folding still yields the standard "ss" mapping. +- `utf8proc_charwidth` now returns `1` for U+00AD (soft hyphen) and + for unassigned/PUA codepoints ([#135]). + ## Version 2.1.1 ## 2018-04-27 @@ -336,3 +339,4 @@ Release of version 1.0.1 [#132]: https://github.com/JuliaLang/utf8proc/issues/132 [#133]: https://github.com/JuliaLang/utf8proc/issues/133 [#134]: https://github.com/JuliaLang/utf8proc/issues/134 +[#135]: https://github.com/JuliaLang/utf8proc/issues/135 -- cgit v1.2.3