summaryrefslogtreecommitdiff
path: root/tex/context/base/mkxl/tabl-com.mkxl
blob: 8621d2f62236470b33e71abee931f6b3e3d66355 (plain)
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
%D \module
%D   [       file=tabl-com,
%D        version=2009.08.22,
%D          title=\CONTEXT\ Table Macros,
%D       subtitle=Common Code,
%D         author=Hans Hagen,
%D           date=\currentdate,
%D      copyright={PRAGMA ADE \& \CONTEXT\ Development Team}]
%C
%C This module is part of the \CONTEXT\ macro||package and is
%C therefore copyrighted by \PRAGMA. See mreadme.pdf for
%C details.

\writestatus{loading}{ConTeXt Table Macros / Common Code}

\unprotect

\pushoverloadmode

\registerctxluafile{node-ali}{autosuffix}

\definesystemattribute[aligncharacter][public]

\permanent\protected\def\setalignmentcharacter#1%
  {\enablealignmentcharacter
   \global\settrue\c_tabl_use_size
   \global\settrue\c_tabl_sparse_skips
   \enforced\permanent\protected\gdef\setalignmentcharacter##1%
     {\attribute\aligncharacterattribute`##1\relax}%
   \attribute\aligncharacterattribute`#1\relax}

\permanent\protected\def\resetalignmentcharacter
  {\attribute\aligncharacterattribute\attributeunsetvalue}

\permanent\def\alignmentcharactertrigger
  {\s!callback\space\s!attr\aligncharacterattribute\plusone}

\noaligned\permanent\protected\def\aligncontentleft  {\ignorespaces\aligncontent\unskip\hss}
\noaligned\permanent\protected\def\aligncontentmiddle{\hss\ignorespaces\aligncontent\unskip\hss}
\noaligned\permanent\protected\def\aligncontentright {\hss\ignorespaces\aligncontent\unskip}

% \enablealignmentcharacter % defined at the lua end

% maybe frozen instead

\permanent\protected\lettonothing\AR
\permanent\protected\lettonothing\BA
\permanent\protected\lettonothing\BC
\permanent\protected\lettonothing\BH
\permanent\protected\lettonothing\BL
\permanent\protected\lettonothing\BR
\permanent\protected\lettonothing\BT
\permanent\protected\lettonothing\CC
\permanent\protected\lettonothing\CL
\permanent\protected\lettonothing\CM
\permanent\protected\lettonothing\CR
\permanent\protected\lettonothing\DB
\permanent\protected\lettonothing\DC
\permanent\protected\lettonothing\DL
\permanent\protected\lettonothing\DR
\permanent\protected\lettonothing\DV
\permanent\protected\lettonothing\EH
\permanent\protected\lettonothing\EQ
\permanent\protected\lettonothing\ER
\permanent\protected\lettonothing\FB
\permanent\protected\lettonothing\FL
\permanent\protected\lettonothing\FR
\permanent\protected\lettonothing\HC
\permanent\protected\lettonothing\HL
\permanent\protected\lettonothing\HQ
\permanent\protected\lettonothing\HR
\permanent\protected\lettonothing\HF
\permanent\protected\lettonothing\HLHL
\permanent\protected\lettonothing\LB
\permanent\protected\lettonothing\LC
\permanent\protected\lettonothing\LT
\permanent\protected\lettonothing\LL
\permanent\protected\lettonothing\LR
\permanent\protected\lettonothing\MC
\permanent\protected\lettonothing\ML
\permanent\protected\lettonothing\MR
\permanent\protected\lettonothing\NA
\permanent\protected\lettonothing\NB
\permanent\protected\lettonothing\NC
\permanent\protected\lettonothing\ND
\permanent\protected\lettonothing\NF
\permanent\protected\lettonothing\NG
\permanent\protected\lettonothing\NI
\permanent\protected\lettonothing\NL
\permanent\protected\lettonothing\NN
\permanent\protected\lettonothing\NP
\permanent\protected\lettonothing\NR
\permanent\protected\lettonothing\PB
\permanent\protected\lettonothing\RC
\permanent\protected\lettonothing\RQ
\permanent\protected\lettonothing\SL
\permanent\protected\lettonothing\SM
\permanent\protected\lettonothing\SR
\permanent\protected\lettonothing\TB
\permanent\protected\lettonothing\TC
\permanent\protected\lettonothing\TL
\permanent\protected\lettonothing\TM
\permanent\protected\lettonothing\TR
\permanent\protected\lettonothing\TT
\permanent\protected\lettonothing\VL
\permanent\protected\lettonothing\VLVL
\permanent\protected\lettonothing\VC
\permanent\protected\lettonothing\VD
\permanent\protected\lettonothing\VN
\permanent\protected\lettonothing\VS
\permanent\protected\lettonothing\VT
\permanent\protected\lettonothing\XC

\permanent\protected\lettonothing\FC
\permanent\protected\lettonothing\RB
\permanent\protected\lettonothing\RT

\permanent\protected\lettonothing\NS % span

\popoverloadmode

\installmacrostack\BC
\installmacrostack\EC
\installmacrostack\EQ
\installmacrostack\NC
\installmacrostack\NN
\installmacrostack\NR

\protect \endinput