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