- Unicode 16
- Unicode 15.1
More performance improvements:
- Optimize lookup of first 4096 codepoints
- Avoid overwrite lookup if no overwrites are set
- Improve general performance!
- Further improve performance for ASCII strings
You should really upgrade - it's much faster now!
- Improve performance for ASCII-only strings, by @fatkodima
- Require Ruby 2.4
- Unicode 15.0
- Add Hangul Jamo Extended-B block to zero-width chars, thanks @ninjalj #22
- Unicode 14.0
- Release 2.0.0
- Supports Ruby 3.0
- Update 2.0 branch to Unicode 13
Will be published as non-pre version on rubygems.org when Ruby 3.0 is released (December 2020)
- Introduce new class-based API, which remembers your string-width configuration. See README for details.
- Remove auto-loading of string extension
- You can:
require "unicode/display_width/string_ext"
to continue to use the string extension - The manual opt-out
require "unicode/display_width/no_string_ext"
is not needed anymore and will issue a warning in the future
- You can:
- Remove (already deprecated) String#display_size and String#display_width aliases
Refactorings / Internal Changes:
- Freeze string literals
- The Unicode::DisplayWidth now is class, instead of a module, this enables the new config-object API
- Unicode 14.0 (last release of 1.x)
- Unicode 13
- Fix that ambiguous and overwrite options where ignored for emoji-measuring
- Unicode 12.1
- Unicode 12
- Only bundle required lib/* and data/* files in actual rubygem, patch by @tas50
- Unicode 11
- Replace Gem::Util.gunzip with direct zlib implementation This removes the dependency on rubygems, fixes #17
- Explicitly load rubygems/util, fixes regression in 1.3.1 (autoload issue)
- Use
Gem::Util
forgunzip
, removes deprecation warning, patch by @Schwad
- Unicode 10
- Fix bug that
emoji: true
would fail for emoji without modifier
- Add zero-width codepoint ranges: U+2060..U+206F, U+FFF0..U+FFF8, U+E0000..U+E0FFF
- Add full-witdh codepoint ranges: U+3400..U+4DBF, U+4E00..U+9FFF, U+F900..U+FAFF, U+20000..U+2FFFD, U+30000..U+3FFFD
- Experimental emoji support using the unicode-emoji gem
- Fix minor bug in index compression scheme
- Fix that non-UTF-8 encodings do not throw errors, patch by @windwiny
- Reduce memory consumption and increase performance, patch by @rrosenblum
- Always load index into memory, fixes #9
- Support Unicode 9.0
- Actually include new index from 1.0.4
- New index format (much smaller) and internal API changes
- Move index generation to a builder plugin for the unicoder gem
- No public API changes
- Avoid circular dependency warning
- Fix error that gemspec might be invalid under some circumstances (see gh#6)
- Inofficially allow Ruby 1.9
- Faster than 0.3.1
- Advanced determination of character width
- This includes: Treat width of most chars of general categories (Mn, Me, Cf) as 0
- This includes: Introduce list of characters with special widths
- Allow custom overrides for specific codepoints
- Set required Ruby version to 2.0
- Add NO_STRING_EXT mode to disable monkey patching
- Internal API & index format changed drastically
- Remove require 'unicode/display_size' (use 'unicode/display_width' instead)
- Faster than 0.3.0
- Deprecate usage of aliases: String#display_size and String#display_length
- Eliminate Ruby warnings (@amatsuda)
- Update EastAsianWidth from 7.0 to 8.0
- Add rake task to update EastAsianWidth.txt
- Move code to generate index from library to Rakefile
- Update project's meta files
- Deprecate requiring 'unicode-display_size'
- Update EastAsianWidth from 6.0 to 7.0
- Don't build index table automatically when not available
- Don't include EastAsianWidth.txt in gem (only index)
- Fix github issue #1
- Initial release