1
2
3
4
5
6
7
8
9
10
11
12
13
14\writestatus{loading}{ConTeXt Core Macros Conversion}
15
16\registerctxluafile{corecon}{autosuffix}
17
18
19
20\unprotect
21
22\ifdefined\currentlanguage \else \lettonothing\currentlanguage \fi
23\ifdefined\labeltext \else \let\labeltext\firstofoneargument \fi
24
25
26
27
28
29\aliased\let\spr\firstofoneargument
30\aliased\let\stp\firstofoneargument
31
32
33
34\permanent\protected\def\isolateseparators
35 {\enforced\permanent\def\spr##1{{##1}}
36 \enforced\permanent\def\stp##1{{##1}}}
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57\permanent\def\numbers#1{\purenumber{#1}}
58\permanent\def\Numbers#1{\purenumber{#1}}
59
60
61
62
63
64
65
66
67
68
69
70\permanent\def\romannumerals#1{\clf_romannumerals\numexpr#1\relax}
71\permanent\def\Romannumerals#1{\clf_Romannumerals\numexpr#1\relax}
72
73
74
75\permanent\def\abjadnumerals #1{\clf_abjadnumerals \numexpr#1\relax}
76\permanent\def\abjadnodotnumerals#1{\clf_abjadnodotnumerals\numexpr#1\relax}
77\permanent\def\abjadnaivenumerals#1{\clf_alphabetic \numexpr#1\relax{arabic}}
78
79\permanent\def\hebrewnumerals #1{\clf_hebrewnumerals\numexpr#1\relax}
80\aliased \let\yiddishnumerals \hebrewnumerals
81
82\permanent\def\languagecharacters#1{\clf_alphabetic\numexpr#1\relax{\currentlanguage}}
83\permanent\def\languageCharacters#1{\clf_Alphabetic\numexpr#1\relax{\currentlanguage}}
84
85\permanent\def\alphabeticnumerals#1{\clf_alphabetic\numexpr#1\relax{}}
86\permanent\def\Alphabeticnumerals#1{\clf_Alphabetic\numexpr#1\relax{}}
87
88\permanent\def\thainumerals #1{\clf_alphabetic\numexpr#1\relax{thai}}
89\permanent\def\devanagarinumerals#1{\clf_decimals \numexpr#1\relax{devanagari}}
90\permanent\def\malayalamnumerals #1{\clf_decimals \numexpr#1\relax{malayalam}}
91\permanent\def\tamilnumerals #1{\clf_decimals \numexpr#1\relax{tamil}}
92\permanent\def\kannadanumerals #1{\clf_decimals \numexpr#1\relax{kannada}}
93\permanent\def\telugunumerals #1{\clf_decimals \numexpr#1\relax{telugu}}
94\permanent\def\bengalinumerals #1{\clf_decimals \numexpr#1\relax{bengali}}
95\permanent\def\gujaratinumerals #1{\clf_decimals \numexpr#1\relax{gujarati}}
96\permanent\def\gurmurkhinumerals #1{\clf_decimals \numexpr#1\relax{gurmurkhi}}
97\permanent\def\tibetannumerals #1{\clf_alphabetic\numexpr#1\relax{tibetan}}
98\permanent\def\greeknumerals #1{\clf_alphabetic\numexpr#1\relax{greek}}
99\permanent\def\Greeknumerals #1{\clf_Alphabetic\numexpr#1\relax{greek}}
100\permanent\def\arabicnumerals #1{\clf_alphabetic\numexpr#1\relax{arabic}}
101\permanent\def\persiannumerals #1{\clf_alphabetic\numexpr#1\relax{persian}}
102\permanent\def\arabicdecimals #1{\clf_decimals \numexpr#1\relax{arabic}}
103\permanent\def\persiandecimals #1{\clf_decimals \numexpr#1\relax{persian}}
104
105\permanent\def\mathgreeknumerals #1{\im{\clf_alphabetic\numexpr#1\relax{greek}}}
106\permanent\def\mathGreeknumerals #1{\im{\clf_Alphabetic\numexpr#1\relax{greek}}}
107
108\aliased \let\arabicexnumerals \persiannumerals
109
110\permanent\def\koreannumerals #1{\clf_alphabetic\numexpr#1\relax{korean}}
111\permanent\def\koreannumeralsp #1{\clf_alphabetic\numexpr#1\relax{koreanparenthesis}}
112\permanent\def\koreannumeralsc #1{\clf_alphabetic\numexpr#1\relax{koreancircle}}
113
114\aliased \let\koreanparentnumerals \koreannumeralsp
115\aliased \let\koreanparenthesisnumerals\koreannumeralsp
116\aliased \let\koreancirclenumerals \koreannumeralsc
117
118\permanent\def\chinesenumerals #1{\clf_chinesenumerals\numexpr#1\relax{normal}}
119\permanent\def\chinesecapnumerals #1{\clf_chinesenumerals\numexpr#1\relax{cap}}
120\permanent\def\chineseallnumerals #1{\clf_chinesenumerals\numexpr#1\relax{all}}
121\permanent\def\chinesedatenumerals#1{\clf_chinesenumerals\numexpr#1\relax{date}}
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139\permanent\def\character#1{\clf_character\numexpr#1\relax}
140\permanent\def\Character#1{\clf_Character\numexpr#1\relax}
141
142
143
144
145
146
147
148
149
150
151\permanent\def\characters#1{\clf_characters\numexpr#1\relax}
152\permanent\def\Characters#1{\clf_Characters\numexpr#1\relax}
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167\permanent\protected\def\oldstylenumerals#1
168 {\begingroup
169 \os\number#1
170 \endgroup}
171
172\permanent\protected\def\oldstyleromannumerals#1
173 {\dontleavehmode
174 \hbox\bgroup
175 \ss\txx
176 \setbox\scratchbox\hbox \s!spread .15\emwidth{\hss\uppercased{\romannumerals{#1}}\hss}
177 \scratchwidth \wd\scratchbox
178 \scratchheight\ht\scratchbox
179 \scratchdimen .1\exheight
180 \vrule\s!width\scratchwidth\s!height\dimexpr\scratchheight\scratchdimen\relax\s!depth\dimexpr\scratchheight\scratchdimen\relax
181 \hskip\scratchwidth
182 \vrule\s!width\scratchwidth\s!height\scratchdimen\s!depth\scratchdimen
183 \hskip\scratchwidth
184 \box\scratchbox
185 \egroup}
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207\permanent\protected\def\monthlong #1{\clf_monthname\numexpr#1\relax}
208\permanent\protected\def\monthshort#1{\clf_monthmnem\numexpr#1\relax}
209\permanent\protected\def\daylong #1{\clf_dayname\numexpr#1\relax}
210\permanent\protected\def\dayshort #1{\clf_daymnem\numexpr#1\relax}
211\aliased \let\convertmonth\monthlong
212
213
214
215
216
217
218\pushoverloadmode
219
220\aliased\let\month\monthlong
221
222\popoverloadmode
223
224\permanent\protected\def\MONTH #1{\WORD{\clf_monthname\numexpr#1\relax}}
225\permanent\protected\def\MONTHLONG #1{\WORD{\clf_monthname\numexpr#1\relax}}
226\permanent\protected\def\MONTHSHORT#1{\WORD{\clf_monthmnem\numexpr#1\relax}}
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246\permanent\protected\def\weekday #1{\clf_dayname\numexpr#1\relax}
247\permanent\protected\def\WEEKDAY #1{\WORD{\clf_dayname\numexpr#1\relax}}
248\permanent\protected\def\DAYLONG #1{\WORD{\clf_dayname\numexpr#1\relax}}
249\permanent\protected\def\DAYSHORT#1{\WORD{\clf_daymnem\numexpr#1\relax}}
250
251
252
253
254\newcount\normalweekday
255
256\permanent \def\dayoftheweek #1#2#3{\clf_weekdayname\numexpr#1\relax\numexpr#2\relax\numexpr#3\relax}
257\permanent\protected\def\getdayoftheweek#1#2#3{\normalweekday\clf_weekday\numexpr#1\relax\numexpr#2\relax\numexpr#3\relax\relax}
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\permanent\def\doifelseleapyear#1
303 {\clf_doifelseleapyear\numexpr#1\relax}
304
305\aliased\let\doifleapyearelse\doifelseleapyear
306
307\mutable\let\numberofdays\!!zerocount
308
309\permanent\protected\def\getdayspermonth#1#2
310 {\edef\numberofdays{\clf_nofdays\numexpr#1\relax\numexpr#2\relax}}
311
312\permanent\def\dayspermonth#1#2
313 {\clf_nofdays\numexpr#1\relax\numexpr#2\relax}
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
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423\installcorenamespace{date}
424
425\permanent\tolerant\protected\def\definedate[#1]#,[#2]
426 {\ifarguments\else\defcsname\??date#1\endcsname{#2}\fi}
427
428\def\syst_converters_check_date_specification#1
429 {\ifcsname\??date#1\endcsname
430 \edef#1{\lastnamedcs}
431 \fi}
432
433\newtoks\everycurrentdate
434
435\permanent\tolerant\protected\def\currentdate[#1]
436 {\dontleavehmode
437 \begingroup
438 \expand\everycurrentdate
439 \edef\m_syst_converters_date{#1}
440 \syst_converters_check_date_specification\m_syst_converters_date
441 \syst_converters_check_date_specification\currentdatespecification
442 \clf_currentdate
443 {\m_syst_converters_date}{\currentdatespecification}{\labellanguage}
444 \normalyear\normalmonth\normalday
445 \endgroup}
446
447\permanent\tolerant\protected\def\setdate[#1]
448 {\begingroup
449 \letdummyparameter\c!d\normalday
450 \letdummyparameter\c!m\normalmonth
451 \letdummyparameter\c!y\normalyear
452 \getdummyparameters[#1]
453 \normalexpanded
454 {\endgroup
455 \ifempty{\directdummyparameter\c!d}\else\normalday \number\directdummyparameter\c!d\relax\fi
456 \ifempty{\directdummyparameter\c!m}\else\normalmonth\number\directdummyparameter\c!m\relax\fi
457 \ifempty{\directdummyparameter\c!y}\else\normalyear \number\directdummyparameter\c!y\relax\fi}}
458
459\permanent\tolerant\protected\def\date[#1]#,[#2]
460 {\dontleavehmode
461 \begingroup
462 \setdate[#1]
463 \expand\everycurrentdate
464 \edef\m_syst_converters_date{#2}
465 \syst_converters_check_date_specification\m_syst_converters_date
466 \syst_converters_check_date_specification\currentdatespecification
467 \clf_currentdate
468 {\m_syst_converters_date}{\currentdatespecification}{\labellanguage}
469 \normalyear\normalmonth\normalday
470 \endgroup}
471
472\permanent\def\rawdate[#1]
473 {\clf_currentdate
474 {#1}{\currentdatespecification}{}
475 \normalyear\normalmonth\normalday}
476
477
478
479
480
481
482
483\mutable\let\currenthour \!!plusone
484\mutable\let\currentminute\!!plusone
485\mutable\let\currentsecond\!!plusone
486
487\permanent\protected\def\calculatecurrenttime
488 {\edef\currenthour {\clf_hour }
489 \edef\currentminute{\clf_minute}
490 \edef\currentsecond{\clf_second}}
491
492
493
494\permanent\protected\def\currenttime
495 {\doifelsenextoptional\syst_converters_current_time_yes\syst_converters_current_time_nop}
496
497\protected\def\syst_converters_current_time_yes[#1]
498 {\calculatecurrenttime
499 \processallactionsinset[#1][h=>\currenthour,m=>\currentminute,\s!unknown=>\commalistelement]}
500
501\protected\def\syst_converters_current_time_nop
502 {\normalexpanded{\syst_converters_current_time_yes[\currenttimespecification]}}
503
504
505
506
507
508
509
510
511
512
513
514\permanent\protected\def\processmonth#1#2#3
515 {\begingroup
516 \getdayspermonth{#1}{#2}
517 \dostepwiserecurse\plusone\numberofdays\plusone
518 {\normalyear #1\relax
519 \normalmonth#2\relax
520 \normalday \recurselevel\relax
521 #3}
522 \endgroup}
523
524\permanent\protected\def\processyear#1#2#3#4
525 {\begingroup
526 \dorecurse\plustwelve
527 {\normalyear #1\relax
528 \normalmonth\recurselevel\relax
529 #3\processmonth\normalyear\normalmonth{#2}#4}
530 \endgroup}
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554\installcorenamespace {conversion}
555\installcorenamespace {conversionarguments}
556\installcorenamespace {conversionwords}
557
558
559
560
561
562
563
564
565\permanent\tolerant\protected\def\defineconversion[#1]#*[#2]#*[#3]
566 {\ifparameter#3\or
567 \syst_converters_define_conversion_indeed{#1#2}{#1:#2}{#3}
568 \else
569 \syst_converters_define_conversion_indeed{#1}{#1}{#2}
570 \fi}
571
572\def\syst_converters_define_conversion_indeed#1#2#3
573 {\doifelseinstring{,}{\detokenize{#3}}
574 {\clf_defineconversion{#2}{\detokenize{#3}}
575 \gdefcsname\??conversion#1\endcsname{\syst_converters_checked_conversion{#2}}}
576 {\gdefcsname\??conversion#1\endcsname{#3}}}
577
578\def\syst_converters_checked_conversion#1#2
579 {\clf_checkedconversion{#1}\numexpr#2\relax}
580
581
582
583
584
585\permanent\def\convertnumber#1#2
586 {\csname\??conversionarguments
587 \ifcsname\??conversion\currentlanguage#1\endcsname1\else
588 \ifcsname\??conversion #1\endcsname2\else
589 3\fi\fi
590 \endcsname{#1}{\number#2}}
591
592\permanent\protected\def\uconvertnumber
593 {\convertnumber}
594
595\defcsname\??conversionarguments1\endcsname#1{\csname\??conversion\currentlanguage#1\endcsname}
596\defcsname\??conversionarguments2\endcsname#1{\csname\??conversion #1\endcsname}
597\letcsname\??conversionarguments3\endcsname \syst_converters_checked_conversion
598
599
600
601
602
603\permanent\def\doifelseconversiondefined#1
604 {\ifcsname\??conversion\currentlanguage#1\endcsname
605 \expandafter\firstoftwoarguments
606 \orelse\ifcsname\??conversion#1\endcsname
607 \expandafter\firstoftwoarguments
608 \else
609 \expandafter\secondoftwoarguments
610 \fi}
611
612\permanent\def\doifelseconversionnumber#1#2
613 {\ifnum#2>\numexpr\clf_nofconversions{#1}\relax
614 \expandafter\secondoftwoarguments
615 \else
616 \expandafter\firstoftwoarguments
617 \fi}
618
619\aliased\let\doifconversiondefinedelse\doifelseconversiondefined
620\aliased\let\doifconversionnumberelse \doifelseconversionnumber
621
622
623
624\defcsname\??conversionwords\v!one \endcsname{1}
625\defcsname\??conversionwords\v!two \endcsname{2}
626\defcsname\??conversionwords\v!three\endcsname{3}
627\defcsname\??conversionwords\v!four \endcsname{4}
628\defcsname\??conversionwords\v!five \endcsname{5}
629
630
631\permanent\def\wordtonumber#1#2{\ifcsname\??conversionwords#1\endcsname\lastnamedcs\else#2\fi}
632
633
634
635
636
637
638
639
640
641
642
643\permanent\def\highordinalstr#1{\high{\notsmallcapped{#1}}}
644\permanent\def\ordinalstr #1{\notsmallcapped{#1}}
645\permanent\def\ordinalnumber #1{\clf_ordinal\numexpr#1\relax{\currentlanguage}}
646\permanent\def\Ordinalnumber #1{\Words{\clf_ordinal\numexpr#1\relax{\currentlanguage}}}
647
648\mutable\let\verbosenumberconnector\space
649
650\permanent\def\verbosenumber#1{\clf_verbose\numexpr#1\relax{\currentlanguage}{\verbosenumberconnector}}
651\permanent\def\VerboseNumber#1{\Words{\clf_verbose\numexpr#1\relax{\currentlanguage}{\verbosenumberconnector}}}
652
653
654
655
656
657
658\permanent\def\smallcappedromannumerals#1{\smallcapped{\romannumerals{#1}}}
659\permanent\def\smallcappedcharacters #1{\smallcapped{\characters {#1}}}
660
661\defineconversion [] [\numbers]
662\defineconversion [\v!empty] [\gobbleoneargument]
663\defineconversion [\v!none] [\numbers]
664\defineconversion [\s!default] [\numbers]
665
666\defineconversion [month] [\monthlong]
667\defineconversion [month:mnem] [\monthshort]
668
669\defineconversion [\v!character] [\character]
670\defineconversion [\v!Character] [\Character]
671
672\defineconversion [\v!characters] [\characters]
673\defineconversion [\v!Characters] [\Characters]
674
675\defineconversion [a] [\alphabeticnumerals]
676\defineconversion [A] [\Alphabeticnumerals]
677\defineconversion [AK] [\smallcappedcharacters]
678\defineconversion [KA] [\smallcappedcharacters]
679
680\defineconversion [\v!alphabetic] [\alphabeticnumerals]
681\defineconversion [\v!Alphabetic] [\Alphabeticnumerals]
682
683\defineconversion [\v!number] [\numbers]
684\defineconversion [\v!numbers] [\numbers]
685\defineconversion [\v!Numbers] [\Numbers]
686\defineconversion [\v!mediaeval] [\mediaeval]
687
688\defineconversion [\v!word] [\verbosenumber]
689\defineconversion [\v!words] [\verbosenumber]
690
691\defineconversion [\v!Word] [\VerboseNumber]
692\defineconversion [\v!Words] [\VerboseNumber]
693
694\defineconversion[\v!ordinal] [\ordinalnumber]
695\defineconversion[\v!Ordinal] [\Ordinalnumber]
696
697\defineconversion [n] [\numbers]
698\defineconversion [N] [\Numbers]
699\defineconversion [m] [\mediaeval]
700\defineconversion [o] [\oldstylenumerals]
701\defineconversion [O] [\oldstylenumerals]
702\defineconversion [or] [\oldstyleromannumerals]
703
704\defineconversion [\v!romannumerals] [\romannumerals]
705\defineconversion [\v!Romannumerals] [\Romannumerals]
706
707\defineconversion [i] [\romannumerals]
708\defineconversion [I] [\Romannumerals]
709\defineconversion [r] [\romannumerals]
710\defineconversion [R] [\Romannumerals]
711
712\defineconversion [KR] [\smallcappedromannumerals]
713\defineconversion [RK] [\smallcappedromannumerals]
714
715\defineconversion [\v!greek] [\greeknumerals]
716\defineconversion [\v!Greek] [\Greeknumerals]
717
718\defineconversion [\s!math:\v!greek] [\mathgreeknumerals]
719\defineconversion [\s!math:\v!Greek] [\mathGreeknumerals]
720
721\defineconversion [g] [\greeknumerals]
722\defineconversion [G] [\Greeknumerals]
723
724
725
726
727\defineconversion [abjadnumerals] [\abjadnumerals]
728\defineconversion [abjadnodotnumerals] [\abjadnodotnumerals]
729\defineconversion [abjadnaivenumerals] [\abjadnaivenumerals]
730
731\defineconversion [hebrewnumerals] [\hebrewnumerals]
732\defineconversion [yiddishnumerals] [\yiddishnumerals]
733
734
735
736
737\defineconversion [thainumerals] [\thainumerals]
738\defineconversion [devanagarinumerals] [\devanagarinumerals]
739\defineconversion [malayalamnumerals] [\malayalamnumerals]
740\defineconversion [tamilnumerals] [\tamilnumerals]
741\defineconversion [kannadanumerals] [\kannadanumerals]
742\defineconversion [telugunumerals] [\telugunumerals]
743\defineconversion [bengalinumerals] [\bengalinumerals]
744\defineconversion [gurmurkhinumerals] [\gurmurkhinumerals]
745\defineconversion [gujaratinumerals] [\gujaratinumerals]
746\defineconversion [tibetannumerals] [\tibetannumerals]
747\defineconversion [greeknumerals] [\greeknumerals]
748\defineconversion [Greeknumerals] [\Greeknumerals]
749\defineconversion [arabicnumerals] [\arabicnumerals]
750\defineconversion [persiannumerals] [\persiannumerals]
751\defineconversion [arabicexnumerals] [\arabicexnumerals]
752\defineconversion [arabicdecimals] [\arabicdecimals]
753\defineconversion [persiandecimals] [\persiandecimals]
754
755\defineconversion [mathgreeknumerals] [\mathgreeknumerals]
756\defineconversion [mathGreeknumerals] [\mathGreeknumerals]
757
758\defineconversion [koreannumerals] [\koreannumerals]
759\defineconversion [koreanparennumerals] [\koreanparenthesisnumerals]
760\defineconversion [koreanparenthesisnumerals]
761 [\koreanparenthesisnumerals]
762\defineconversion [koreancirclenumerals] [\koreancirclenumerals]
763
764\defineconversion [kr] [\koreannumerals]
765\defineconversion [krp] [\koreanparentnumerals]
766\defineconversion [krc] [\koreancirclenumerals]
767
768\defineconversion [chinesenumerals] [\chinesenumerals]
769\defineconversion [chinesecapnumerals] [\chinesecapnumerals]
770\defineconversion [chineseallnumerals] [\chineseallnumerals]
771\defineconversion [chinesedatenumerals] [\chinesedatenumerals]
772
773\defineconversion [cn] [\chinesenumerals]
774\defineconversion [cnc] [\chinesecapnumerals]
775\defineconversion [cna] [\chineseallnumerals]
776\defineconversion [cnd] [\chinesedatenumerals]
777
778
779
780
781
782
783
784
785
786\permanent\def\sloveniannumerals#1{\clf_alphabetic\numexpr#1\relax{sl}}
787\permanent\def\slovenianNumerals#1{\clf_Alphabetic\numexpr#1\relax{sl}}
788
789\permanent\def\spanishnumerals #1{\clf_alphabetic\numexpr#1\relax{es}}
790\permanent\def\spanishNumerals #1{\clf_Alphabetic\numexpr#1\relax{es}}
791
792\permanent\def\russiannumerals #1{\clf_alphabetic\numexpr#1\relax{ru}}
793\permanent\def\russianNumerals #1{\clf_Alphabetic\numexpr#1\relax{ru}}
794
795
796
797
798
799
800\defineconversion [\s!sl] [alphabetic] [\sloveniannumerals]
801\defineconversion [\s!sl] [Alphabetic] [\slovenianNumerals]
802
803\defineconversion [\s!sl] [a] [\sloveniannumerals]
804\defineconversion [\s!sl] [A] [\slovenianNumerals]
805\defineconversion [\s!sl] [AK] [\smallcapped\sloveniannumerals]
806\defineconversion [\s!sl] [KA] [\smallcapped\sloveniannumerals]
807
808
809
810
811
812
813\defineconversion [\s!es] [alphabetic] [\spanishnumerals]
814\defineconversion [\s!es] [Alphabetic] [\spanishNumerals]
815
816\defineconversion [\s!es] [a] [\spanishnumerals]
817\defineconversion [\s!es] [A] [\spanishNumerals]
818\defineconversion [\s!es] [AK] [\smallcapped\spanishnumerals]
819\defineconversion [\s!es] [KA] [\smallcapped\spanishnumerals]
820
821
822
823
824
825
826\defineconversion [\s!ru] [alphabetic] [\russiannumerals]
827\defineconversion [\s!ru] [Alphabetic] [\russianNumerals]
828
829\defineconversion [\s!ru] [a] [\russiannumerals]
830\defineconversion [\s!ru] [A] [\russianNumerals]
831\defineconversion [\s!ru] [AK] [\smallcapped\russiannumerals]
832\defineconversion [\s!ru] [KA] [\smallcapped\russiannumerals]
833
834\defineconversion [sloveniannumerals] [\sloveniannumerals]
835\defineconversion [slovenianNumerals] [\slovenianNumerals]
836
837\defineconversion [spanishnumerals] [\spanishnumerals]
838\defineconversion [spanishNumerals] [\spanishNumerals]
839
840\defineconversion [russiannumerals] [\russiannumerals]
841\defineconversion [russianNumerals] [\russianNumerals]
842
843
844
845\defineconversion [mathgreek]
846 [\m{α},\m{β},\m{γ},\m{δ},\m{ε},\m{ζ},
847 \m{η},\m{θ},\m{ι},\m{κ},\m{λ},\m{μ},
848 \m{ν},\m{ξ},\m{ο},\m{π},\m{ρ},\m{σ},
849 \m{τ},\m{υ},\m{φ},\m{χ},\m{ψ},\m{ω}]
850
851
852
853\permanent\def\unihex#1{\clf_unihex\numexpr#1\relax}
854
855
856
857\ifdefined\symbol \else \def\symbol[#1]{#1} \fi
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916\defineconversion
917 [set 0]
918 [\symbol{bullet},
919 \symbol{dash},
920 \symbol{star},
921 \symbol{triangle},
922 \symbol{circle},
923 \symbol{medcircle},
924 \symbol{bigcircle},
925 \symbol{square},
926 \symbol{checkmark}]
927
928\defineconversion
929 [set 1]
930 [\textormathchars{⋆},
931 \textormathchars{⋆⋆},
932 \textormathchars{⋆⋆⋆},
933 \textormathchars{‡},
934 \textormathchars{‡‡},
935 \textormathchars{‡‡‡},
936 \textormathchars{∗},
937 \textormathchars{∗∗},
938 \textormathchars{∗∗∗}]
939
940\defineconversion
941 [set 2]
942 [\textormathchars{∗},
943 \textormathchars{†},
944 \textormathchars{‡},
945 \textormathchars{∗∗},
946 \textormathchars{††},
947 \textormathchars{‡‡},
948 \textormathchars{∗∗∗},
949 \textormathchars{†††},
950 \textormathchars{‡‡‡},
951 \textormathchars{∗∗∗∗},
952 \textormathchars{††††},
953 \textormathchars{‡‡‡‡}]
954
955\defineconversion
956 [set 3]
957 [\textormathchars{⋆},
958 \textormathchars{⋆⋆},
959 \textormathchars{⋆⋆⋆},
960 \textormathchars{‡},
961 \textormathchars{‡‡},
962 \textormathchars{‡‡‡},
963 \textormathchars{¶},
964 \textormathchars{¶¶},
965 \textormathchars{¶¶¶},
966 \textormathchars{§},
967 \textormathchars{§§},
968 \textormathchars{§§§},
969 \textormathchars{∗},
970 \textormathchars{∗∗},
971 \textormathchars{∗∗∗}]
972
973
974
975
976
977
978
979\permanent\protected\def\continuednumber#1
980 {\labeltext{\ifcase#1\or\else\v!continued\fi}}
981
982\defineconversion
983 [\v!continued]
984 [\continuednumber]
985
986
987
988\mutable\lettonothing\spaceddigitsmethod
989\mutable\lettonothing\spaceddigitssymbol
990\mutable\lettonothing\spaceddigitsseparator
991
992\permanent\protected\def\spaceddigits#1
993 {\clf_spaceddigits
994 method {\spaceddigitsmethod}
995 symbol {\spaceddigitssymbol}
996 separator {\spaceddigitsseparator}
997 data {#1}
998 \relax}
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015\permanent\def\zeronumberconversion#1{\the\numexpr#1\plusone\relax}
1016
1017\defineconversion [zero] [\zeronumberconversion]
1018
1019\protect \endinput
1020 |