Skip to content

Commit 24651a2

Browse files
authored
Merge pull request #33 from chrisduerr/unicode_15_1
Update to Unicode 15.1
2 parents 8872449 + 30e33bd commit 24651a2

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

scripts/unicode.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,9 @@ def load_east_asian_widths() -> "list[EffectiveWidth]":
106106
`Ambiguous` chracters are assigned `EffectiveWidth.AMBIGUOUS`."""
107107
with fetch_open("EastAsianWidth.txt") as eaw:
108108
# matches a width assignment for a single codepoint, i.e. "1F336;N # ..."
109-
single = re.compile(r"^([0-9A-F]+);(\w+) +# (\w+)")
109+
single = re.compile(r"^([0-9A-F]+)\s+;\s+(\w+) +# (\w+)")
110110
# matches a width assignment for a range of codepoints, i.e. "3001..3003;W # ..."
111-
multiple = re.compile(r"^([0-9A-F]+)\.\.([0-9A-F]+);(\w+) +# (\w+)")
111+
multiple = re.compile(r"^([0-9A-F]+)\.\.([0-9A-F]+)\s+;\s+(\w+) +# (\w+)")
112112
# map between width category code and condensed width
113113
width_codes = {
114114
**{c: EffectiveWidth.NARROW for c in ["N", "Na", "H"]},

src/tables.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

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

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