summaryrefslogtreecommitdiff
path: root/info/symbols/comprehensive/source/prune-idx-music.toml
blob: ce89f8b05ec6b6175475b2d09950839cee04df9b (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
356
357
358
359
##############################################
# Categorize music symbols.                  #
# Author: Scott Pakin <scott+clsl@pakin.org> #
##############################################

# ... early special cases ...
[[rewrite]]
render_contains = '(\AREVsixteenthnote)'
item = "musical notes"

# ... conversions from British to American terms ...

[[rewrite]]
compare_lowercase = true
regex = '^(?:mus)?semibreve(.*)$'
item = 'wholenote\1'
continue = true

[[rewrite]]
compare_lowercase = true
regex = '^(?:mus)?minim(.*)$'
item = 'halfnote\1'
continue = true

[[rewrite]]
compare_lowercase = true
regex = '^(?:mus)?crotchet(.*)$'
item = 'quarternote\1'
continue = true

[[rewrite]]
compare_lowercase = true
regex = '^(?:mus)?quaver(.*)$'
item = 'eighthnote\1'
continue = true

[[rewrite]]
compare_lowercase = true
regex = '^(?:mus)?semiquaver(.*)$'
item = 'sixteenthnote\1'
continue = true

[[rewrite]]
compare_lowercase = true
regex = '^(?:mus)?demisemiquaver(.*)$'
item = 'thirtysecondnote\1'
continue = true

# ... musical notes ...

[[rewrite]]
compare_lowercase = true
regex = '(full|whole|half|quarter|eighth|sixteenth)note(down)?$'
item = '\1 note'

[[rewrite]]
compare_lowercase = true
regex = '(full|whole|half|quarter|eighth|sixteenth)notedotted(down)?$'
item = ['\1 note', "dotted"]

[[rewrite]]
compare_lowercase = true
regex = '(full|whole|half|quarter|eighth|sixteenth)notedotteddouble(down)?$'
item = ['\1 note', "double dotted"]

[[rewrite]]
regex = '^mus(Whole|Half|Quarter|Eighth|Sixteenth)$'
lowercase_item = true
item = '\1 note'

[[rewrite]]
regex = '^mus(Whole|Half|Quarter|Eighth|Sixteenth)Dotted$'
lowercase_item = true
item = ['\1 note', "dotted"]

[[rewrite]]
matches = "musSemiminim"
item = "quarter note"

[[rewrite]]
matches = "musSeminiminimDotted"
item = ["quarter note", "dotted"]

[[rewrite]]
matches = ["musCorchea", "musFusa"]
item = "eighth note"

[[rewrite]]
matches = ["musCorcheaDotted", "musFusaDotted"]
item = ["eighth note", "dotted"]

[[rewrite]]
compare_lowercase = true
matches = [
    "thirtysecondnote",
    "thirtysecondnotedown",
    "musthirtysecond"
]
item = "thirty-second note"

[[rewrite]]
compare_lowercase = true
matches = [
    "thirtysecondnotedotted",
    "thirtysecondnotedotteddown",
    "musthirtyseconddotted"
]
item = ["thirty-second note", "dotted"]

[[rewrite]]
compare_lowercase = true
matches = ["thirtysecondnotedotteddouble", "thirtysecondnotedotteddoubledown"]
item = ["thirty-second note", "double dotted"]

[[rewrite]]
matches = "musSixtyFourth"
item = "sixty-fourth note"

[[rewrite]]
matches = "musSixtyFourthDotted"
item = ["sixty-fourth note", "dotted"]

# ... rests ...

[[rewrite]]
compare_lowercase = true
regex = '(full|whole|half|quarter|eighth|sixteenth)\s*note\s*rest$'
item = ['\1 note', "rest"]

[[rewrite]]
compare_lowercase = true
regex = '(full|whole|half|quarter|eighth|sixteenth)noterestdotted$'
item = ['\1 note', "rest, dotted"]

[[rewrite]]
matches = "qp"
item = ["quarter note", "rest"]

[[rewrite]]
matches = "ds"
item = ["eighth note", "rest"]

[[rewrite]]
matches = "qs"
item = ["sixteenth note", "rest"]

[[rewrite]]
matches = ["hs", "thirty-second note rest"]
item = ["thirty-second note", "rest"]

[[rewrite]]
matches = "qqs"
item = ["sixty-fourth note", "rest"]

[[rewrite]]
matches = ["fermata", "fermataup"]
item = "fermata"

[[rewrite]]
matches = "fermatadown"
item = ["fermata", "inverted"]

[[rewrite]]
contains = "BeamedQuaver"
word = "musical notes"

[[rewrite]]
matches = [
    "musical note",
    "music",
    "multiple musical notes",
    "twonotes",
    "beamed ascending musical notes",
    "beamed descending musical notes",
    "beamed eighth notes",
    "beamed sixteenth notes",
    "textmusicalnote"
]
word = "musical notes"

# ... sharps, flats, and naturals ...

[[rewrite]]
matches = [
    "flat",
    "fl",
    "musFlat",
    "music flat sign"
]
item = "flat"

[[rewrite]]
matches = ["flatflat", "musDoubleFlat"]
item = ["flat", "double"]

[[rewrite]]
matches = [
    "sharp",
    "sh",
    "music sharp sign",
    "musSharp"
]
item = "sharp"

[[rewrite]]
matches = [
    "natural",
    "na",
    "musNatural",
    "music natural sign"
]
item = "natural"

[[rewrite]]
matches = ["doublesharp", "musDoubleSharp"]
item = ["sharp", "double"]

[[rewrite]]
prefix = "sharpSlash"
item = ["sharp", "with extra slashes and stems"]

# ... clefs ...

[[rewrite]]
matches = ["clefC", "clefCInline"]
item = ["clefs", "alto"]

[[rewrite]]
matches = ["clefF", "clefFInline", "clefa"]
item = ["clefs", "bass"]

[[rewrite]]
matches = ["clefG", "clefGInline", "clesol"]
item = ["clefs", "treble"]

[[rewrite]]
regex = '^(small)?([a-z]+)clef$'
item = ["clefs", '\2']

# This rule should precede the following one.
[[rewrite]]
matches = "oldGclef"
item = ["clefs", "old G"]

[[rewrite]]
regex = '^([a-z]+)([CFG])clef$'
item = ["clefs", '\1 \2']
word = '\1 \2'
capitalize_word = true

# ... meters ...

[[rewrite]]
matches = ["meterCutC", "cut time", "lilyTimeCHalf"]
item = "alla breve"

# This rule should precede the following one.
[[rewrite]]
matches = "reverseallabreve"
item = ["alla breve", "reversed"]

[[rewrite]]
regex = 'alla.*breve'
item = "alla breve"

[[rewrite]]
matches = "reverseC"
item = ["common time", "forward and reversed"]

[[rewrite]]
matches = ["meterC", "lilyTimeC"]
item = "common time"

[[rewrite]]
matches = [
    "meterCThree",
    "meterCThreeTwo",
    "meterCZ",
    "meterO",
    "meterplus"
]
item = "meter, musical"

# ... other ...

[[rewrite]]
regex = '^accordion[A-Z]'
word = "accordion notation"

[[rewrite]]
compare_lowercase = true
matches = [
    "mordent",
    "turn",
    "trill"
]
lowercase_item = true
item = '\1'

[[rewrite]]
matches = "duevolte"
item = "due volte"

[[rewrite]]
regex = '^((?:de)?cresc)Hairpin$'
item = '\1endo'

[[rewrite]]
regex = '^(marcato|portato)$'
item = ['\1', "up"]

[[rewrite]]
regex = '^(marcato|portato)Down$'
item = ['\1', "down"]

[[rewrite]]
matches = "lsfz"
item = ["marcato", "down"]

[[rewrite]]
matches = "backturn"
item = ["turn", "reversed"]

[[rewrite]]
regex = '^(up|down)bow$'
item = '\1 bow'

[[rewrite]]
matches = ["Ped", "sPed"]
item = ["pedal", "engage"]

[[rewrite]]
matches = ["Dep", "sDep"]
item = ["pedal", "release"]

[[rewrite]]
matches = ["wq", "wqq"]
item = "breve"

[[rewrite]]
matches = "flageolett"   # Note misspelling.
item = "flageolet"

[[rewrite]]
matches = "doublethumb"
item = "double thumb"

[[rewrite]]
matches = [
    "segno",
    "Segno",
    "musSegno"
]
item = "segno"

[[rewrite]]
compare_lowercase = true
prefix = "shake"
item = "shake"