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
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Tabelle aller Zeichenverbindungen
% Stand 27.01.1992
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentstyle[arabtex]{article}
\pagestyle{myheadings}
\thispagestyle{empty}
\parskip=5mm
\parindent=0mm
\setarab
\begin{document}
{\huge \bf Arab\TeX\ Ligatures \hfil \today }
\markright{Arab\TeX\ Ligatures \hfil \today }
\novocalize
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newdimen \fw \newcount \nf
\def \tableformat #1*{% Tabellenformat berechnen
% columns
\fw \hsize \advance \fw -3pt \relax
\nf 1
\ctfd #1,\end
\divide \fw \nf }
\def \ctfd #1,#2\end{% Felder zaehlen
\advance \nf 1
\ifx #2\relax \relax \let \next \relax
\else \def \next {\ctfd #2\end }%
\fi \next }
\def \enter #1\end {% Element eintragen
\hbox to \fw {\hss <#1>\hss }%
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\def \tableline #1*#2*#3*#4*{% eine Zeile eintragen
% beg row columns end
%\hrule
%\leavevmode
%\hrule
\hbox {%
\ifx #2A\enter -a#4\end \else
\enter -#2#4\end
\fi
\vrule
\addtoline #1*#2*#3,*#4*%
}
%\hrule
\typeout{#2 * #3}% Statusmeldung
}
\def \addtoline #1*#2*#3,#4*#5*{% Tabellenelemente eintragen
% beg row column columns end
\ifx #2A\enter #1#3#2#5\end
\else \enter #1#3a#2#5\end
\fi
\ifx #4\relax \relax \let \next \relax
\else \def \next {\addtoline #1*#2*#4*#5*}%
\fi \next }
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newif \ifcon
\def \testcon #1#2*{% pruefe ob verbindbar
\contrue
\ifx #1A\confalse \else
\ifx #1E\confalse \else
\ifx #1d\confalse \else
\ifx #1r\confalse \else
\ifx #1z\confalse \else
\ifx #1w\confalse \else
\ifx #1_\ifx #2d\confalse \fi \else
\ifx #1^\ifx #2z\confalse \fi \else
\ifx #2\relax \relax \else
\testcon #2*%
\fi\fi\fi\fi\fi\fi\fi\fi\fi }
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\def \addlines #1*#2*#3*#4*{% Zeilenblock aufbauen
% beg rows columns end
\addrow #1*#2,*#3*#4*}
\def \addrow #1*#2,#3*#4*#5*{% Zeilen eintragen
% beg row rows columns end
\ifx #5\relax \relax \contrue
\tableline #1*#2*#4*#5*% eine Zeile
\else \testcon #2*%
\ifcon
\tableline #1*#2*#4*#5*% eine Zeile
\fi
\fi
\ifx #3\relax \relax \let \next \relax
\else \def \next {\addrow #1*#3*#4*#5*}% weiter
% \ifcon \\
% \fi
\fi \next }
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\def \ligtab #1*#2*#3*#4*{% Tabelle ausgeben
% beg rows columns end
{\offinterlineskip \tableformat #3*% Format aufbauen
\leavevmode
\tableline #1*-*#3**% Kopfzeile eintragen
\hrule
%\tracingmacros = 1 %
\addlines #1*#2*#3*#4*% Tabellenrumpf eintragen
\tracingmacros = 0 %
}}
\def \ligtable #1#2{% alle Tabellen
% rows columns
\expandafter \ligtabi #2*#1*}
\def \ligtabi #1*#2*{% erstes Argument explizit
% columns rows
\expandafter \ligtabii #2*#1*}
\def \ligtabii #1*#2*{% beide Argumente explizit
% rows columns
%Anfangsform -- Endform
initial form to final form
\ligtab *#1*#2**%
%Mittelform -- Endform
medial form to final form
\ligtab -*#1*#2**%
\newpage
%Anfangsform -- Mittelform
initial form to medial form
\ligtab *#1*#2*-*%
\newpage
%Mittelform -- Mittelform
medial form to medial form
\ligtab -*#1*#2*-*%
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\def \crow {A,p,_t,^c,_h,_d,^z,^s,.d,.z,.g,q,k,l,m,n,h,w,y,E,%
lA,p^c,m^c,h^c,hm,py,pm,hE}
\def \ccol {p,_t,^c,^s,.d,.z,.g,q,k,l,m,h}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\huge
\Huge
\Large
\ligtable \crow \ccol
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\tracingmacros=0
\end{document}
|