2
% Washington Romanized Indic accent driver
5
% Author : Thomas Ridgeway <ridgeway@u.washington.edu>
8
% Updated by : Anshuman Pandey <apandey@u.washington.edu>
11
% Copyright 1992 Humanities and Arts Computing Center, University of
12
% Washington. Licensed to the public according to the terms of the
13
% Free Software Foundation General Public License.
15
% WNRI is based on Computer Modern Roman and encoded according to
16
% the Classical Sanskrit/Classical Sanskrit eXtended character set.
17
% See wnindic.map for more details.
20
transform At,Tf; At=Tf=identity;
22
numeric acctdiff; acctdiff = min(dot_size,1/3(asc_height-x_height));
24
def makeACCENT(suffix $) =
25
transform Tf; Tf = identity shifted(-.5w,0);
27
message ">> savepicture ";
31
picture $; $=currentpicture transformed Tf;
34
def savePicture(suffix $) =
36
message ">> savepicture ";
40
picture $; $=currentpicture transformed Tf;
45
if unknown At: transform At; At=identity; fi
47
message ">> addpicture ";
51
addto currentpicture also $ transformed At;
54
def whap(suffix $,$$,$$$) =
55
if unknown At: transform At; At=identity; fi
57
message ">> addpicture ";
61
if w > $$$: addto currentpicture also $ transformed At;
62
else: addto currentpicture also $$ transformed At;
66
numeric adhocht; adhocht=0;
68
% shall accented characters show the height and depth of the accent?
69
if unknown trueheights: boolean trueheights; trueheights=false; fi
74
if asc_height + (h - x_height) + adhocht > h:
75
h:=asc_height + (h - x_height)+ adhocht; charht:= h / vppp;
83
if d < desc_depth: d:=desc_depth; chardp:= d / vppp; fi
89
if d < max(dot_size,cap_curve)+.25x_height: d:=dot_diam+.25x_height;
90
chardp:=max(dot_size#,cap_curve#)+.25x_height#;
95
% general accent height shift from x_height
97
acht:= if serifs: max(2/3[asc_height,x_height],x_height+o+hair)
98
else: vround 2/3[asc_height,x_height]
101
% replaced by use of czd
102
%def slurped (expr accentpoint) =
103
% identity shifted ((xpart accentpoint) + slant*(ypart accentpoint),aspect_ratio * (ypart accentpoint))
106
% end of file acctmax.mf