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
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
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
|
%D \module
%D [ file=x-set-11,
%D version=2004.10.31,
%D remark=setupx.tex: 1998.07.20 and later,
%D title=\CONTEXT\ Setup Definitions,
%D subtitle=Macro Definitions,
%D author=Hans Hagen,
%D date=\currentdate,
%D copyright={PRAGMA / Hans Hagen \& Ton Otten}]
%C
%C This module is part of the \CONTEXT\ macro||package and is
%C therefore copyrighted by \PRAGMA. See mreadme.pdf for
%C details.
% module x-set-02 loads the mapping, after that we can say:
%
% texmfstart texexec --int=nl --pdf --global --result=setup-nl x-set-12
%
% \getinterfacecomponent{constant|variable|string}{tag}
\usemodule[set-02]
\unprotect
% general
\def\setupnumfont {}
\def\setuptxtfont {}
\def\setupintfont#1{\uppercase{#1}}
\def\setupvarfont {\sl}
\def\setupoptfont {\sl}
\def\setupalwcolor {}
\def\setupoptcolor {darkgray}
\defineXMLenvironmentsave [cd:content] [list=,state=]
{\simpleSETUPargument{content}\blank[\v!halfline]\ignorespaces}
{\ignorespaces}
\startmessages dutch library: setup
title: setup
formula: formule
number: getal
list: lijst
dimension: maat
mark: markering
reference: verwijzing
command: commando
file: file
name: naam
identifier: naam
text: tekst
section: sectie
singular: naam enkelvoud
plural: naam meervoud
matrix: n*m
see: zie
inherits: erft van
1: de karakters < en > zijn globaal actief!
2: -- wordt verwerkt
3: -- is niet gedefinieerd
4: -- wordt nogmaals verwerkt
optional: optioneel
displaymath: formule
index: ingang
math: formule
nothing: leeg
file: file
position: positie
reference: verwijzing
csname: naam
destination: bestemming
triplet: triplet
word: woord
content: tekst
\stopmessages
\startmessages english library: setup
title: setup
formula: formula
number: number
list: list
dimension: dimension
mark: mark
reference: reference
command: command
file: file
name: name
identifier: identifier
text: text
section: section
singular: singular name
plural: plural name
matrix: n*m
see: see
inherits: inherits from
1: the characters < and > are globally active!
2: -- is processed
3: -- is undefined
4: -- is processed again
optional: optioneel
displaymath: formula
index: entry
math: formula
nothing: empty
file: file
position: position
reference: reference
csname: name
destination: destination
triplet: triplet
word: word
content: text
\stopmessages
\startmessages german library: setup
title: Setup
formula: Formel
number: Nummer
list: Liste
dimension: Dimension
mark: Beschriftung
reference: Referenz
command: Befehl
file: Datei
name: Name
identifier: Name
text: Text
section: Abschnitt
singular: singular
plural: plural
matrix: n*m
see: siehe
inherits: inherits from
1: Die Zeichen < und > gelten global!
2: -- wird verarbeitet
3: -- ist undefiniert
4: -- ist mehrmals verarbeitet
optional: optioneel
displaymath: formula
index: entry
math: formula
nothing: empty
file: file
position: position
reference: reference
csname: name
destination: destination
triplet: triplet
word: word
content: text
\stopmessages
\startmessages czech library: setup
title: setup
formula: rovnice
number: cislo
list: seznam
dimension: dimenze
mark: znacka
reference: reference
command: prikaz
file: soubor
name: jmeno
identifier: jmeno
text: text
section: sekce
singular: jmeno v singularu
plural: jmeno v pluralu
matrix: n*m
see: viz
inherits: inherits from
1: znaky < a > jsou globalne aktivni!
2: -- je zpracovano
3: -- je nedefinovano
4: -- je zpracovano znovu
optional: optioneel
displaymath: formula
index: entry
math: formula
nothing: empty
file: file
position: position
reference: reference
csname: name
destination: destination
triplet: triplet
word: word
content: text
\stopmessages
\startmessages italian library: setup
title: setup
formula: formula
number: number
list: list
dimension: dimension
mark: mark
reference: reference
command: command
file: file
name: name
identifier: name
text: text
section: section
singular: singular name
plural: plural name
matrix: n*m
see: see
inherits: inherits from
1: the characters < and > are globally active!
2: -- is processed
3: -- is undefined
4: -- is processed again
optional: optioneel
displaymath: formula
index: entry
math: formula
nothing: empty
file: file
position: position
reference: reference
csname: name
destination: destination
triplet: triplet
word: word
content: text
\stopmessages
\startmessages romanian library: setup
title: setari
formula: formula
number: numar
list: lista
dimension: dimensiune
mark: marcaj
reference: referinta
command: comanda
file: fisier
name: nume
identifier: nume
text: text
section: sectiune
singular: nume singular
plural: nume pluram
matrix: n*m
see: vezi
inherits: inherits from
1: caracterele < si > sunt active global!
2: este procesat --
3: -- este nedefinit
4: -- este procesat din nou
optional: optioneel
displaymath: formula
index: entry
math: formula
nothing: empty
file: file
position: position
reference: reference
csname: name
destination: destination
triplet: triplet
word: word
content: text
\stopmessages
\startmessages french library: setup
title: setup
formula: formule
number: numero
list: liste
dimension: dimension
mark: marquage
reference: reference
command: commande
file: fichier
name: nom
identifier: identificateur
text: texte
section: section
singular: nom singulier
plural: nom pluriel
matrix: n*m
see: vois
inherits: herite de
1: les caracteres < et > sont globalement actifs !
2: -- est traite
3: -- n'est pas defini
4: -- est traite de nouveau
optional: optionel
displaymath: formule
index: entree
math: formule
nothing: vide
file: fichier
position: position
reference: reference
csname: nom
destination: destination
triplet: triplet
word: mot
content: texte
\stopmessages
\def\c!setup!internal!#1%
{{\dogetmessage{setup}{#1}%
\expanded{\setupintfont{\currentmessagetext}}}}
\def\c!setup!text!#1%
{{\dogetmessage{setup}{#1}%
\setupvarfont{\currentmessagetext}}}
\def\c!setup!command!#1%
{{\setupvarfont{\texescape...#1}}}
\def\??stp{@@stp}
\defineregister
[texmacro]
[texmacros]
\definesorting
[texcommand]
[texcommands]
\setupsorting
[texcommand]
[\c!command=\@@stpcommand,
\c!criterium=\@@stpcriterium]
\definesorting
[eachtexcommand]
[alltexcommands]
\setupsorting
[eachtexcommand]
[\c!command=\@@stpcommand,
\c!criterium=\v!all]
\pushmacro\setuptext
\defineframedtext
[setuptext]
[\c!width=\hsize,
\c!height=\v!fit,
\c!align=\v!right,
\c!offset=0.75em]
\popmacro\setuptext
\newif\ifshortsetup
\def\setup {\shortsetupfalse\dosetup}
\def\shortsetup{\shortsetuptrue\dosetup}
\def\setupsetup{\dodoubleargument\getparameters[\??stp]}
\setupsetup
[\c!before=,
\c!after=,
\c!command=\setup,
\c!criterium=\v!used]
% verwijzing: 0 geen verwijzingen plaatsen / wel genereren
% 1 alleen bij zie plaatsen / wel genereren
% 2 alle verwijzingen plaatsen / niet genereren
% 3 bij zie commando klikken / wel genereren
\setupsetup
[\c!reference=0]
\def\placesetup
{\bgroup
\getvalue{\e!place\e!listof texcommands}
\egroup}
\def\placeeverysetup % for fun purposes only
{\bgroup
\setupsetup[\c!reference=2]%
\setupreferencing[\c!state=\v!stop]%
\getvalue{\e!place\e!listof alltexcommands}%
\egroup}
\let\plaatssetup \placesetup
\let\plaatselkesetup\placeeverysetup
\def\dosetup#1{{\enableXML\flushXMLelement{stp:#1}}}
\defineXMLenvironment [cd:command] [name=,type=,generated=,interactive=]
{}
{\showSETUPrecord}
\def\showSETUPrecord
{\getvalue{startsetuptext}
\tttf
\nohyphens
\veryraggedright
\startXMLmapping [one]
\doglobal\newcounter\currentSETUPargument
\global\let\maximumSETUPargument\currentSETUPargument
\bgroup
\doifXMLop{generated}{yes}{\ttsl}%
\doifelseXMLop{type}{environment}
{\tex{\e!start}}{\tex{}}\ignorespaces
\XMLflush{cd:sequence}\ignorespaces
\egroup
\doifelseXMLempty{cd:arguments}
{}
{\bgroup
\setbox0=\hbox{\XMLflush{cd:arguments}}%
\global\let\maximumSETUPargument\currentSETUPargument
\doglobal\newcounter\currentSETUPargument
\ignorespaces\XMLflush{cd:arguments}%
\doif{\XMLpar{cd:command}{type}{}}{environment}
{\hskip.5em\unknown\hskip.5em
\tex{\e!stop}\ignorespaces\XMLflush{cd:sequence}}%
\endgraf
\egroup
%\bgroup
% \tx
% \doif{\XMLpar{cd:command}{interactive}{}}{yes} {\quad INTERACTIVE}%
% \doif{\XMLpar{cd:command}{interactive}{}}{exclusive}{\quad INTERACTIVE ONLY}%
%\egroup
\startXMLmapping [two]
\bgroup
\doglobal\newcounter\currentSETUPargument
\blank[\v!line]
\switchtobodyfont[small] % kan sneller
\ignorespaces\XMLflush{cd:arguments}\endgraf
\egroup
\stopXMLmapping}
\stopXMLmapping
\getvalue{stopsetuptext}}
\defineXMLenvironmentsave [cd:sequence] \ignorespaces \ignorespaces
\defineXMLenvironmentsave [cd:arguments] \ignorespaces \ignorespaces
%D This is the first pass; here we generate the top line.
\newcounter\currentSETUPargument
\def\currentSETUPwidth{0pt}
% environmentsave ?
\startXMLmapping [one]
\defineXMLenvironmentsave [cd:string] [value=]
{\getinterfacecomponent{string}{\XMLop{value}}\ignorespaces}
{\ignorespaces}
\defineXMLenvironmentsave [cd:variable] [value=]
{{\expanded{\setupintfont{\getinterfacecomponent{variable}{\XMLop{value}}}}}\ignorespaces}
{\ignorespaces}
% moet een standaard type worden
\defineXMLenvironmentsave [cd:assignments] [list=,state=]
{\showSETUPassignment\ignorespaces} {\ignorespaces}
\defineXMLenvironmentsave [cd:keywords] [list=,state=]
{\showSETUPkeyword\ignorespaces} {\ignorespaces}
\defineXMLenvironmentsave [cd:content] [list=,state=]
{\showSETUPcontent\ignorespaces} {\ignorespaces}
\defineXMLenvironmentsave [cd:displaymath] [list=,state=]
{\showSETUPdisplaymath\ignorespaces} {\ignorespaces}
\defineXMLenvironmentsave [cd:index] [list=,state=]
{\showSETUPindex\ignorespaces} {\ignorespaces}
\defineXMLenvironmentsave [cd:math] [list=,state=]
{\showSETUPmath\ignorespaces} {\ignorespaces}
\defineXMLenvironmentsave [cd:nothing] [list=,state=]
{\showSETUPnothing\ignorespaces} {\ignorespaces}
\defineXMLenvironmentsave [cd:file] [list=,state=]
{\showSETUPfile\ignorespaces} {\ignorespaces}
\defineXMLenvironmentsave [cd:position] [list=,state=]
{\showSETUPposition\ignorespaces} {\ignorespaces}
\defineXMLenvironmentsave [cd:reference] [list=,state=]
{\showSETUPreference\ignorespaces} {\ignorespaces}
\defineXMLenvironmentsave [cd:csname] [list=,state=]
{\showSETUPcsname\ignorespaces} {\ignorespaces}
\defineXMLenvironmentsave [cd:destination] [list=,state=]
{\showSETUPdestination\ignorespaces} {\ignorespaces}
\defineXMLenvironmentsave [cd:triplet] [list=,state=]
{\showSETUPtriplet\ignorespaces} {\ignorespaces}
\defineXMLenvironmentsave [cd:word] [list=,state=]
{\showSETUPword\ignorespaces} {\ignorespaces}
\stopXMLmapping
%D This is the second pass; here we generate the table.
\startXMLmapping [two]
\def\startfirstSETUPcolumn#1%
{\bgroup
\advance\leftskip 2em
\noindent\llap{\hbox to 2em{#1\hss}}}
\def\stopfirstSETUPcolumn
{\endgraf
\egroup}
\def\startsecondSETUPcolumn#1#2%
{\bgroup
\advance\hangindent \currentSETUPwidth
\advance\hangindent 2.5em
\noindent \hbox to \hangindent{#1\hss\hbox to 2.5em{\hss#2\hss}}}
\def\stopsecondSETUPcolumn
{\endgraf
\egroup}
\def\secondSETUPcolumn#1#2%
{\startsecondSETUPcolumn{#1}{#2}\stopsecondSETUPcolumn}
\def\previousSETUPargument{\currentSETUPargument}
\defineXMLenvironmentsave [cd:assignments]
{}
{\xdef\currentSETUPwidth{0pt}%
\bgroup
\defineXMLenvironment [cd:parameter] [name=]
{\setbox0=\hbox{\potentialXMLentity{\getinterfacecomponent{constant}{\XMLop{name}}}}%
\ifdim\wd0>\currentSETUPwidth\xdef\currentSETUPwidth{\the\wd0}\fi}%
{}
\setbox0=\vbox{\XMLflush{cd:assignments}}%
\egroup
\startfirstSETUPcolumn{\showSETUPnumber}%
\doifelseXMLempty{cd:assignments}
{\secondSETUPcolumn{\c!setup!text!{see} \previousSETUPargument}{}}
{\ignorespaces
\XMLflush{cd:assignments}%
\let\previousSETUPargument\currentSETUPargument}%
\stopfirstSETUPcolumn
\blank[\v!halfline]
\ignorespaces}
\defineXMLenvironmentsave [cd:keywords]
{}
{\startfirstSETUPcolumn{\showSETUPnumber}%
\doifelseXMLempty{cd:keywords}
{\secondSETUPcolumn{see \previousSETUPargument}{}}
{\ignorespaces
\XMLflush{cd:keywords}%
\let\previousSETUPargument\currentSETUPargument}%
\stopfirstSETUPcolumn
\blank[\v!halfline]
\ignorespaces}
\defineXMLenvironment [cd:parameter] [name=]
{\startsecondSETUPcolumn{\potentialXMLentity{\getinterfacecomponent{constant}{\XMLop{name}}}}{=}%
\ignorespaces}
{\stopsecondSETUPcolumn
\ignorespaces}
\defineXMLenvironmentsave [cd:constant] [type=,default=]
{\doifXMLop{default}{yes}{\underbar}%
{\potentialXMLentity{\getinterfacecomponent{variable}{\XMLop{type}}}}\quad\ignorespaces}
{\ignorespaces}
\defineXMLenvironmentsave [cd:variable] [type=]
{\potentialXMLentity{\getinterfacecomponent{variable}{\XMLop{type}}}\quad\ignorespaces}
{\ignorespaces}
\defineXMLenvironmentsave [cd:inherit] [name=]
{\secondSETUPcolumn{\c!setup!text!{inherits} \tex{}\getinterfacecomponent{string}{\XMLop{name}}}{}\ignorespaces}
{\ignorespaces}
\def\simpleSETUPargument#1%
{\startfirstSETUPcolumn{\showSETUPnumber}%
\c!setup!internal!{#1}%
\stopfirstSETUPcolumn}
\defineXMLenvironmentsave [cd:content] [list=,state=]
{\simpleSETUPargument{content}\blank[\v!halfline]\ignorespaces}
{\ignorespaces}
\defineXMLenvironmentsave [cd:displaymath] [list=,state=]
{\simpleSETUPargument{display math}\blank[\v!halfline]\ignorespaces}
{\ignorespaces}
\defineXMLenvironmentsave [cd:index] [list=,state=]
{\simpleSETUPargument{index}\blank[\v!halfline]\ignorespaces}
{\ignorespaces}
\defineXMLenvironmentsave [cd:math] [list=,state=]
{\simpleSETUPargument{math}\blank[\v!halfline]\ignorespaces}
{\ignorespaces}
\defineXMLenvironmentsave [cd:nothing] [list=,state=]
{\simpleSETUPargument{nothing}\blank[\v!halfline]\ignorespaces}
{\ignorespaces}
\defineXMLenvironmentsave [cd:file] [list=,state=]
{\simpleSETUPargument{file name}\blank[\v!halfline]\ignorespaces}
{\ignorespaces}
\defineXMLenvironmentsave [cd:position] [list=,state=]
{\simpleSETUPargument{position}\blank[\v!halfline]\ignorespaces}
{\ignorespaces}
\defineXMLenvironmentsave [cd:reference] [list=,state=]
{\simpleSETUPargument{reference}\blank[\v!halfline]\ignorespaces}
{\ignorespaces}
\defineXMLenvironmentsave [cd:csname] [list=,state=]
{\simpleSETUPargument{csname}\blank[\v!halfline]\ignorespaces}
{\ignorespaces}
\defineXMLenvironmentsave [cd:destination] [list=,state=]
{\simpleSETUPargument{destination}\blank[\v!halfline]\ignorespaces}
{\ignorespaces}
\defineXMLenvironmentsave [cd:triplet] [list=,state=]
{\simpleSETUPargument{triplet}\blank[\v!halfline]\ignorespaces}
{\ignorespaces}
\defineXMLenvironmentsave [cd:word] [list=,state=]
{\simpleSETUPargument{word}\blank[\v!halfline]\ignorespaces}
{\ignorespaces}
\stopXMLmapping
\defineXMLentity [cd:command] {\c!setup!internal!{command}}
\defineXMLentity [cd:dimension] {\c!setup!internal!{dimension}}
\defineXMLentity [cd:file] {\c!setup!internal!{file}}
\defineXMLentity [cd:name] {\c!setup!internal!{identifier}}
\defineXMLentity [cd:character] {\c!setup!internal!{character}}
\defineXMLentity [cd:mark] {\c!setup!internal!{mark}}
\defineXMLentity [cd:number] {\c!setup!internal!{number}}
\defineXMLentity [cd:reference] {\c!setup!internal!{reference}}
\defineXMLentity [cd:plural] {\c!setup!internal!{plural}}
\defineXMLentity [cd:singular] {\c!setup!internal!{singular}}
\defineXMLentity [cd:text] {\c!setup!internal!{text}}
\defineXMLentity [cd:formula] {\c!setup!internal!{formula}}
\defineXMLentity [cd:file] {\c!setup!internal!{file}}
\defineXMLentity [cd:matrix] {\c!setup!internal!{matrix}}
\defineXMLentity [cd:list] {\c!setup!internal!{list}}
\defineXMLentity [cd:section] {\c!setup!internal!{section}}
\defineXMLentity [cd:noargument] {\c!setup!command!{}}
\defineXMLentity [cd:oneargument] {\c!setup!command!{\#1}}
\defineXMLentity [cd:twoarguments] {\c!setup!command!{\#1\#2}}
\defineXMLentity [cd:threearguments] {\c!setup!command!{\#1\#2\#3}}
%D Todo:
\defineXMLprocess [cd:choice]
%D Auxiliary.
\unexpanded\def\showSETUP#1#2%
{\bgroup
\doglobal\increment\currentSETUPargument
\setbox0=\hbox
{\doifelseXMLop{list}{yes}{#2}{#1}}%
\setbox2=\hbox to \wd0
{\hss
\raise1ex\hbox
{\tx\ifcase\maximumSETUPargument\relax
\or*\else\currentSETUPargument
\fi}%
\hss}%
\setbox4=\hbox to \wd0
{\hss
\lower2ex\hbox
\bgroup
\txx\doifXMLop{optional}{yes}{\c!setup!internal!{optional}}%
\egroup
\hss}%
\ht2\ht\strutbox
\dp4\dp\strutbox
\hskip.5em\hsmash{\box0}\hsmash{\box4}\box2%
\egroup}
\def\showSETUPnumber
{\doglobal\increment\currentSETUPargument
\hbox to 2em
{\ifcase\maximumSETUPargument\relax
\or*\else\currentSETUPargument
\fi
\hss}}
\def\showSETUPassignment {\showSETUP
{[.\lower.5ex\hbox{=}.]}
{[..,.\lower.5ex\hbox{=}.,..]}}
\def\showSETUPkeyword {\showSETUP
{[...]}
{[...,...]}}
\def\showSETUPargument {\showSETUP
{\leftargument..\rightargument}
{\leftargument..,...,..\rightargument}}
\def\showSETUPdisplaymath {\showSETUP
{\$\$...\$\$}
{\$\$...\$\$}}
\def\showSETUPindex {\showSETUP
{\leftargument...\rightargument}
{\leftargument..+...+..\rightargument}}
\def\showSETUPmath {\showSETUP
{\$...\$}
{\$...\$}}
\def\showSETUPnothing {\showSETUP
{...}
{}}
\def\showSETUPfile {\showSETUP
{~...~}
{}}
\def\showSETUPposition {\showSETUP
{(...)}
{(...,...)}}
\def\showSETUPreference {\showSETUP
{[...]}
{[...,...]}}
\def\showSETUPcsname {\showSETUP
{{\c!setup!command!{}}}
{}}
\def\showSETUPdestination {\showSETUP
{[\leftargument..[ref]\rightargument]}
{[..,\leftargument..[ref,..]\rightargument,..]}}
\def\showSETUPtriplet {\showSETUP
{[x:y:z=]}
{[x:y:z=,..]}}
\def\showSETUPword {\showSETUP
{\leftargument...\rightargument}
{\leftargument.. ... ..\rightargument}}
\def\showSETUPcontent {\showSETUP
{\leftargument...\rightargument}
{\leftargument.. ... ..\rightargument}}
%\def\c!par!{\c!setup!internal!{endofpar}}
%\def\c!repeat!{\c!opt!{{\setupvarfont n}*}}
%\showSETUP\def\c!par!{\texescape par}
%\showSETUP\def\c!sep!{\texescape\texescape}
%\def\c!par!{\addtypespec{delimiter}{par}} % \par
%\def\c!sep!{\addtypespec{separator}{backslash}} % \\
%\def\c!repeat!{}
%\def\c!tex!#1{\addtypespec{command}{#1}\doanother{tex}}
\startXMLmapping[zero]
\defineXMLenvironmentsave [cd:command] [name=,type=,generated=,interactive=]
{}
{\doifelseXMLop{type}{environment}
{\edef\currentSETUPname{start\getinterfacecomponent{string}{\XMLop{name}}}}
{\edef\currentSETUPname{\getinterfacecomponent{string}{\XMLop{name}}}}%
\doifXMLop{generated}{yes}
{\edef\currentSETUPname{\currentSETUPname*}}%
\doglobal\saveXMLdatainelement{stp:\currentSETUPname}{cd:command}{cd:command}%
\expanded{\eachtexcommand[stp:x:\currentSETUPname]{\currentSETUPname}}%
\expanded{\texcommand [stp:y:\currentSETUPname]{\currentSETUPname}}}
\stopXMLmapping
\def\loadsetups
{\startXMLmapping[zero]
\processXMLfilegrouped{cont-en.xml}
\stopXMLmapping}
\protect \endinput
|