summaryrefslogtreecommitdiff
path: root/info/symbols/comprehensive/source/prune-idx-squares.toml
blob: 641c1226a08cefdcfc1f3446bea7489449fca022 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
##############################################
# Categorize squares.                        #
# Author: Scott Pakin <scott+clsl@pakin.org> #
##############################################

# ---------------------------- non-squares -----------------------------

[[rewrite]]
regex = '^(Black|White)EmptySquare$'
lowercase_item = true
item = ["chess", '\1 square']

[[rewrite]]
matches = [
    "white square button",
    "black square button"
]

[[rewrite]]
regex = 'whitesquaretick(left|right)'
item = ["square", 'tick \1']

[[rewrite]]
render_contains = '(\Square)'
item = ["check box", "empty"]

[[rewrite]]
render_contains = "GOsquare"
item = ["circled symbols", "square"]

# ------------------------------ squares -------------------------------

[[rewrite]]
render_contains = [
    "blackinwhitesquare",
    "WhiteSquareContainingBlackSquare",
    "WhiteVerySmallSquareContainingBlackSquare"
]
item = ["square", "filled, outlined"]

[[rewrite]]
render_contains = "WhiteSquareRoundCornersContainingBlackSquare"
item = ["square", "filled, outlined, rounded corners"]

[[rewrite]]
render_contains = ["WhiteSquareRoundCorners", "squoval"]
item = ["square", "rounded corners"]

[[rewrite]]
render_contains = "BlackSquareRoundCorners"
item = ["square", "filled, rounded corners"]

[[rewrite]]
render_contains = [
    '\usym{274F}',
    '\usym{2751}',
    '\usym{2752}',
    '\usym{2750}',
    '\SquareShadow',
    '\SquareCastShadow'
]
item = ["square", "shadowed"]

[[rewrite]]
prefix = "FilledSquareShadow"
item = ["square", "filled, shadowed"]

[[rewrite]]
matches = "errbarsquare"
item = ["square", "error bars"]

[[rewrite]]
render_contains = "errbarblacksquare"
item = ["square", "error bars, filled"]

# This rule should precede the following one.
[[rewrite]]
render_contains = [
    '\twemoji{25ab}',
    '\twemoji{25fd}',
    '\twemoji{2b1c}',
    '\twemoji{25fb}'
]
item = ["square", "white"]

[[rewrite]]
render_contains = '\twemoji{1f532}'
item = ["square", "white with black outline"]

[[rewrite]]
regex = '^outline.*square$'
item = ["square", "outlined"]

[[rewrite]]
matches = "outline square round corners"
item = ["square", "outlined, rounded corners"]

[[rewrite]]
compare_lowercase = true
regex = '(wht|white|lwhite).*square'
item = "square"

[[rewrite]]
regex = 'black.*\s.*square'
render_contains = '\twemoji{'
item = ["square", "black"]

[[rewrite]]
compare_lowercase = true
regex = 'black.*square'
item = ["square", "filled"]

[[rewrite]]
compare_lowercase = true
regex = '^filled.*square$'
item = ["square", "filled"]

# This rule must precede the following one.
[[rewrite]]
compare_lowercase = true
regex = '''
^\
(?:big|large|med|small|lg|md|sm|vy)*\
(?:blk|black)\
(?:var)?\
square\
$\
'''
item = ["square", "filled"]

[[rewrite]]
compare_lowercase = true
regex = '''
^\
(?:big|large|med|small|lg|md|sm|vy)*\
(?:wht|white)?\
(?:var)?\
square\
$\
'''
item = "square"

[[rewrite]]
matches = [
    "squaddot",
    "dotted square",
    "dotted small square"
]
item = ["square", "dot"]

[[rewrite]]
matches = "dotted square round corners"
item = ["square", "dot, rounded corners"]

[[rewrite]]
matches = "dottedsquare"
item = ["square", "dotted"]

[[rewrite]]
matches = "squarewithdots"
item = ["square", "dots surrounding"]

[[rewrite]]
matches = "filledsquarewithdots"
item = ["square", "dots surrounding, filled"]

[[rewrite]]
matches = "enclosesquare"
item = ["square", "enclosing to the left"]

[[rewrite]]
compare_lowercase = true
regex = '^(blue|brown|green|orange|purple|red|yellow)\s+square$'
item = ["square", '\1']
lowercase_word = true

[[rewrite]]
matches = ["squadfill", "SquareSolid", "Squaresteel", "bausquare"]
item = ["square", "filled"]

[[rewrite]]
matches = ["squaretopblack", "squadfillha"]
item = ["square", "half filled, top"]

[[rewrite]]
matches = ["squarebotblack", "squadfillhb"]
item = ["square", "half filled, bottom"]

[[rewrite]]
matches = ["squareleftblack", "squadfillhl"]
item = ["square", "half filled, left"]

[[rewrite]]
matches = ["squarerightblack", "squadfillhr"]
item = ["square", "half filled, right"]

[[rewrite]]
matches = "squarellblack"
item = ["square", "half filled, lower left"]

[[rewrite]]
matches = "squareulblack"
item = ["square", "half filled, upper left"]

[[rewrite]]
matches = "squarelrblack"
item = ["square", "half filled, lower right"]

[[rewrite]]
matches = "squareurblack"
item = ["square", "half filled, upper right"]

[[rewrite]]
matches = "squarellquad"
item = ["square", "nested, lower left"]

[[rewrite]]
matches = "squareulquad"
item = ["square", "nested, upper left"]

[[rewrite]]
matches = "squarelrquad"
item = ["square", "nested, lower right"]

[[rewrite]]
matches = "squareurquad"
item = ["square", "nested, upper right"]

[[rewrite]]
matches = [
    "squadcross",
    "crossed square",
    "crossed small square"
]
item = ["square", "crossed"]

[[rewrite]]
matches = "crossed square round corners"
item = ["square", "crossed, rounded corners"]

[[rewrite]]
matches = [
    "squadlineh",
    "horizontally divided square",
    "horizontally divided small square"
]
item = ["square", "horizontally divided"]

[[rewrite]]
matches = [
    "squadlinev",
    "vertically divided square",
    "vertically divided small square"
]
item = ["square", "vertically divided"]

[[rewrite]]
matches = "horizontally divided square round corners"
item = ["square", "horizontally divided, rounded corners"]

[[rewrite]]
matches = "vertically divided square round corners"
item = ["square", "vertically divided, rounded corners"]

[[rewrite]]
matches = [
    "up slashed square",
    "up slashed small square"
]
item = ["square", "slashed"]

[[rewrite]]
matches = "up slahsed square round corners"  # Note typo.
item = ["square", "slashed, rounded corners"]

[[rewrite]]
matches = [
    "down slashed square",
    "down slashed small square"
]
item = ["square", "backslashed"]

[[rewrite]]
matches = "down slashed square round corners"
item = ["square", "backslashed, rounded corners"]

[[rewrite]]
matches = [
    "squadlinevh",
    "quartered square",
    "quartered small square"
]
item = ["square", "quartered"]

[[rewrite]]
matches = "quartered square round corners"
item = ["square", "quartered, rounded corners"]

[[rewrite]]
matches = "squarehfill"
item = ["square", "horizontally striped"]

[[rewrite]]
matches = "squarevfill"
item = ["square", "vertically striped"]

[[rewrite]]
matches = "squarehvfill"
item = ["square", "grid"]

[[rewrite]]
matches = "squarecrossfill"
item = ["square", "grid, diagonal"]

[[rewrite]]
regex = 'squaren[ew]s[we]fill'
item = ["square", "diagonally striped"]

# This rule must precede the following one.
[[rewrite]]
render_contains = '\tiThSmallOutline'
item = ["square", "of squares"]

[[rewrite]]
render_contains = '\tiThSmall'
item = ["square", "of filled squares"]

[[rewrite]]
matches = ["Box", "Squarepipe"]
item = "square"

[[rewrite]]
compare_lowercase = true
matches = ["squares", "squad"]
item = "square"

[[rewrite]]
matches = "BS"
item = ["square", "filled, containing white circle"]

# ------------------------------- boxes --------------------------------

[[rewrite]]
matches = "boxonbox"
item = ["square", "overlapping square"]

[[rewrite]]
compare_lowercase = true
render_regex = '\$\\box(left|right)\$'
item = ["square", "with arrow"]

[[rewrite]]
compare_lowercase = true
regex = '^boxdot(left|right)$'
item = ["square", "dotted, with arrow"]