2 * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
3 * Use is subject to license terms.
6 /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
7 /* All Rights Reserved */
10 * Copyright (c) 1980 Regents of the University of California.
11 * All rights reserved. The Berkeley software License Agreement
12 * specifies the terms and conditions for redistribution.
15 #pragma ident "%Z%%M% %I% %E% SMI"
20 boverb(int p1
, int p2
)
27 d
= VERT(EM(0.3, ps
));
28 h
= eht
[p1
] + eht
[p2
] + d
;
31 h
= eht
[p1
] + eht
[p2
];
35 printf(".\tb:bob: S%d <- S%d over S%d; b=%d, h=%d\n",
39 printf(".nr %d \\n(%d\n", treg
, p1
);
40 printf(".if \\n(%d>\\n(%d .nr %d \\n(%d\n", p2
, treg
, treg
, p2
);
42 printf(".nr %d \\n(%d+\\s%d.5m\\s0\n", treg
, treg
, EFFPS(ps
));
44 printf(".ds %d \\v'%du'\\h'\\n(%du-\\n(%du/2u'\\*(%d\\\n",
45 yyval
, eht
[p2
]-ebase
[p2
]-d
, treg
, p2
, p2
);
47 printf("\\h'-\\n(%du-\\n(%du/2u'\\v'%du'\\*(%d\\\n",
48 p2
, p1
, -(eht
[p2
]-ebase
[p2
]+d
+ebase
[p1
]), p1
);
49 printf("\\h'-\\n(%du-\\n(%du/2u+.1m'\\v'%du'\\l'\\n"
50 "(%du-.2m'\\h'.1m'\\v'%du'\n", treg
, p1
, ebase
[p1
]+d
, treg
, d
);
52 printf("\\h'-\\n(%du-\\n(%du/2u'\\v'%du'\\*(%d\\\n",
53 p2
, p1
, -eht
[p2
]+ebase
[p2
]-ebase
[p1
], p1
);
54 printf("\\h'-\\n(%du-\\n(%du-2u/2u'\\v'%du'\\l'\\n(%du'\\v'%du'\n",
55 treg
, p1
, ebase
[p1
], treg
, d
);
59 lfont
[yyval
] = rfont
[yyval
] = 0;