@nkardaz/typography-rules 1.0.0

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.
Files changed (49) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +911 -0
  3. package/dist/api/blacklist.d.ts +72 -0
  4. package/dist/api/htmlNodes.d.ts +30 -0
  5. package/dist/api/index.d.ts +6 -0
  6. package/dist/api/newRule.d.ts +51 -0
  7. package/dist/api/registerRule.d.ts +27 -0
  8. package/dist/api/rulesInit.d.ts +49 -0
  9. package/dist/functions/chemNotation.d.ts +10 -0
  10. package/dist/functions/clearSpaces.d.ts +16 -0
  11. package/dist/functions/index.cjs +514 -0
  12. package/dist/functions/index.d.ts +8 -0
  13. package/dist/functions/index.mjs +491 -0
  14. package/dist/functions/rubyText.d.ts +11 -0
  15. package/dist/functions/runt.d.ts +3 -0
  16. package/dist/functions/smartNumberGrouping.d.ts +25 -0
  17. package/dist/functions/smartQuotes.d.ts +29 -0
  18. package/dist/functions/wrapWithTag.d.ts +42 -0
  19. package/dist/glyphs/index.cjs +737 -0
  20. package/dist/glyphs/index.d.ts +53 -0
  21. package/dist/glyphs/index.mjs +714 -0
  22. package/dist/glyphs/proto.d.ts +11 -0
  23. package/dist/glyphs/registry.d.ts +728 -0
  24. package/dist/glyphs/types.d.ts +151 -0
  25. package/dist/helpers/index.cjs +268 -0
  26. package/dist/helpers/index.d.ts +133 -0
  27. package/dist/helpers/index.mjs +245 -0
  28. package/dist/helpers/types.d.ts +71 -0
  29. package/dist/index.cjs +985 -0
  30. package/dist/index.d.ts +5 -0
  31. package/dist/index.mjs +977 -0
  32. package/dist/style/index.d.ts +2 -0
  33. package/dist/style/main.css +16 -0
  34. package/dist/types.d.ts +223 -0
  35. package/dist/typography/aliases.d.ts +129 -0
  36. package/dist/typography/expressions/common.d.ts +29 -0
  37. package/dist/typography/expressions/en.d.ts +25 -0
  38. package/dist/typography/expressions/ru.d.ts +29 -0
  39. package/dist/typography/markup/common.d.ts +17 -0
  40. package/dist/typography/markup/en.d.ts +3 -0
  41. package/dist/typography/markup/index.d.ts +4 -0
  42. package/dist/typography/markup/ru.d.ts +3 -0
  43. package/dist/typography/sets/ang.d.ts +3 -0
  44. package/dist/typography/sets/common.d.ts +17 -0
  45. package/dist/typography/sets/en.d.ts +14 -0
  46. package/dist/typography/sets/index.d.ts +5 -0
  47. package/dist/typography/sets/ru.d.ts +16 -0
  48. package/dist/typography/store.d.ts +63 -0
  49. package/package.json +92 -0
@@ -0,0 +1,737 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/glyphs/index.ts
21
+ var index_exports = {};
22
+ __export(index_exports, {
23
+ BRACKETS: () => BRACKETS,
24
+ CHARACTERS: () => CHARACTERS,
25
+ DASHES: () => DASHES,
26
+ DIGITS: () => DIGITS,
27
+ LIGATURES: () => LIGATURES,
28
+ MATHS: () => MATHS,
29
+ NONE: () => NONE,
30
+ PUNCTUATION: () => PUNCTUATION,
31
+ RANGES: () => RANGES,
32
+ SPACES: () => SPACES,
33
+ TEMPERATURES: () => TEMPERATURES,
34
+ WALLET: () => WALLET,
35
+ createCharacterSet: () => createCharacterSet,
36
+ createCharacters: () => createCharacters,
37
+ createProtoSet: () => createProtoSet
38
+ });
39
+ module.exports = __toCommonJS(index_exports);
40
+
41
+ // src/glyphs/proto.ts
42
+ var proto = {
43
+ values() {
44
+ return Object.values(this);
45
+ },
46
+ join(joiner = "|") {
47
+ return Object.values(this).join(joiner);
48
+ },
49
+ insert(entries) {
50
+ Object.assign(this, entries);
51
+ },
52
+ hasKey(key) {
53
+ return Object.prototype.hasOwnProperty.call(this, key);
54
+ },
55
+ hasValue(value) {
56
+ return Object.values(this).includes(value);
57
+ },
58
+ findKey(value) {
59
+ return Object.entries(this).find(([, v]) => v === value)?.[0];
60
+ },
61
+ find(...keys) {
62
+ const result = keys.map((k) => this[k]).filter((v) => v !== void 0);
63
+ return result.length ? result : void 0;
64
+ }
65
+ };
66
+
67
+ // src/glyphs/registry.ts
68
+ var NONE = "";
69
+ var CHARACTERS = createCharacters({
70
+ dagger: "\u2020",
71
+ // †
72
+ daggerLeftGuard: "\u2E36",
73
+ // ⸶
74
+ daggerRightGuard: "\u2E37",
75
+ // ⸷
76
+ doubleDagger: "\u2021",
77
+ // ‡
78
+ tripleDagger: "\u2E4B",
79
+ // ⹋
80
+ turnedDagger: "\u2E38",
81
+ // ⸸
82
+ numero: "\u2116",
83
+ // №
84
+ number: "#",
85
+ section: "\xA7",
86
+ // §
87
+ sectionTopHalf: "\u2E39",
88
+ // ⸹
89
+ at: "@",
90
+ percent: "%",
91
+ permil: "\u2030",
92
+ // ‰
93
+ perTenThousand: "\u2031",
94
+ // ‱
95
+ trademark: "\u2122",
96
+ // TM
97
+ registered: "\xAE",
98
+ // ®
99
+ copyright: "\xA9",
100
+ // ©
101
+ copyleft: "\u{1F12F}",
102
+ // 🄯
103
+ middleDot: "\xB7",
104
+ // ·
105
+ dotOperator: "\u22C5"
106
+ // ⋅
107
+ });
108
+ var LIGATURES = createCharacters({
109
+ fi: "\uFB01",
110
+ // fi
111
+ fl: "\uFB02",
112
+ // fl
113
+ ffi: "\uFB03",
114
+ // ffi
115
+ ffl: "\uFB04",
116
+ // ffl
117
+ AA: "\uA732",
118
+ // Ꜳ
119
+ aa: "\uA733",
120
+ // ꜳ
121
+ AE: "\xC6",
122
+ // Æ
123
+ ae: "\xE6",
124
+ // æ
125
+ AO: "\uA734",
126
+ // Ꜵ
127
+ ao: "\uA735",
128
+ // ꜵ
129
+ AU: "\uA736",
130
+ // Ꜷ
131
+ au: "\uA737",
132
+ // ꜷ
133
+ AV: "\uA738",
134
+ // Ꜹ
135
+ av: "\uA739",
136
+ // ꜹ
137
+ AY: "\uA73C",
138
+ // Ꜽ
139
+ ay: "\uA73D",
140
+ // ꜽ
141
+ OE: "\u0152",
142
+ // Œ
143
+ oe: "\u0153"
144
+ // œ
145
+ });
146
+ var DASHES = createCharacters({
147
+ /**
148
+ * Em dash (—), Unicode U+2014.
149
+ *
150
+ * HTML: — or —.
151
+ *
152
+ * A full-width punctuation dash commonly used for interruptions,
153
+ * parenthetical statements, dialogue, and emphasis in typography.
154
+ *
155
+ * ---
156
+ *
157
+ * @see {@link https://en.wiktionary.org/wiki/%E2%80%94|Wiktionary: “—”}
158
+ */
159
+ em: "\u2014",
160
+ /**
161
+ * En dash (–), Unicode U+2013.
162
+ *
163
+ * HTML: – or –.
164
+ *
165
+ * Traditionally used for numeric ranges (e.g. 10–20), date spans,
166
+ * and relationships between equal terms.
167
+ *
168
+ * ---
169
+ * @see {@link https://en.wiktionary.org/wiki/%E2%80%93|Wiktionary: “–”}
170
+ */
171
+ en: "\u2013",
172
+ /**
173
+ * Two-em dash (⸺), Unicode U+2E3A.
174
+ *
175
+ * HTML: ⸺.
176
+ *
177
+ * Historically used to indicate omitted text, names, or words,
178
+ * especially in literary and bibliographic works.
179
+ *
180
+ * ---
181
+ * @see {@link https://en.wiktionary.org/wiki/%E2%B8%BA|Wiktionary: “⸺”}
182
+ */
183
+ twoEm: "\u2E3A",
184
+ /**
185
+ * Three-em dash (⸻), Unicode U+2E3B.
186
+ *
187
+ * HTML: ⸻.
188
+ *
189
+ * Traditionally used to replace an entire omitted word, name,
190
+ * or repeated author name in indexes and bibliographies.
191
+ *
192
+ * ---
193
+ * @see {@link https://en.wiktionary.org/wiki/%E2%B8%BB|Wiktionary: “⸻”}
194
+ */
195
+ threeEm: "\u2E3B",
196
+ /**
197
+ * Soft hyphen, Unicode U+00AD.
198
+ *
199
+ * HTML: ­ or ­.
200
+ *
201
+ * An invisible discretionary hyphen that appears only when a word
202
+ * is broken across lines at its insertion point.
203
+ *
204
+ * ---
205
+ * @see {@link https://en.wikipedia.org/wiki/Soft_hyphen|Wikipedia: “Soft hyphen”}
206
+ * @see {@link https://en.wiktionary.org/wiki/%E2%80%90|Wiktionary: “‐”}
207
+ */
208
+ softHyphen: "\xAD",
209
+ /**
210
+ * Figure dash (‒), Unicode U+2012.
211
+ *
212
+ * HTML: ‒.
213
+ *
214
+ * A dash designed to match the width of digits, making it useful
215
+ * in tables, account numbers, dates, and other numeric contexts.
216
+ *
217
+ * ---
218
+ * @see {@link https://en.wiktionary.org/wiki/%E2%80%92|Wiktionary: “‒”}
219
+ */
220
+ figure: "\u2012",
221
+ /**
222
+ * Hyphen (‐), Unicode U+2010.
223
+ *
224
+ * HTML: ‐.
225
+ *
226
+ * The dedicated Unicode hyphen character used to join compound
227
+ * words and affixes without the ambiguity of the ASCII hyphen-minus.
228
+ *
229
+ * ---
230
+ * @see {@link https://en.wiktionary.org/wiki/%E2%80%90|Wiktionary: “‐”}
231
+ */
232
+ hyphen: "\u2010",
233
+ /**
234
+ * Double hyphen (⹀), Unicode U+2E40.
235
+ *
236
+ * HTML: ⹀.
237
+ *
238
+ * A typographic punctuation mark representing a paired hyphen,
239
+ * historically used in dictionaries and scholarly texts.
240
+ *
241
+ * ---
242
+ * @see {@link https://en.wiktionary.org/wiki/%E2%B8%80|Wiktionary: “⹀”}
243
+ */
244
+ doubleHyphen: "\u2E40",
245
+ /**
246
+ * Non-breaking hyphen (-), Unicode U+2011.
247
+ *
248
+ * HTML: ‑.
249
+ *
250
+ * A hyphen that prevents line breaks at its position, keeping
251
+ * connected elements together on the same line.
252
+ *
253
+ * ---
254
+ * @see {@link https://en.wiktionary.org/wiki/%E2%80%90|Wiktionary: “‐”}
255
+ */
256
+ noBreakHyphen: "\u2011",
257
+ /**
258
+ * Horizontal bar (―), Unicode U+2015.
259
+ *
260
+ * HTML: ―.
261
+ *
262
+ * A long horizontal dash used in some writing systems as an
263
+ * alternative to the em dash or as a quotation dash.
264
+ *
265
+ * ---
266
+ * @see {@link https://en.wiktionary.org/wiki/%E2%80%95|Wiktionary: “―”}
267
+ */
268
+ horbar: "\u2015",
269
+ /**
270
+ * Hyphen-minus (-), Unicode U+002D.
271
+ *
272
+ * HTML: -.
273
+ *
274
+ * The standard ASCII keyboard character commonly used as a hyphen,
275
+ * minus sign, dash substitute, and command-line prefix.
276
+ *
277
+ * ---
278
+ * @see {@link https://en.wiktionary.org/wiki/-|Wiktionary: “‐”}
279
+ */
280
+ hyphenMinus: "-",
281
+ /**
282
+ * Underscore (_), Unicode U+005F.
283
+ *
284
+ * HTML: &_ or _.
285
+ *
286
+ * A low horizontal line commonly used in identifiers, file names,
287
+ * markup syntaxes, and text-based formatting conventions.
288
+ *
289
+ * ---
290
+ * @see {@link https://en.wiktionary.org/wiki/Unsupported_titles/`lowbar`|Wiktionary: “_”}
291
+ */
292
+ underscore: "_"
293
+ });
294
+ var SPACES = createCharacters({
295
+ _: " ",
296
+ // Space
297
+ noBreak: "\xA0",
298
+ // Non-breaking space
299
+ en: "\u2002",
300
+ // En space
301
+ em: "\u2003",
302
+ // Em space
303
+ threePerEm: "\u2004",
304
+ // Three-per-em
305
+ fourPerEm: "\u2005",
306
+ // Four-per-em
307
+ sixPerEm: "\u2006",
308
+ // Six-per-em
309
+ figure: "\u2007",
310
+ // Figure space
311
+ punctuation: "\u2008",
312
+ // Punctuation space
313
+ thin: "\u2009",
314
+ // Thin space
315
+ hair: "\u200A",
316
+ // Hair space
317
+ noBreakNarrow: "\u202F",
318
+ // Narrow non-breaking space
319
+ mediumMath: "\u205F",
320
+ // Medium mathematical space
321
+ ideographic: "\u3000",
322
+ // Ideographic space
323
+ zeroWidth: "\u200B",
324
+ // Zero-width
325
+ zeroWidthNoBreak: "\uFEFF"
326
+ // Zero-width non-breaking space
327
+ });
328
+ var MATHS = createCharacters({
329
+ minus: "\u2212",
330
+ // −
331
+ plusMinus: "\xB1",
332
+ // ±
333
+ minusPlus: "\u2213",
334
+ // ∓
335
+ multiply: "\xD7",
336
+ // ×
337
+ obelus: "\xF7",
338
+ // ÷
339
+ divisionTimes: "\u22C7",
340
+ // ⋇
341
+ fractionSlash: "\u2044"
342
+ // ⁄
343
+ });
344
+ var TEMPERATURES = createCharacters({
345
+ celsiusSolid: "\u2103",
346
+ // ℃
347
+ fahrenheitSolid: "\u2109",
348
+ // ℉
349
+ kelvin: "[K\u212A]",
350
+ // K
351
+ celsius: "\xB0C",
352
+ fahrenheit: "\xB0F",
353
+ delisle: "\xB0D",
354
+ leiden: "\xB0L",
355
+ newton: "\xB0N",
356
+ wedgewood: "\xB0W",
357
+ dalton: "\xB0Da",
358
+ hooke: "\xB0H",
359
+ rankine: "\xB0R",
360
+ reaumur: "\xB0R[e\xE9]",
361
+ romer: "\xB0R[o\xF8]"
362
+ });
363
+ var PUNCTUATION = createCharacterSet({
364
+ common: {
365
+ // Shared
366
+ generic: createCharacters({
367
+ apostrophe: "\u2019"
368
+ // ’
369
+ }),
370
+ leftSided: createCharacters({
371
+ invertedExclamation: "\xA1",
372
+ // ¡
373
+ invertedQuestion: "\xBF",
374
+ // ¿
375
+ invertedInterrobang: "\u2E18"
376
+ // ⸘
377
+ }),
378
+ rightSided: createCharacters({
379
+ exclamation: "!",
380
+ doubleExclamation: "\u203C",
381
+ // ‼
382
+ exclamationQuestion: "\u2049",
383
+ // ⁉
384
+ exclamationMedieval: "\u2E53",
385
+ // ⹓
386
+ question: "?",
387
+ doubleQuestion: "\u2047",
388
+ // ⁇
389
+ questionExclamation: "\u2048",
390
+ // ⁈
391
+ questionMedieval: "\u2E54",
392
+ // ⹔
393
+ reversedQuestion: "\u2E2E",
394
+ // ⸮
395
+ interrobang: "\u203D",
396
+ // ‽
397
+ dot: ".",
398
+ comma: ",",
399
+ commaMedieval: "\u2E4C",
400
+ // ⹌
401
+ ellipsis: "\u2026"
402
+ // …
403
+ }),
404
+ colons: createCharacters({
405
+ colon: ":",
406
+ semicolon: ";",
407
+ punctusElevatus: "\u2E4E"
408
+ // ⹎
409
+ })
410
+ },
411
+ ru: {
412
+ // Russian
413
+ leftSided: createCharacters({
414
+ outerQuoteOpen: "\xAB",
415
+ // «
416
+ innerQuoteOpen: "\u201E"
417
+ // „
418
+ }),
419
+ rightSided: createCharacters({
420
+ outerQuoteClose: "\xBB",
421
+ // »
422
+ innerQuoteClose: "\u201D"
423
+ // “
424
+ })
425
+ },
426
+ en: {
427
+ // English
428
+ leftSided: createCharacters({
429
+ outerQuoteOpen: "\u201C",
430
+ // “
431
+ innerQuoteOpen: "\u2018"
432
+ // ‘
433
+ }),
434
+ rightSided: createCharacters({
435
+ outerQuoteClose: "\u201D",
436
+ // ”
437
+ innerQuoteClose: "\u2019"
438
+ // ’
439
+ })
440
+ },
441
+ fr: {
442
+ // Français
443
+ leftSided: createCharacters({
444
+ outerQuoteOpen: "\xAB",
445
+ // «
446
+ innerQuoteOpen: "\u2039"
447
+ // ‹
448
+ }),
449
+ rightSided: createCharacters({
450
+ outerQuoteClose: "\xBB",
451
+ // »
452
+ innerQuoteClose: "\u203A"
453
+ // ›
454
+ })
455
+ },
456
+ is: {
457
+ // Íslenska
458
+ leftSided: createCharacters({
459
+ outerQuoteOpen: "\u201E",
460
+ // „
461
+ innerQuoteOpen: "\u201A"
462
+ // ‚
463
+ }),
464
+ rightSided: createCharacters({
465
+ outerQuoteClose: "\u201C",
466
+ // “
467
+ innerQuoteClose: "\u2018"
468
+ // ‘
469
+ })
470
+ }
471
+ });
472
+ var BRACKETS = createCharacterSet({
473
+ common: {
474
+ left: createCharacters({
475
+ round: "(",
476
+ square: "[",
477
+ curly: "{"
478
+ }),
479
+ right: createCharacters({
480
+ round: ")",
481
+ square: "]",
482
+ curly: "}"
483
+ })
484
+ }
485
+ });
486
+ var DIGITS = createCharacters({
487
+ zero: "0",
488
+ one: "1",
489
+ two: "2",
490
+ three: "3",
491
+ four: "4",
492
+ five: "5",
493
+ six: "6",
494
+ seven: "7",
495
+ eight: "8",
496
+ nine: "9",
497
+ ascii_roman_capital_one: "I",
498
+ ascii_roman_capital_five: "V",
499
+ ascii_roman_capital_ten: "X",
500
+ ascii_roman_capital_fifty: "L",
501
+ ascii_roman_capital_one_hundred: "C",
502
+ ascii_roman_capital_five_hundred: "D",
503
+ ascii_roman_capital_one_thousand: "M",
504
+ roman_capital_one: "\u2160",
505
+ roman_capital_two: "\u2161",
506
+ roman_capital_three: "\u2162",
507
+ roman_capital_four: "\u2163",
508
+ roman_capital_five: "\u2164",
509
+ roman_capital_six: "\u2165",
510
+ roman_capital_six_late_form: "\u2185",
511
+ roman_capital_seven: "\u2166",
512
+ roman_capital_eight: "\u2167",
513
+ roman_capital_nine: "\u2168",
514
+ roman_capital_ten: "\u2169",
515
+ roman_capital_eleven: "\u216A",
516
+ roman_capital_twelve: "\u216B",
517
+ roman_capital_fifty: "\u216C",
518
+ roman_capital_fifty_early_form: "\u2186",
519
+ roman_capital_one_hundred: "\u216D",
520
+ roman_capital_one_hundred_reversed: "\u2183",
521
+ roman_capital_five_hundred: "\u216E",
522
+ roman_capital_one_thousand: "\u216F",
523
+ roman_capital_five_thousand: "\u2181",
524
+ roman_capital_ten_thousand: "\u2182",
525
+ roman_capital_fifty_thousand: "\u2187",
526
+ roman_capital_one_hundred_thousand: "\u2188",
527
+ roman_small_one: "\u2170",
528
+ roman_small_two: "\u2171",
529
+ roman_small_three: "\u2172",
530
+ roman_small_four: "\u2173",
531
+ roman_small_five: "\u2174",
532
+ roman_small_six: "\u2175",
533
+ roman_small_seven: "\u2176",
534
+ roman_small_eight: "\u2177",
535
+ roman_small_nine: "\u2178",
536
+ roman_small_ten: "\u2179",
537
+ roman_small_eleven: "\u217A",
538
+ roman_small_twelve: "\u217B"
539
+ });
540
+ var WALLET = {
541
+ SYMBOL: createCharacters({
542
+ // symbols
543
+ anis: "\xA4",
544
+ // ¤
545
+ european_currency_unit: "\u20A0",
546
+ // ₠
547
+ austral: "\u20B3",
548
+ // ₳
549
+ cent: "\xA2",
550
+ // ¢
551
+ cedi: "\u20B5",
552
+ // ₵
553
+ colon: "\u20A1",
554
+ // ₡
555
+ dollar: "$",
556
+ drachma: "\u20AF",
557
+ // ₯
558
+ dram: "\u058F",
559
+ // ֏
560
+ doromi: "\u07FE",
561
+ euro: "\u20AC",
562
+ // €
563
+ franc: "\u20A3",
564
+ // ₣
565
+ guarani: "\u20B2",
566
+ // ₲
567
+ kip: "\u20AD",
568
+ // ₭
569
+ lari: "\u20BE",
570
+ // ₾
571
+ naira: "\u20A6",
572
+ // ₦
573
+ pound: "\xA3",
574
+ // £
575
+ tournois: "\u20B6",
576
+ // ₶
577
+ spesmillo: "\u20B7",
578
+ // ₷
579
+ ruble: "\u20BD",
580
+ // ₽
581
+ hryvnia: "\u20B4",
582
+ // ₴
583
+ lira: "\u20A4",
584
+ // ₤
585
+ lira_turkish: "\u20BA",
586
+ // ₺
587
+ baht: "\u0E3F",
588
+ // ฿
589
+ rupee: "\u20B9",
590
+ // ₹
591
+ won: "\u20A9",
592
+ // ₩
593
+ yen: "\xA5",
594
+ // ¥
595
+ yen_kanji: "\u5186",
596
+ // 円
597
+ yuan_hanzi: "\u5143",
598
+ // 元
599
+ dong: "\u20AB",
600
+ // ₫
601
+ tugrik: "\u20AE",
602
+ // ₮
603
+ tenge: "\u20B8",
604
+ // ₸
605
+ shekel: "\u20AA",
606
+ // ₪
607
+ manat: "\u20BC",
608
+ // ₼
609
+ rupee_alt: "\u20A8",
610
+ // ₨
611
+ peseta: "\u20A7",
612
+ // ₧
613
+ peso: "\u20B1",
614
+ // ₱
615
+ riyal: "\uFDFC",
616
+ bitcoin_symbol: "\u20BF",
617
+ // ₿
618
+ taka: "\u09F3",
619
+ // ৳
620
+ tamil_rupee: "\u0BF9",
621
+ // ௹
622
+ sinhala_rupee: "\u0DBB\u0DD4",
623
+ // රු
624
+ roman_sextans: "\u{10190}",
625
+ roman_uncia: "\u{10191}",
626
+ roman_semuncia: "\u{10192}",
627
+ roman_sextula: "\u{10193}",
628
+ roman_dimida_sextula: "\u{10194}",
629
+ roman_siliqua: "\u{10195}",
630
+ roman_denarius: "\u{10196}",
631
+ roman_quinarius: "\u{10197}",
632
+ roman_sestertius: "\u{10198}",
633
+ roman_dupondius: "\u{10199}",
634
+ roman_as: "\u{1019A}"
635
+ }),
636
+ ISO: createCharacters({
637
+ // codes / ISO / crypto
638
+ rub: "RUB",
639
+ usd: "USD",
640
+ eur: "EUR",
641
+ gbp: "GBP",
642
+ jpy: "JPY",
643
+ chf: "CHF",
644
+ cad: "CAD",
645
+ aud: "AUD",
646
+ nzd: "NZD",
647
+ pln: "PLN",
648
+ huf: "HUF",
649
+ brl: "BRL",
650
+ cny: "CNY",
651
+ twd: "TWD",
652
+ sgd: "SGD",
653
+ myr: "MYR",
654
+ idr: "IDR",
655
+ thb: "THB",
656
+ vnd: "VND",
657
+ krw: "KRW",
658
+ pkr: "PKR",
659
+ inr: "INR",
660
+ ils: "ILS",
661
+ qar: "QAR",
662
+ sar: "SAR",
663
+ aed: "AED",
664
+ omr: "OMR",
665
+ yem: "YER",
666
+ jod: "JOD",
667
+ iqd: "IQD",
668
+ kwd: "KWD",
669
+ bhd: "BHD",
670
+ tnd: "TND",
671
+ egp: "EGP",
672
+ syp: "SYP",
673
+ lbp: "LBP",
674
+ czk: "CZK",
675
+ sek: "SEK",
676
+ nok: "NOK",
677
+ dkk: "DKK",
678
+ hrk: "HRK",
679
+ rsd: "RSD",
680
+ bgn: "BGN",
681
+ ron: "RON",
682
+ uah: "UAH",
683
+ kzt: "KZT",
684
+ gel: "GEL",
685
+ amd: "AMD",
686
+ mxn: "MXN",
687
+ clp: "CLP",
688
+ cop: "COP",
689
+ ars: "ARS",
690
+ zar: "ZAR",
691
+ try: "TRY",
692
+ php: "PHP",
693
+ ngn: "NGN",
694
+ lkr: "LKR",
695
+ bdt: "BDT",
696
+ usdt: "USDT",
697
+ btc: "BTC",
698
+ eth: "ETH",
699
+ xrp: "XRP",
700
+ sol: "SOL",
701
+ bnb: "BNB",
702
+ usdc: "USDC"
703
+ })
704
+ };
705
+ var RANGES = createCharacterSet({
706
+ common: {
707
+ DIGITS: createCharacters({
708
+ digits: "0-9",
709
+ ascii_roman_numerals: "XIVCMLDZxivcmldz",
710
+ roman_numerals: "\u2160-\u2188"
711
+ })
712
+ }
713
+ });
714
+
715
+ // src/glyphs/index.ts
716
+ function createCharacters(data) {
717
+ return Object.assign(Object.create(proto), data);
718
+ }
719
+ function createProtoSet() {
720
+ return {
721
+ get(dataSet, key) {
722
+ const commonEntry = this.common?.[key] ?? {};
723
+ const localeEntry = this[dataSet]?.[key] ?? {};
724
+ return createCharacters({ ...commonEntry, ...localeEntry });
725
+ },
726
+ getList() {
727
+ return Object.keys(this);
728
+ },
729
+ hasKey(key) {
730
+ return this.getList().includes(key);
731
+ }
732
+ };
733
+ }
734
+ function createCharacterSet(data) {
735
+ return Object.assign(Object.create(createProtoSet()), data);
736
+ }
737
+ //# sourceMappingURL=index.cjs.map