Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 375732c

Browse files
author
Fredrik Lundh
committed
- don't set the titlecase flag for uppercase letters (sorry, tim)
1 parent f1fcc81 commit 375732c

2 files changed

Lines changed: 42 additions & 42 deletions

File tree

Objects/unicodetype_db.h

Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* this file was generated by tools\unicode\makeunicodedata.py 1.1 */
1+
/* this file was generated by Tools\unicode\makeunicodedata.py 1.1 */
22

33
/* a list of unique character type descriptors */
44
const _PyUnicode_TypeRecord _PyUnicode_TypeRecords[] = {
@@ -16,40 +16,40 @@ const _PyUnicode_TypeRecord _PyUnicode_TypeRecords[] = {
1616
{6, 0, 0, 0, 7, 7},
1717
{6, 0, 0, 0, 8, 8},
1818
{6, 0, 0, 0, 9, 9},
19-
{193, 0, 32, 0, 0, 0},
19+
{129, 0, 32, 0, 0, 0},
2020
{9, 65504, 0, 65504, 0, 0},
2121
{9, 0, 0, 0, 0, 0},
2222
{9, 743, 0, 743, 0, 0},
2323
{9, 121, 0, 121, 0, 0},
24-
{193, 0, 1, 0, 0, 0},
24+
{129, 0, 1, 0, 0, 0},
2525
{9, 65535, 0, 65535, 0, 0},
26-
{193, 0, 65337, 0, 0, 0},
26+
{129, 0, 65337, 0, 0, 0},
2727
{9, 65304, 0, 65304, 0, 0},
28-
{193, 0, 65415, 0, 0, 0},
28+
{129, 0, 65415, 0, 0, 0},
2929
{9, 65236, 0, 65236, 0, 0},
30-
{193, 0, 210, 0, 0, 0},
31-
{193, 0, 206, 0, 0, 0},
32-
{193, 0, 205, 0, 0, 0},
33-
{193, 0, 79, 0, 0, 0},
34-
{193, 0, 202, 0, 0, 0},
35-
{193, 0, 203, 0, 0, 0},
36-
{193, 0, 207, 0, 0, 0},
30+
{129, 0, 210, 0, 0, 0},
31+
{129, 0, 206, 0, 0, 0},
32+
{129, 0, 205, 0, 0, 0},
33+
{129, 0, 79, 0, 0, 0},
34+
{129, 0, 202, 0, 0, 0},
35+
{129, 0, 203, 0, 0, 0},
36+
{129, 0, 207, 0, 0, 0},
3737
{9, 97, 0, 97, 0, 0},
38-
{193, 0, 211, 0, 0, 0},
39-
{193, 0, 209, 0, 0, 0},
40-
{193, 0, 213, 0, 0, 0},
41-
{193, 0, 214, 0, 0, 0},
42-
{193, 0, 218, 0, 0, 0},
43-
{193, 0, 217, 0, 0, 0},
44-
{193, 0, 219, 0, 0, 0},
38+
{129, 0, 211, 0, 0, 0},
39+
{129, 0, 209, 0, 0, 0},
40+
{129, 0, 213, 0, 0, 0},
41+
{129, 0, 214, 0, 0, 0},
42+
{129, 0, 218, 0, 0, 0},
43+
{129, 0, 217, 0, 0, 0},
44+
{129, 0, 219, 0, 0, 0},
4545
{1, 0, 0, 0, 0, 0},
4646
{9, 56, 0, 56, 0, 0},
47-
{193, 0, 2, 1, 0, 0},
47+
{129, 0, 2, 1, 0, 0},
4848
{65, 65535, 1, 0, 0, 0},
4949
{9, 65534, 0, 65535, 0, 0},
5050
{9, 65457, 0, 65457, 0, 0},
51-
{193, 0, 65439, 0, 0, 0},
52-
{193, 0, 65480, 0, 0, 0},
51+
{129, 0, 65439, 0, 0, 0},
52+
{129, 0, 65480, 0, 0, 0},
5353
{9, 65326, 0, 65326, 0, 0},
5454
{9, 65330, 0, 65330, 0, 0},
5555
{9, 65331, 0, 65331, 0, 0},
@@ -64,28 +64,28 @@ const _PyUnicode_TypeRecord _PyUnicode_TypeRecords[] = {
6464
{9, 65319, 0, 65319, 0, 0},
6565
{9, 65317, 0, 65317, 0, 0},
6666
{0, 84, 0, 84, 0, 0},
67-
{193, 0, 38, 0, 0, 0},
68-
{193, 0, 37, 0, 0, 0},
69-
{193, 0, 64, 0, 0, 0},
70-
{193, 0, 63, 0, 0, 0},
67+
{129, 0, 38, 0, 0, 0},
68+
{129, 0, 37, 0, 0, 0},
69+
{129, 0, 64, 0, 0, 0},
70+
{129, 0, 63, 0, 0, 0},
7171
{9, 65498, 0, 65498, 0, 0},
7272
{9, 65499, 0, 65499, 0, 0},
7373
{9, 65505, 0, 65505, 0, 0},
7474
{9, 65472, 0, 65472, 0, 0},
7575
{9, 65473, 0, 65473, 0, 0},
7676
{9, 65474, 0, 65474, 0, 0},
7777
{9, 65479, 0, 65479, 0, 0},
78-
{193, 0, 0, 0, 0, 0},
78+
{129, 0, 0, 0, 0, 0},
7979
{9, 65489, 0, 65489, 0, 0},
8080
{9, 65482, 0, 65482, 0, 0},
8181
{9, 65450, 0, 65450, 0, 0},
8282
{9, 65456, 0, 65456, 0, 0},
83-
{193, 0, 80, 0, 0, 0},
84-
{193, 0, 48, 0, 0, 0},
83+
{129, 0, 80, 0, 0, 0},
84+
{129, 0, 48, 0, 0, 0},
8585
{9, 65488, 0, 65488, 0, 0},
8686
{9, 65477, 0, 65477, 0, 0},
8787
{9, 8, 0, 8, 0, 0},
88-
{193, 0, 65528, 0, 0, 0},
88+
{129, 0, 65528, 0, 0, 0},
8989
{9, 74, 0, 74, 0, 0},
9090
{9, 86, 0, 86, 0, 0},
9191
{9, 100, 0, 100, 0, 0},
@@ -94,19 +94,19 @@ const _PyUnicode_TypeRecord _PyUnicode_TypeRecords[] = {
9494
{9, 126, 0, 126, 0, 0},
9595
{65, 0, 65528, 0, 0, 0},
9696
{9, 9, 0, 9, 0, 0},
97-
{193, 0, 65462, 0, 0, 0},
97+
{129, 0, 65462, 0, 0, 0},
9898
{65, 0, 65527, 0, 0, 0},
9999
{9, 58331, 0, 58331, 0, 0},
100-
{193, 0, 65450, 0, 0, 0},
101-
{193, 0, 65436, 0, 0, 0},
100+
{129, 0, 65450, 0, 0, 0},
101+
{129, 0, 65436, 0, 0, 0},
102102
{9, 7, 0, 7, 0, 0},
103-
{193, 0, 65424, 0, 0, 0},
104-
{193, 0, 65529, 0, 0, 0},
105-
{193, 0, 65408, 0, 0, 0},
106-
{193, 0, 65410, 0, 0, 0},
107-
{193, 0, 58019, 0, 0, 0},
108-
{193, 0, 57153, 0, 0, 0},
109-
{193, 0, 57274, 0, 0, 0},
103+
{129, 0, 65424, 0, 0, 0},
104+
{129, 0, 65529, 0, 0, 0},
105+
{129, 0, 65408, 0, 0, 0},
106+
{129, 0, 65410, 0, 0, 0},
107+
{129, 0, 58019, 0, 0, 0},
108+
{129, 0, 57153, 0, 0, 0},
109+
{129, 0, 57274, 0, 0, 0},
110110
{0, 0, 16, 0, 0, 0},
111111
{0, 65520, 0, 65520, 0, 0},
112112
{4, 0, 0, 0, 0, 1},

Tools/unicode/makeunicodedata.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
# 2000-09-24 fl created (based on bits and pieces from unidb)
99
# 2000-09-25 fl merged tim's splitbin fixes, separate decomposition table
1010
# 2000-09-25 fl added character type table
11-
# 2000-09-26 fl added LINEBREAK flags
11+
# 2000-09-26 fl added LINEBREAK, DECIMAL, and DIGIT flags/fields
1212
#
1313
# written by Fredrik Lundh ([email protected]), September 2000
1414
#
@@ -166,7 +166,7 @@ def maketables():
166166
flags |= LINEBREAK_MASK
167167
if category == "Zs" or bidirectional in ("WS", "B", "S"):
168168
flags |= SPACE_MASK
169-
if category in ["Lt", "Lu"]:
169+
if category == "Lt":
170170
flags |= TITLE_MASK
171171
if category == "Lu":
172172
flags |= UPPER_MASK

0 commit comments

Comments
 (0)