multilingualprogramming 0.2.0__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.
- multilingualprogramming/__init__.py +74 -0
- multilingualprogramming/__main__.py +194 -0
- multilingualprogramming/codegen/__init__.py +12 -0
- multilingualprogramming/codegen/executor.py +215 -0
- multilingualprogramming/codegen/python_generator.py +592 -0
- multilingualprogramming/codegen/repl.py +489 -0
- multilingualprogramming/codegen/runtime_builtins.py +308 -0
- multilingualprogramming/core/__init__.py +12 -0
- multilingualprogramming/core/ir.py +29 -0
- multilingualprogramming/core/lowering.py +24 -0
- multilingualprogramming/datetime/__init__.py +11 -0
- multilingualprogramming/datetime/date_parser.py +190 -0
- multilingualprogramming/datetime/mp_date.py +210 -0
- multilingualprogramming/datetime/mp_datetime.py +153 -0
- multilingualprogramming/datetime/mp_time.py +147 -0
- multilingualprogramming/datetime/resource_loader.py +18 -0
- multilingualprogramming/exceptions.py +158 -0
- multilingualprogramming/imports.py +150 -0
- multilingualprogramming/keyword/__init__.py +13 -0
- multilingualprogramming/keyword/keyword_registry.py +249 -0
- multilingualprogramming/keyword/keyword_validator.py +59 -0
- multilingualprogramming/keyword/language_pack_validator.py +110 -0
- multilingualprogramming/lexer/__init__.py +11 -0
- multilingualprogramming/lexer/lexer.py +570 -0
- multilingualprogramming/lexer/source_reader.py +91 -0
- multilingualprogramming/lexer/token.py +54 -0
- multilingualprogramming/lexer/token_types.py +38 -0
- multilingualprogramming/numeral/__init__.py +11 -0
- multilingualprogramming/numeral/abstract_numeral.py +232 -0
- multilingualprogramming/numeral/complex_numeral.py +190 -0
- multilingualprogramming/numeral/fraction_numeral.py +165 -0
- multilingualprogramming/numeral/mp_numeral.py +243 -0
- multilingualprogramming/numeral/numeral_converter.py +151 -0
- multilingualprogramming/numeral/roman_numeral.py +301 -0
- multilingualprogramming/numeral/unicode_numeral.py +292 -0
- multilingualprogramming/parser/__init__.py +28 -0
- multilingualprogramming/parser/ast_nodes.py +459 -0
- multilingualprogramming/parser/ast_printer.py +677 -0
- multilingualprogramming/parser/error_messages.py +75 -0
- multilingualprogramming/parser/parser.py +1796 -0
- multilingualprogramming/parser/semantic_analyzer.py +689 -0
- multilingualprogramming/parser/surface_normalizer.py +282 -0
- multilingualprogramming/resources/datetime/eras.json +23 -0
- multilingualprogramming/resources/datetime/formats.json +32 -0
- multilingualprogramming/resources/datetime/months.json +150 -0
- multilingualprogramming/resources/datetime/weekdays.json +90 -0
- multilingualprogramming/resources/parser/error_messages.json +310 -0
- multilingualprogramming/resources/repl/commands.json +636 -0
- multilingualprogramming/resources/usm/builtins_aliases.json +731 -0
- multilingualprogramming/resources/usm/keywords.json +1063 -0
- multilingualprogramming/resources/usm/operators.json +532 -0
- multilingualprogramming/resources/usm/schema.json +34 -0
- multilingualprogramming/resources/usm/surface_patterns.json +1523 -0
- multilingualprogramming/unicode_string.py +140 -0
- multilingualprogramming/version.py +9 -0
- multilingualprogramming-0.2.0.dist-info/METADATA +350 -0
- multilingualprogramming-0.2.0.dist-info/RECORD +61 -0
- multilingualprogramming-0.2.0.dist-info/WHEEL +5 -0
- multilingualprogramming-0.2.0.dist-info/entry_points.txt +3 -0
- multilingualprogramming-0.2.0.dist-info/licenses/LICENSE +674 -0
- multilingualprogramming-0.2.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,532 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "1.0",
|
|
3
|
+
"description": "Operator mappings including Unicode mathematical alternatives",
|
|
4
|
+
"arithmetic": {
|
|
5
|
+
"ADD": {
|
|
6
|
+
"symbols": [
|
|
7
|
+
"+"
|
|
8
|
+
],
|
|
9
|
+
"unicode_alt": [
|
|
10
|
+
"+"
|
|
11
|
+
],
|
|
12
|
+
"description": {
|
|
13
|
+
"en": "addition",
|
|
14
|
+
"fr": "addition",
|
|
15
|
+
"hi": "जोड़",
|
|
16
|
+
"ar": "جمع",
|
|
17
|
+
"zh": "加",
|
|
18
|
+
"it": "addition",
|
|
19
|
+
"pt": "addition",
|
|
20
|
+
"pl": "dodawanie",
|
|
21
|
+
"nl": "optelling",
|
|
22
|
+
"sv": "addition",
|
|
23
|
+
"da": "addition",
|
|
24
|
+
"fi": "yhteenlasku"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"SUBTRACT": {
|
|
28
|
+
"symbols": [
|
|
29
|
+
"-"
|
|
30
|
+
],
|
|
31
|
+
"unicode_alt": [
|
|
32
|
+
"−",
|
|
33
|
+
"-"
|
|
34
|
+
],
|
|
35
|
+
"description": {
|
|
36
|
+
"en": "subtraction",
|
|
37
|
+
"fr": "soustraction",
|
|
38
|
+
"hi": "घटाव",
|
|
39
|
+
"ar": "طرح",
|
|
40
|
+
"zh": "减",
|
|
41
|
+
"it": "subtraction",
|
|
42
|
+
"pt": "subtraction",
|
|
43
|
+
"pl": "odejmowanie",
|
|
44
|
+
"nl": "aftrekking",
|
|
45
|
+
"sv": "subtraktion",
|
|
46
|
+
"da": "subtraktion",
|
|
47
|
+
"fi": "vahennys"
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"MULTIPLY": {
|
|
51
|
+
"symbols": [
|
|
52
|
+
"*"
|
|
53
|
+
],
|
|
54
|
+
"unicode_alt": [
|
|
55
|
+
"×",
|
|
56
|
+
"⋅",
|
|
57
|
+
"*"
|
|
58
|
+
],
|
|
59
|
+
"description": {
|
|
60
|
+
"en": "multiplication",
|
|
61
|
+
"fr": "multiplication",
|
|
62
|
+
"hi": "गुणा",
|
|
63
|
+
"ar": "ضرب",
|
|
64
|
+
"zh": "乘",
|
|
65
|
+
"it": "multiplication",
|
|
66
|
+
"pt": "multiplication",
|
|
67
|
+
"pl": "mnozenie",
|
|
68
|
+
"nl": "vermenigvuldiging",
|
|
69
|
+
"sv": "multiplikation",
|
|
70
|
+
"da": "multiplikation",
|
|
71
|
+
"fi": "kertolasku"
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"DIVIDE": {
|
|
75
|
+
"symbols": [
|
|
76
|
+
"/"
|
|
77
|
+
],
|
|
78
|
+
"unicode_alt": [
|
|
79
|
+
"÷",
|
|
80
|
+
"/"
|
|
81
|
+
],
|
|
82
|
+
"description": {
|
|
83
|
+
"en": "division",
|
|
84
|
+
"fr": "division",
|
|
85
|
+
"hi": "भाग",
|
|
86
|
+
"ar": "قسمة",
|
|
87
|
+
"zh": "除",
|
|
88
|
+
"it": "division",
|
|
89
|
+
"pt": "division",
|
|
90
|
+
"pl": "dzielenie",
|
|
91
|
+
"nl": "deling",
|
|
92
|
+
"sv": "division",
|
|
93
|
+
"da": "division",
|
|
94
|
+
"fi": "jakolasku"
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
"FLOOR_DIVIDE": {
|
|
98
|
+
"symbols": [
|
|
99
|
+
"//"
|
|
100
|
+
],
|
|
101
|
+
"unicode_alt": [],
|
|
102
|
+
"description": {
|
|
103
|
+
"en": "floor division",
|
|
104
|
+
"fr": "division entière",
|
|
105
|
+
"hi": "पूर्णांक_भाग",
|
|
106
|
+
"ar": "قسمة_صحيحة",
|
|
107
|
+
"zh": "整除",
|
|
108
|
+
"it": "floor division",
|
|
109
|
+
"pt": "floor division",
|
|
110
|
+
"pl": "dzielenie_calkowite",
|
|
111
|
+
"nl": "gehele_deling",
|
|
112
|
+
"sv": "heltalsdivision",
|
|
113
|
+
"da": "heltalsdivision",
|
|
114
|
+
"fi": "kokonaisjako"
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
"MODULUS": {
|
|
118
|
+
"symbols": [
|
|
119
|
+
"%"
|
|
120
|
+
],
|
|
121
|
+
"unicode_alt": [
|
|
122
|
+
"%"
|
|
123
|
+
],
|
|
124
|
+
"description": {
|
|
125
|
+
"en": "modulus",
|
|
126
|
+
"fr": "modulo",
|
|
127
|
+
"hi": "शेष",
|
|
128
|
+
"ar": "باقي",
|
|
129
|
+
"zh": "取余",
|
|
130
|
+
"it": "modulus",
|
|
131
|
+
"pt": "modulus",
|
|
132
|
+
"pl": "modulo",
|
|
133
|
+
"nl": "modulo",
|
|
134
|
+
"sv": "modulo",
|
|
135
|
+
"da": "modulo",
|
|
136
|
+
"fi": "jakojaannos"
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
"POWER": {
|
|
140
|
+
"symbols": [
|
|
141
|
+
"**"
|
|
142
|
+
],
|
|
143
|
+
"unicode_alt": [],
|
|
144
|
+
"description": {
|
|
145
|
+
"en": "exponentiation",
|
|
146
|
+
"fr": "puissance",
|
|
147
|
+
"hi": "घात",
|
|
148
|
+
"ar": "أس",
|
|
149
|
+
"zh": "幂",
|
|
150
|
+
"it": "exponentiation",
|
|
151
|
+
"pt": "exponentiation",
|
|
152
|
+
"pl": "potegowanie",
|
|
153
|
+
"nl": "machtsverheffing",
|
|
154
|
+
"sv": "potens",
|
|
155
|
+
"da": "potens",
|
|
156
|
+
"fi": "potenssi"
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
"comparison": {
|
|
161
|
+
"EQUAL": {
|
|
162
|
+
"symbols": [
|
|
163
|
+
"=="
|
|
164
|
+
],
|
|
165
|
+
"unicode_alt": [
|
|
166
|
+
"=="
|
|
167
|
+
],
|
|
168
|
+
"description": {
|
|
169
|
+
"en": "equal to",
|
|
170
|
+
"fr": "égal à",
|
|
171
|
+
"hi": "बराबर",
|
|
172
|
+
"ar": "يساوي",
|
|
173
|
+
"zh": "等于",
|
|
174
|
+
"it": "equal to",
|
|
175
|
+
"pt": "equal to",
|
|
176
|
+
"pl": "rowne",
|
|
177
|
+
"nl": "gelijk_aan",
|
|
178
|
+
"sv": "lika_med",
|
|
179
|
+
"da": "lig_med",
|
|
180
|
+
"fi": "yhta_suuri_kuin"
|
|
181
|
+
}
|
|
182
|
+
},
|
|
183
|
+
"NOT_EQUAL": {
|
|
184
|
+
"symbols": [
|
|
185
|
+
"!="
|
|
186
|
+
],
|
|
187
|
+
"unicode_alt": [
|
|
188
|
+
"≠"
|
|
189
|
+
],
|
|
190
|
+
"description": {
|
|
191
|
+
"en": "not equal to",
|
|
192
|
+
"fr": "différent de",
|
|
193
|
+
"hi": "बराबर_नहीं",
|
|
194
|
+
"ar": "لا_يساوي",
|
|
195
|
+
"zh": "不等于",
|
|
196
|
+
"it": "not equal to",
|
|
197
|
+
"pt": "not equal to",
|
|
198
|
+
"pl": "nierowne",
|
|
199
|
+
"nl": "niet_gelijk_aan",
|
|
200
|
+
"sv": "inte_lika_med",
|
|
201
|
+
"da": "ikke_lig_med",
|
|
202
|
+
"fi": "eri_suuri_kuin"
|
|
203
|
+
}
|
|
204
|
+
},
|
|
205
|
+
"LESS_THAN": {
|
|
206
|
+
"symbols": [
|
|
207
|
+
"<"
|
|
208
|
+
],
|
|
209
|
+
"unicode_alt": [
|
|
210
|
+
"<"
|
|
211
|
+
],
|
|
212
|
+
"description": {
|
|
213
|
+
"en": "less than",
|
|
214
|
+
"fr": "inférieur à",
|
|
215
|
+
"hi": "से_कम",
|
|
216
|
+
"ar": "أقل_من",
|
|
217
|
+
"zh": "小于",
|
|
218
|
+
"it": "less than",
|
|
219
|
+
"pt": "less than",
|
|
220
|
+
"pl": "mniejsze_niz",
|
|
221
|
+
"nl": "kleiner_dan",
|
|
222
|
+
"sv": "mindre_an",
|
|
223
|
+
"da": "mindre_end",
|
|
224
|
+
"fi": "pienempi_kuin"
|
|
225
|
+
}
|
|
226
|
+
},
|
|
227
|
+
"GREATER_THAN": {
|
|
228
|
+
"symbols": [
|
|
229
|
+
">"
|
|
230
|
+
],
|
|
231
|
+
"unicode_alt": [
|
|
232
|
+
">"
|
|
233
|
+
],
|
|
234
|
+
"description": {
|
|
235
|
+
"en": "greater than",
|
|
236
|
+
"fr": "supérieur à",
|
|
237
|
+
"hi": "से_अधिक",
|
|
238
|
+
"ar": "أكبر_من",
|
|
239
|
+
"zh": "大于",
|
|
240
|
+
"it": "greater than",
|
|
241
|
+
"pt": "greater than",
|
|
242
|
+
"pl": "wieksze_niz",
|
|
243
|
+
"nl": "groter_dan",
|
|
244
|
+
"sv": "storre_an",
|
|
245
|
+
"da": "storre_end",
|
|
246
|
+
"fi": "suurempi_kuin"
|
|
247
|
+
}
|
|
248
|
+
},
|
|
249
|
+
"LESS_EQUAL": {
|
|
250
|
+
"symbols": [
|
|
251
|
+
"<="
|
|
252
|
+
],
|
|
253
|
+
"unicode_alt": [
|
|
254
|
+
"≤"
|
|
255
|
+
],
|
|
256
|
+
"description": {
|
|
257
|
+
"en": "less than or equal",
|
|
258
|
+
"fr": "inférieur ou égal",
|
|
259
|
+
"hi": "से_कम_या_बराबर",
|
|
260
|
+
"ar": "أقل_أو_يساوي",
|
|
261
|
+
"zh": "小于等于",
|
|
262
|
+
"it": "less than or equal",
|
|
263
|
+
"pt": "less than or equal",
|
|
264
|
+
"pl": "mniejsze_lub_rowne",
|
|
265
|
+
"nl": "kleiner_of_gelijk",
|
|
266
|
+
"sv": "mindre_eller_lika",
|
|
267
|
+
"da": "mindre_eller_lig",
|
|
268
|
+
"fi": "pienempi_tai_yhta_suuri"
|
|
269
|
+
}
|
|
270
|
+
},
|
|
271
|
+
"GREATER_EQUAL": {
|
|
272
|
+
"symbols": [
|
|
273
|
+
">="
|
|
274
|
+
],
|
|
275
|
+
"unicode_alt": [
|
|
276
|
+
"≥"
|
|
277
|
+
],
|
|
278
|
+
"description": {
|
|
279
|
+
"en": "greater than or equal",
|
|
280
|
+
"fr": "supérieur ou égal",
|
|
281
|
+
"hi": "से_अधिक_या_बराबर",
|
|
282
|
+
"ar": "أكبر_أو_يساوي",
|
|
283
|
+
"zh": "大于等于",
|
|
284
|
+
"it": "greater than or equal",
|
|
285
|
+
"pt": "greater than or equal",
|
|
286
|
+
"pl": "wieksze_lub_rowne",
|
|
287
|
+
"nl": "groter_of_gelijk",
|
|
288
|
+
"sv": "storre_eller_lika",
|
|
289
|
+
"da": "storre_eller_lig",
|
|
290
|
+
"fi": "suurempi_tai_yhta_suuri"
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
},
|
|
294
|
+
"assignment": {
|
|
295
|
+
"ASSIGN": {
|
|
296
|
+
"symbols": [
|
|
297
|
+
"="
|
|
298
|
+
],
|
|
299
|
+
"unicode_alt": [
|
|
300
|
+
"="
|
|
301
|
+
],
|
|
302
|
+
"description": {
|
|
303
|
+
"en": "assignment",
|
|
304
|
+
"fr": "affectation",
|
|
305
|
+
"hi": "निर्धारण",
|
|
306
|
+
"ar": "تعيين",
|
|
307
|
+
"zh": "赋值",
|
|
308
|
+
"it": "assignment",
|
|
309
|
+
"pt": "assignment",
|
|
310
|
+
"pl": "przypisanie",
|
|
311
|
+
"nl": "toewijzing",
|
|
312
|
+
"sv": "tilldelning",
|
|
313
|
+
"da": "tildeling",
|
|
314
|
+
"fi": "sijoitus"
|
|
315
|
+
}
|
|
316
|
+
},
|
|
317
|
+
"ADD_ASSIGN": {
|
|
318
|
+
"symbols": [
|
|
319
|
+
"+="
|
|
320
|
+
],
|
|
321
|
+
"unicode_alt": []
|
|
322
|
+
},
|
|
323
|
+
"SUB_ASSIGN": {
|
|
324
|
+
"symbols": [
|
|
325
|
+
"-="
|
|
326
|
+
],
|
|
327
|
+
"unicode_alt": []
|
|
328
|
+
},
|
|
329
|
+
"MUL_ASSIGN": {
|
|
330
|
+
"symbols": [
|
|
331
|
+
"*="
|
|
332
|
+
],
|
|
333
|
+
"unicode_alt": []
|
|
334
|
+
},
|
|
335
|
+
"DIV_ASSIGN": {
|
|
336
|
+
"symbols": [
|
|
337
|
+
"/="
|
|
338
|
+
],
|
|
339
|
+
"unicode_alt": []
|
|
340
|
+
},
|
|
341
|
+
"WALRUS": {
|
|
342
|
+
"symbols": [
|
|
343
|
+
":="
|
|
344
|
+
],
|
|
345
|
+
"unicode_alt": []
|
|
346
|
+
}
|
|
347
|
+
},
|
|
348
|
+
"bitwise": {
|
|
349
|
+
"BIT_AND": {
|
|
350
|
+
"symbols": [
|
|
351
|
+
"&"
|
|
352
|
+
],
|
|
353
|
+
"unicode_alt": []
|
|
354
|
+
},
|
|
355
|
+
"BIT_OR": {
|
|
356
|
+
"symbols": [
|
|
357
|
+
"|"
|
|
358
|
+
],
|
|
359
|
+
"unicode_alt": []
|
|
360
|
+
},
|
|
361
|
+
"BIT_XOR": {
|
|
362
|
+
"symbols": [
|
|
363
|
+
"^"
|
|
364
|
+
],
|
|
365
|
+
"unicode_alt": []
|
|
366
|
+
},
|
|
367
|
+
"BIT_NOT": {
|
|
368
|
+
"symbols": [
|
|
369
|
+
"~"
|
|
370
|
+
],
|
|
371
|
+
"unicode_alt": []
|
|
372
|
+
},
|
|
373
|
+
"LEFT_SHIFT": {
|
|
374
|
+
"symbols": [
|
|
375
|
+
"<<"
|
|
376
|
+
],
|
|
377
|
+
"unicode_alt": [
|
|
378
|
+
"≪"
|
|
379
|
+
]
|
|
380
|
+
},
|
|
381
|
+
"RIGHT_SHIFT": {
|
|
382
|
+
"symbols": [
|
|
383
|
+
">>"
|
|
384
|
+
],
|
|
385
|
+
"unicode_alt": [
|
|
386
|
+
"≫"
|
|
387
|
+
]
|
|
388
|
+
}
|
|
389
|
+
},
|
|
390
|
+
"delimiters": {
|
|
391
|
+
"LPAREN": {
|
|
392
|
+
"symbols": [
|
|
393
|
+
"("
|
|
394
|
+
],
|
|
395
|
+
"unicode_alt": [
|
|
396
|
+
"("
|
|
397
|
+
]
|
|
398
|
+
},
|
|
399
|
+
"RPAREN": {
|
|
400
|
+
"symbols": [
|
|
401
|
+
")"
|
|
402
|
+
],
|
|
403
|
+
"unicode_alt": [
|
|
404
|
+
")"
|
|
405
|
+
]
|
|
406
|
+
},
|
|
407
|
+
"LBRACKET": {
|
|
408
|
+
"symbols": [
|
|
409
|
+
"["
|
|
410
|
+
],
|
|
411
|
+
"unicode_alt": [
|
|
412
|
+
"["
|
|
413
|
+
]
|
|
414
|
+
},
|
|
415
|
+
"RBRACKET": {
|
|
416
|
+
"symbols": [
|
|
417
|
+
"]"
|
|
418
|
+
],
|
|
419
|
+
"unicode_alt": [
|
|
420
|
+
"]"
|
|
421
|
+
]
|
|
422
|
+
},
|
|
423
|
+
"LBRACE": {
|
|
424
|
+
"symbols": [
|
|
425
|
+
"{"
|
|
426
|
+
],
|
|
427
|
+
"unicode_alt": [
|
|
428
|
+
"{"
|
|
429
|
+
]
|
|
430
|
+
},
|
|
431
|
+
"RBRACE": {
|
|
432
|
+
"symbols": [
|
|
433
|
+
"}"
|
|
434
|
+
],
|
|
435
|
+
"unicode_alt": [
|
|
436
|
+
"}"
|
|
437
|
+
]
|
|
438
|
+
},
|
|
439
|
+
"COMMA": {
|
|
440
|
+
"symbols": [
|
|
441
|
+
","
|
|
442
|
+
],
|
|
443
|
+
"unicode_alt": [
|
|
444
|
+
",",
|
|
445
|
+
"،"
|
|
446
|
+
]
|
|
447
|
+
},
|
|
448
|
+
"COLON": {
|
|
449
|
+
"symbols": [
|
|
450
|
+
":"
|
|
451
|
+
],
|
|
452
|
+
"unicode_alt": [
|
|
453
|
+
":"
|
|
454
|
+
]
|
|
455
|
+
},
|
|
456
|
+
"SEMICOLON": {
|
|
457
|
+
"symbols": [
|
|
458
|
+
";"
|
|
459
|
+
],
|
|
460
|
+
"unicode_alt": [
|
|
461
|
+
";",
|
|
462
|
+
"؛"
|
|
463
|
+
]
|
|
464
|
+
},
|
|
465
|
+
"DOT": {
|
|
466
|
+
"symbols": [
|
|
467
|
+
"."
|
|
468
|
+
],
|
|
469
|
+
"unicode_alt": [
|
|
470
|
+
"."
|
|
471
|
+
]
|
|
472
|
+
},
|
|
473
|
+
"ARROW": {
|
|
474
|
+
"symbols": [
|
|
475
|
+
"->"
|
|
476
|
+
],
|
|
477
|
+
"unicode_alt": [
|
|
478
|
+
"→"
|
|
479
|
+
]
|
|
480
|
+
},
|
|
481
|
+
"DATE_OPEN": {
|
|
482
|
+
"symbols": [
|
|
483
|
+
"〔"
|
|
484
|
+
],
|
|
485
|
+
"unicode_alt": []
|
|
486
|
+
},
|
|
487
|
+
"DATE_CLOSE": {
|
|
488
|
+
"symbols": [
|
|
489
|
+
"〕"
|
|
490
|
+
],
|
|
491
|
+
"unicode_alt": []
|
|
492
|
+
}
|
|
493
|
+
},
|
|
494
|
+
"string_delimiters": {
|
|
495
|
+
"DOUBLE_QUOTE": {
|
|
496
|
+
"pairs": [
|
|
497
|
+
"\"",
|
|
498
|
+
"\""
|
|
499
|
+
]
|
|
500
|
+
},
|
|
501
|
+
"SINGLE_QUOTE": {
|
|
502
|
+
"pairs": [
|
|
503
|
+
"'",
|
|
504
|
+
"'"
|
|
505
|
+
]
|
|
506
|
+
},
|
|
507
|
+
"CJK_CORNER": {
|
|
508
|
+
"pairs": [
|
|
509
|
+
"「",
|
|
510
|
+
"」"
|
|
511
|
+
]
|
|
512
|
+
},
|
|
513
|
+
"GUILLEMET": {
|
|
514
|
+
"pairs": [
|
|
515
|
+
"«",
|
|
516
|
+
"»"
|
|
517
|
+
]
|
|
518
|
+
},
|
|
519
|
+
"SMART_DOUBLE": {
|
|
520
|
+
"pairs": [
|
|
521
|
+
"“",
|
|
522
|
+
"”"
|
|
523
|
+
]
|
|
524
|
+
},
|
|
525
|
+
"SMART_SINGLE": {
|
|
526
|
+
"pairs": [
|
|
527
|
+
"‘",
|
|
528
|
+
"’"
|
|
529
|
+
]
|
|
530
|
+
}
|
|
531
|
+
}
|
|
532
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"title": "USM Keywords Schema",
|
|
4
|
+
"description": "Schema for validating keyword mapping files in the Universal Semantic Model",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"required": ["version", "languages", "categories"],
|
|
7
|
+
"properties": {
|
|
8
|
+
"version": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"pattern": "^[0-9]+\\.[0-9]+$"
|
|
11
|
+
},
|
|
12
|
+
"description": {
|
|
13
|
+
"type": "string"
|
|
14
|
+
},
|
|
15
|
+
"languages": {
|
|
16
|
+
"type": "array",
|
|
17
|
+
"items": {"type": "string"},
|
|
18
|
+
"minItems": 1,
|
|
19
|
+
"uniqueItems": true
|
|
20
|
+
},
|
|
21
|
+
"categories": {
|
|
22
|
+
"type": "object",
|
|
23
|
+
"additionalProperties": {
|
|
24
|
+
"type": "object",
|
|
25
|
+
"additionalProperties": {
|
|
26
|
+
"type": "object",
|
|
27
|
+
"description": "Concept mapping: keys are language codes, values are keyword strings",
|
|
28
|
+
"additionalProperties": {"type": "string"},
|
|
29
|
+
"minProperties": 1
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|