wcwidth 0.2.12__py2.py3-none-any.whl → 0.2.14__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of wcwidth might be problematic. Click here for more details.
- wcwidth/__init__.py +1 -1
- wcwidth/table_vs15.py +103 -0
- wcwidth/table_vs16.py +2 -2
- wcwidth/table_wide.py +339 -69
- wcwidth/table_zero.py +729 -20
- wcwidth/unicode_versions.py +3 -1
- wcwidth/wcwidth.py +20 -36
- {wcwidth-0.2.12.dist-info → wcwidth-0.2.14.dist-info}/METADATA +35 -11
- wcwidth-0.2.14.dist-info/RECORD +13 -0
- {wcwidth-0.2.12.dist-info → wcwidth-0.2.14.dist-info}/WHEEL +1 -1
- wcwidth-0.2.12.dist-info/RECORD +0 -12
- {wcwidth-0.2.12.dist-info → wcwidth-0.2.14.dist-info/licenses}/LICENSE +0 -0
- {wcwidth-0.2.12.dist-info → wcwidth-0.2.14.dist-info}/top_level.txt +0 -0
- {wcwidth-0.2.12.dist-info → wcwidth-0.2.14.dist-info}/zip-safe +0 -0
wcwidth/__init__.py
CHANGED
|
@@ -26,4 +26,4 @@ __all__ = ('wcwidth', 'wcswidth', 'list_versions')
|
|
|
26
26
|
# We also used pkg_resources to load unicode version tables from version.json,
|
|
27
27
|
# generated by bin/update-tables.py, but some environments are unable to
|
|
28
28
|
# import pkg_resources for one reason or another, yikes!
|
|
29
|
-
__version__ = '0.2.
|
|
29
|
+
__version__ = '0.2.14'
|
wcwidth/table_vs15.py
ADDED
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Exports VS15_WIDE_TO_NARROW table keyed by supporting unicode version level.
|
|
3
|
+
|
|
4
|
+
This code generated by wcwidth/bin/update-tables.py on 2024-02-14 19:59:22 UTC.
|
|
5
|
+
"""
|
|
6
|
+
VS15_WIDE_TO_NARROW = {
|
|
7
|
+
'9.0.0': (
|
|
8
|
+
# Source: 9.0.0
|
|
9
|
+
# Date: 2023-02-01, 02:22:54 GMT
|
|
10
|
+
#
|
|
11
|
+
(0x0231a, 0x0231b,), # Watch ..Hourglass
|
|
12
|
+
(0x023e9, 0x023ec,), # Black Right-pointing Dou..Black Down-pointing Doub
|
|
13
|
+
(0x023f0, 0x023f0,), # Alarm Clock
|
|
14
|
+
(0x023f3, 0x023f3,), # Hourglass With Flowing Sand
|
|
15
|
+
(0x025fd, 0x025fe,), # White Medium Small Squar..Black Medium Small Squar
|
|
16
|
+
(0x02614, 0x02615,), # Umbrella With Rain Drops..Hot Beverage
|
|
17
|
+
(0x02648, 0x02653,), # Aries ..Pisces
|
|
18
|
+
(0x0267f, 0x0267f,), # Wheelchair Symbol
|
|
19
|
+
(0x02693, 0x02693,), # Anchor
|
|
20
|
+
(0x026a1, 0x026a1,), # High Voltage Sign
|
|
21
|
+
(0x026aa, 0x026ab,), # Medium White Circle ..Medium Black Circle
|
|
22
|
+
(0x026bd, 0x026be,), # Soccer Ball ..Baseball
|
|
23
|
+
(0x026c4, 0x026c5,), # Snowman Without Snow ..Sun Behind Cloud
|
|
24
|
+
(0x026ce, 0x026ce,), # Ophiuchus
|
|
25
|
+
(0x026d4, 0x026d4,), # No Entry
|
|
26
|
+
(0x026ea, 0x026ea,), # Church
|
|
27
|
+
(0x026f2, 0x026f3,), # Fountain ..Flag In Hole
|
|
28
|
+
(0x026f5, 0x026f5,), # Sailboat
|
|
29
|
+
(0x026fa, 0x026fa,), # Tent
|
|
30
|
+
(0x026fd, 0x026fd,), # Fuel Pump
|
|
31
|
+
(0x02705, 0x02705,), # White Heavy Check Mark
|
|
32
|
+
(0x0270a, 0x0270b,), # Raised Fist ..Raised Hand
|
|
33
|
+
(0x02728, 0x02728,), # Sparkles
|
|
34
|
+
(0x0274c, 0x0274c,), # Cross Mark
|
|
35
|
+
(0x0274e, 0x0274e,), # Negative Squared Cross Mark
|
|
36
|
+
(0x02753, 0x02755,), # Black Question Mark Orna..White Exclamation Mark O
|
|
37
|
+
(0x02757, 0x02757,), # Heavy Exclamation Mark Symbol
|
|
38
|
+
(0x02795, 0x02797,), # Heavy Plus Sign ..Heavy Division Sign
|
|
39
|
+
(0x027b0, 0x027b0,), # Curly Loop
|
|
40
|
+
(0x027bf, 0x027bf,), # Double Curly Loop
|
|
41
|
+
(0x02b1b, 0x02b1c,), # Black Large Square ..White Large Square
|
|
42
|
+
(0x02b50, 0x02b50,), # White Medium Star
|
|
43
|
+
(0x02b55, 0x02b55,), # Heavy Large Circle
|
|
44
|
+
(0x03030, 0x03030,), # Wavy Dash
|
|
45
|
+
(0x0303d, 0x0303d,), # Part Alternation Mark
|
|
46
|
+
(0x03297, 0x03297,), # Circled Ideograph Congratulation
|
|
47
|
+
(0x03299, 0x03299,), # Circled Ideograph Secret
|
|
48
|
+
(0x1f004, 0x1f004,), # Mahjong Tile Red Dragon
|
|
49
|
+
(0x1f202, 0x1f202,), # Squared Katakana Sa
|
|
50
|
+
(0x1f21a, 0x1f21a,), # Squared Cjk Unified Ideograph-7121
|
|
51
|
+
(0x1f22f, 0x1f22f,), # Squared Cjk Unified Ideograph-6307
|
|
52
|
+
(0x1f237, 0x1f237,), # Squared Cjk Unified Ideograph-6708
|
|
53
|
+
(0x1f30d, 0x1f30f,), # Earth Globe Europe-afric..Earth Globe Asia-austral
|
|
54
|
+
(0x1f315, 0x1f315,), # Full Moon Symbol
|
|
55
|
+
(0x1f31c, 0x1f31c,), # Last Quarter Moon With Face
|
|
56
|
+
(0x1f378, 0x1f378,), # Cocktail Glass
|
|
57
|
+
(0x1f393, 0x1f393,), # Graduation Cap
|
|
58
|
+
(0x1f3a7, 0x1f3a7,), # Headphone
|
|
59
|
+
(0x1f3ac, 0x1f3ae,), # Clapper Board ..Video Game
|
|
60
|
+
(0x1f3c2, 0x1f3c2,), # Snowboarder
|
|
61
|
+
(0x1f3c4, 0x1f3c4,), # Surfer
|
|
62
|
+
(0x1f3c6, 0x1f3c6,), # Trophy
|
|
63
|
+
(0x1f3ca, 0x1f3ca,), # Swimmer
|
|
64
|
+
(0x1f3e0, 0x1f3e0,), # House Building
|
|
65
|
+
(0x1f3ed, 0x1f3ed,), # Factory
|
|
66
|
+
(0x1f408, 0x1f408,), # Cat
|
|
67
|
+
(0x1f415, 0x1f415,), # Dog
|
|
68
|
+
(0x1f41f, 0x1f41f,), # Fish
|
|
69
|
+
(0x1f426, 0x1f426,), # Bird
|
|
70
|
+
(0x1f442, 0x1f442,), # Ear
|
|
71
|
+
(0x1f446, 0x1f449,), # White Up Pointing Backha..White Right Pointing Bac
|
|
72
|
+
(0x1f44d, 0x1f44e,), # Thumbs Up Sign ..Thumbs Down Sign
|
|
73
|
+
(0x1f453, 0x1f453,), # Eyeglasses
|
|
74
|
+
(0x1f46a, 0x1f46a,), # Family
|
|
75
|
+
(0x1f47d, 0x1f47d,), # Extraterrestrial Alien
|
|
76
|
+
(0x1f4a3, 0x1f4a3,), # Bomb
|
|
77
|
+
(0x1f4b0, 0x1f4b0,), # Money Bag
|
|
78
|
+
(0x1f4b3, 0x1f4b3,), # Credit Card
|
|
79
|
+
(0x1f4bb, 0x1f4bb,), # Personal Computer
|
|
80
|
+
(0x1f4bf, 0x1f4bf,), # Optical Disc
|
|
81
|
+
(0x1f4cb, 0x1f4cb,), # Clipboard
|
|
82
|
+
(0x1f4da, 0x1f4da,), # Books
|
|
83
|
+
(0x1f4df, 0x1f4df,), # Pager
|
|
84
|
+
(0x1f4e4, 0x1f4e6,), # Outbox Tray ..Package
|
|
85
|
+
(0x1f4ea, 0x1f4ed,), # Closed Mailbox With Lowe..Open Mailbox With Lowere
|
|
86
|
+
(0x1f4f7, 0x1f4f7,), # Camera
|
|
87
|
+
(0x1f4f9, 0x1f4fb,), # Video Camera ..Radio
|
|
88
|
+
(0x1f508, 0x1f508,), # Speaker
|
|
89
|
+
(0x1f50d, 0x1f50d,), # Left-pointing Magnifying Glass
|
|
90
|
+
(0x1f512, 0x1f513,), # Lock ..Open Lock
|
|
91
|
+
(0x1f550, 0x1f567,), # Clock Face One Oclock ..Clock Face Twelve-thirty
|
|
92
|
+
(0x1f610, 0x1f610,), # Neutral Face
|
|
93
|
+
(0x1f687, 0x1f687,), # Metro
|
|
94
|
+
(0x1f68d, 0x1f68d,), # Oncoming Bus
|
|
95
|
+
(0x1f691, 0x1f691,), # Ambulance
|
|
96
|
+
(0x1f694, 0x1f694,), # Oncoming Police Car
|
|
97
|
+
(0x1f698, 0x1f698,), # Oncoming Automobile
|
|
98
|
+
(0x1f6ad, 0x1f6ad,), # No Smoking Symbol
|
|
99
|
+
(0x1f6b2, 0x1f6b2,), # Bicycle
|
|
100
|
+
(0x1f6b9, 0x1f6ba,), # Mens Symbol ..Womens Symbol
|
|
101
|
+
(0x1f6bc, 0x1f6bc,), # Baby Symbol
|
|
102
|
+
),
|
|
103
|
+
}
|
wcwidth/table_vs16.py
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"""
|
|
2
2
|
Exports VS16_NARROW_TO_WIDE table keyed by supporting unicode version level.
|
|
3
3
|
|
|
4
|
-
This code generated by wcwidth/bin/update-tables.py on
|
|
4
|
+
This code generated by wcwidth/bin/update-tables.py on 2025-09-15 16:57:50 UTC.
|
|
5
5
|
"""
|
|
6
6
|
VS16_NARROW_TO_WIDE = {
|
|
7
7
|
'9.0.0': (
|
|
8
8
|
# Source: 9.0.0
|
|
9
|
-
# Date:
|
|
9
|
+
# Date: 2025-01-30, 21:48:29 GMT
|
|
10
10
|
#
|
|
11
11
|
(0x00023, 0x00023,), # Number Sign
|
|
12
12
|
(0x0002a, 0x0002a,), # Asterisk
|