Debian Codegraph @

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

raw
1 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2 % covington.4ht 2009-05-21-09:32 %
3 % Copyright (C) 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 \pend:defI\sentence{\a:sentence}
30 \append:defI\sentence{\b:sentence}
31 \NewConfigure{sentence}{2}
32 \bgroup
33 \catcode`\^^M=12 \endlinechar=-1 % 12 = other
34 \gdef\twosent#1^^M#2^^M%
35 {\getwords(\lineone,\eachwordone)#1 ^^M%
36 \getwords(\linetwo,\eachwordtwo)#2 ^^M%
37 \loop\lastword{\eachwordone}{\lineone}{\wordone}%
38 \lastword{\eachwordtwo}{\linetwo}{\wordtwo}%
39 \global\setbox\gline=\hbox{\unhbox\gline
40 \hskip\glossglue
41 \vtop{\a:tsent\box\wordone
42 \c:tsent
43 \box\wordtwo
44 \b:tsent
45 }%
46 }%
47 \testdone
48 \ifnotdone
49 \repeat
50 \egroup % matches \bgroup in \gloss
51 }
52
53 \gdef\threesent#1^^M#2^^M#3^^M%
54 {\getwords(\lineone,\eachwordone)#1 ^^M%
55 \getwords(\linetwo,\eachwordtwo)#2 ^^M%
56 \getwords(\linethree,\eachwordthree)#3 ^^M%
57 \loop\lastword{\eachwordone}{\lineone}{\wordone}%
58 \lastword{\eachwordtwo}{\linetwo}{\wordtwo}%
59 \lastword{\eachwordthree}{\linethree}{\wordthree}%
60 \global\setbox\gline=\hbox{\unhbox\gline
61 \hskip\glossglue
62 \vtop{\a:tsent\box\wordone
63 \c:tsent
64 \box\wordtwo
65 \c:tsent
66 \box\wordthree
67 \b:tsent
68 }%
69 }%
70 \testdone
71 \ifnotdone
72 \repeat
73 \egroup % matches \bgroup in \gloss
74 }
75
76 \egroup
77 \NewConfigure{tsent}{3}
78 \pend:def\gll{\a:gll}
79 \pend:def\glll{\a:gll}
80 \NewConfigure{gll}{3}
81 \def\:tempc{\b:gll\end{flushleft}\c:gll}
82 \HLet\glend\:tempc
83 \def\glt{{\hskip -\glossglue}\unhbox\gline\smallskip\a:glt}
84 \NewConfigure{glt}{1}
85 \def\gln{{\hskip -\glossglue}\unhbox\gline\hfill\a:gln}
86 \NewConfigure{gln}{1}
87
88 \Hinput{covington}
89 \endinput
90