Skip to content

Commit

Permalink
Merge pull request #33 from chrisduerr/unicode_15_1
Browse files Browse the repository at this point in the history
Update to Unicode 15.1
  • Loading branch information
Manishearth authored Sep 19, 2023
2 parents 8872449 + 30e33bd commit 24651a2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions scripts/unicode.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,9 @@ def load_east_asian_widths() -> "list[EffectiveWidth]":
`Ambiguous` chracters are assigned `EffectiveWidth.AMBIGUOUS`."""
with fetch_open("EastAsianWidth.txt") as eaw:
# matches a width assignment for a single codepoint, i.e. "1F336;N # ..."
single = re.compile(r"^([0-9A-F]+);(\w+) +# (\w+)")
single = re.compile(r"^([0-9A-F]+)\s+;\s+(\w+) +# (\w+)")
# matches a width assignment for a range of codepoints, i.e. "3001..3003;W # ..."
multiple = re.compile(r"^([0-9A-F]+)\.\.([0-9A-F]+);(\w+) +# (\w+)")
multiple = re.compile(r"^([0-9A-F]+)\.\.([0-9A-F]+)\s+;\s+(\w+) +# (\w+)")
# map between width category code and condensed width
width_codes = {
**{c: EffectiveWidth.NARROW for c in ["N", "Na", "H"]},
Expand Down
6 changes: 3 additions & 3 deletions src/tables.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

/// The version of [Unicode](http://www.unicode.org/)
/// that this version of unicode-width is based on.
pub const UNICODE_VERSION: (u8, u8, u8) = (15, 0, 0);
pub const UNICODE_VERSION: (u8, u8, u8) = (15, 1, 0);

pub mod charwidth {
use core::option::Option::{self, None, Some};
Expand Down Expand Up @@ -395,13 +395,13 @@ pub mod charwidth {
0x00, 0x00, 0x00, 0x00, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0x9A, 0xAA, 0xAA, 0xAA, 0xAA,
0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA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