Skip to content

Commit aa3ef78

Browse files
committed
Update category names, allow descriptions
1 parent 4cb2db8 commit aa3ef78

File tree

1 file changed

+30
-6
lines changed

1 file changed

+30
-6
lines changed

Lib/gftools/tags.py

+30-6
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ class GFTags(object):
6161
"Medieval",
6262
"Brush/Marker",
6363
"Pixel",
64+
"Brush",
6465
],
6566
"Arabic": [
6667
"Kufi",
@@ -82,15 +83,15 @@ class GFTags(object):
8283
"Chrieng (Khmer)",
8384
],
8485
"Sinhala": [
85-
"Traditional/High contrast",
86-
"Contemporary/High contrast",
86+
"Traditional",
87+
"Contemporary",
8788
"Low contrast",
8889
],
8990
"Indic": [
90-
"Traditional/High contrast",
91-
"Contemporary/High contrast",
91+
"Traditional",
92+
"Contemporary",
9293
"Low contrast",
93-
"Sign Painting/vernacular",
94+
"Sign Painting",
9495
"Reverse-contrast",
9596
],
9697
"Simplicity": [
@@ -130,6 +131,29 @@ class GFTags(object):
130131
"Emojis",
131132
"Symbols",
132133
],
134+
"Expressive": [
135+
"Business",
136+
"Sincere",
137+
"Loud",
138+
"Vintage",
139+
"Calm",
140+
"Calm/simple",
141+
"Stiff",
142+
"Competent",
143+
"Happy",
144+
"Childlike",
145+
"Excited",
146+
"Playful",
147+
"Awkward",
148+
"Innovative",
149+
"Rugged",
150+
"Futuristic",
151+
"Artistic",
152+
"Cute",
153+
"Fancy",
154+
"Sophisticated",
155+
"Active",
156+
]
133157
}
134158

135159
def __init__(self):
@@ -164,7 +188,7 @@ def _parse_csv(self, data, skip_rows=[], skip_columns=[], family_name_col=0):
164188
# If no tag exists for a value, it means a value has been assigned
165189
# to the whole group such as Sans, Sans Serif etc. We don't want to
166190
# include these since we can deduce it ourselves according to Evan.
167-
sub_category = data[1][j]
191+
sub_category = data[1][j].split("\n")[0]
168192
if sub_category == "":
169193
continue
170194
if category not in self.CATEGORIES:

0 commit comments

Comments
 (0)