Debian Codegraph @

texmf-dist/tex/generic/tex4ht/cgloss4e.4ht

raw
1 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2 % cgloss4e.4ht 2009-05-21-09:32 %
3 % Copyright (C) 2008--2009 Eitan M. Gurari %
4 % %
5 % This work may be distributed and/or modified under the %
6 % conditions of the LaTeX Project Public License, either %
7 % version 1.3c of this license or (at your option) any %
8 % later version. The latest version of this license is %
9 % in %
10 % http://www.latex-project.org/lppl.txt %
11 % and version 1.3c or later is part of all distributions %
12 % of LaTeX version 2005/12/01 or later. %
13 % %
14 % This work has the LPPL maintenance status "maintained".%
15 % %
16 % This Current Maintainer of this work %
17 % is Eitan M. Gurari. %
18 % %
19 % If you modify this program your changing its signature %
20 % with a directive of the following form will be %
21 % appreciated. %
22 % \message{signature} %
23 % %
24 % [email protected] %
25 % http://www.cse.ohio-state.edu/~gurari %
26 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
27 \immediate\write-1{version 2009-05-21-09:32}
28
29 \gdef\twosent#1\\ #2\\{%
30 \getwords(\lineone,\eachwordone)#1 \\%
31 \getwords(\linetwo,\eachwordtwo)#2 \\%
32 \loop\lastword{\eachwordone}{\lineone}{\wordone}%
33 \lastword{\eachwordtwo}{\linetwo}{\wordtwo}%
34 \global\setbox\gline=\hbox{\unhbox\gline
35 \hskip\glossglue
36 \vtop{\a:tsent\box\wordone
37 \c:tsent
38 \box\wordtwo
39 \b:tsent
40 }%
41 }%
42 \testdone
43 \ifnotdone
44 \repeat
45 \egroup
46 \gl@stop}
47 \gdef\threesent#1\\ #2\\ #3\\{%
48 \getwords(\lineone,\eachwordone)#1 \\%
49 \getwords(\linetwo,\eachwordtwo)#2 \\%
50 \getwords(\linethree,\eachwordthree)#3 \\%
51 \loop\lastword{\eachwordone}{\lineone}{\wordone}%
52 \lastword{\eachwordtwo}{\linetwo}{\wordtwo}%
53 \lastword{\eachwordthree}{\linethree}{\wordthree}%
54 \global\setbox\gline=\hbox{\unhbox\gline
55 \hskip\glossglue
56 \vtop{\a:tsent\box\wordone
57 \c:tsent
58 \box\wordtwo
59 \c:tsent
60 \box\wordthree
61 \b:tsent
62 }%
63 }%
64 \testdone
65 \ifnotdone
66 \repeat
67 \egroup
68 \gl@stop}
69 \NewConfigure{tsent}{3}
70 \pend:def\gll{\a:gll}
71 \pend:def\glll{\a:gll}
72 \NewConfigure{gll}{3}
73 \def\:tempc{{\hskip -\glossglue}\unhbox\gline\end{flushleft}}
74 \ifx \gl@stop\:tempc
75 \def\:tempc{\b:gll\unhbox\gline\end{flushleft}\c:gll}
76 \HLet\gl@stop\:tempc
77 \fi
78
79 \Hinput{cgloss4e}
80 \endinput
81