Skip to content

Commit

Permalink
Add *Hangul Jamo Extended-B* block to zero-width chars
Browse files Browse the repository at this point in the history
  • Loading branch information
janlelis committed Jun 24, 2022
1 parent 53a5c13 commit cdbb5de
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGELOG

## 2.2.0 (unreleased)

- Add *Hangul Jamo Extended-B* block to zero-width chars, thanks @ninjalj

## 2.1.0

- Unicode 14.0
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ X | (user defined) | Overwrites any other values
2 | `"\u{2E3A}"` | TWO-EM DASH
3 | `"\u{2E3B}"` | THREE-EM DASH
0 | General Categories: Mn, Me, Cf (non-arabic) | Excludes ARABIC format characters
0 | `"\u{1160}".."\u{11FF}"` | HANGUL JUNGSEONG
0 | `"\u{1160}".."\u{11FF}"`, `"\u{D7B0}".."\u{D7FF}"` | HANGUL JUNGSEONG
0 | `"\u{2060}".."\u{206F}"`, `"\u{FFF0}".."\u{FFF8}"`, `"\u{E0000}".."\u{E0FFF}"` | Ignorable ranges
2 | East Asian Width: F, W | Full-width characters
2 | `"\u{3400}".."\u{4DBF}"`, `"\u{4E00}".."\u{9FFF}"`, `"\u{F900}".."\u{FAFF}"`, `"\u{20000}".."\u{2FFFD}"`, `"\u{30000}".."\u{3FFFD}"` | Full-width ranges
Expand Down
Binary file modified data/display_width.marshal.gz
Binary file not shown.
1 change: 1 addition & 0 deletions spec/display_width_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@

it 'returns 0 for HANGUL JUNGSEONG chars' do
expect( 'ᅠ'.display_width ).to eq 0
expect( 'ힰ'.display_width ).to eq 0
end

it 'returns 0 for U+2060..U+206F' do
Expand Down

0 comments on commit cdbb5de

Please sign in to comment.