| 1 |
%% Please see the file LICENCE-wsuipa.txt for licensing information. |
| 2 |
%% |
| 3 |
%% The following macro is necessary to place an accent over the |
| 4 |
%% character definitions below. For example, you should say: |
| 5 |
%% \diatop[\^|\openo] |
| 6 |
%% |
| 7 |
|
| 8 |
\def\diatop[#1|#2]{{\setbox1=\hbox{{#1{}}}\setbox2=\hbox{{#2{}}}% |
| 9 |
\dimen0=\ifdim\wd1>\wd2\wd1\else\wd2\fi% |
| 10 |
\dimen1=\ht2\advance\dimen1by-1ex% |
| 11 |
\setbox1=\hbox to1\dimen0{\hss#1\hss}% |
| 12 |
\rlap{\raise1\dimen1\box1}% |
| 13 |
\hbox to1\dimen0{\hss#2\hss}}}% |
| 14 |
|
| 15 |
%% As an alternative, you could uncomment the following two lines: |
| 16 |
%% |
| 17 |
%% \catcode`"=\active |
| 18 |
%% \def"#1#2{\diatop[#1|#2]} |
| 19 |
%% |
| 20 |
%% And then you could place an accent over the ipa character by |
| 21 |
%% calling the macro " which itself calls \diatop. For example, you |
| 22 |
%% would say: |
| 23 |
%% |
| 24 |
%% "\^\openo |
| 25 |
|
| 26 |
%% THE FOLLOWING macros access the IPA chars from the WSU IPA font |
| 27 |
|
| 28 |
\font\ipatwelverm=wsuipa12 |
| 29 |
\def\ipa{\ipatwelverm} |
| 30 |
|
| 31 |
%% A-type shapes: |
| 32 |
\def\inva{\edef\next{\the\font}\ipa\char'000\next}% |
| 33 |
\def\scripta{\edef\next{\the\font}\ipa\char'001\next}% |
| 34 |
\def\nialpha{\edef\next{\the\font}\ipa\char'002\next}% |
| 35 |
\def\invscripta{\edef\next{\the\font}\ipa\char'003\next}% |
| 36 |
\def\invv{\edef\next{\the\font}\ipa\char'004\next}% |
| 37 |
|
| 38 |
%% B-type shapes: |
| 39 |
\def\crossb{\edef\next{\the\font}\ipa\char'005\next}% |
| 40 |
\def\barb{\edef\next{\the\font}\ipa\char'006\next}% |
| 41 |
\def\slashb{\edef\next{\the\font}\ipa\char'007\next}% |
| 42 |
\def\hookb{\edef\next{\the\font}\ipa\char'010\next}% |
| 43 |
\def\nibeta{\edef\next{\the\font}\ipa\char'011\next}% |
| 44 |
|
| 45 |
%% C-type shapes: |
| 46 |
\def\slashc{\edef\next{\the\font}\ipa\char'012\next}% |
| 47 |
\def\curlyc{\edef\next{\the\font}\ipa\char'013\next}% |
| 48 |
\def\clickc{\edef\next{\the\font}\ipa\char'014\next}% |
| 49 |
|
| 50 |
%% D-type shapes: |
| 51 |
\def\crossd{\edef\next{\the\font}\ipa\char'015\next}% |
| 52 |
\def\bard{\edef\next{\the\font}\ipa\char'016\next}% |
| 53 |
\def\slashd{\edef\next{\the\font}\ipa\char'017\next}% |
| 54 |
\def\hookd{\edef\next{\the\font}\ipa\char'020\next}% |
| 55 |
\def\taild{\edef\next{\the\font}\ipa\char'021\next}% |
| 56 |
\def\dz{\edef\next{\the\font}\ipa\char'022\next}% |
| 57 |
\def\eth{\edef\next{\the\font}\ipa\char'023\next}% |
| 58 |
\def\scd{\edef\next{\the\font}\ipa\char'024\next}% |
| 59 |
|
| 60 |
%% E-type shapes: |
| 61 |
\def\schwa{\edef\next{\the\font}\ipa\char'025\next}% |
| 62 |
\def\er{\edef\next{\the\font}\ipa\char'026\next}% |
| 63 |
\def\reve{\edef\next{\the\font}\ipa\char'027\next}% |
| 64 |
\def\niepsilon{\edef\next{\the\font}\ipa\char'030\next}% |
| 65 |
\def\revepsilon{\edef\next{\the\font}\ipa\char'031\next}% |
| 66 |
\def\hookrevepsilon{\edef\next{\the\font}\ipa\char'032\next}% |
| 67 |
\def\closedrevepsilon{\edef\next{\the\font}\ipa\char'033\next}% |
| 68 |
|
| 69 |
%% G-type shapes: |
| 70 |
\def\scriptg{\edef\next{\the\font}\ipa\char'034\next}% |
| 71 |
\def\hookg{\edef\next{\the\font}\ipa\char'035\next}% |
| 72 |
\def\scg{\edef\next{\the\font}\ipa\char'036\next}% |
| 73 |
\def\nigamma{\edef\next{\the\font}\ipa\char'037\next} |
| 74 |
\def\ipagamma{\edef\next{\the\font}\ipa\char'040\next}% |
| 75 |
\def\babygamma{\edef\next{\the\font}\ipa\char'041\next}% |
| 76 |
|
| 77 |
%% H-type shapes: |
| 78 |
\def\hv{\edef\next{\the\font}\ipa\char'042\next}% |
| 79 |
\def\crossh{\edef\next{\the\font}\ipa\char'043\next}% |
| 80 |
\def\hookh{\edef\next{\the\font}\ipa\char'044\next}% |
| 81 |
\def\hookheng{\edef\next{\the\font}\ipa\char'045\next}% |
| 82 |
\def\invh{\edef\next{\the\font}\ipa\char'046\next}% |
| 83 |
|
| 84 |
%% I-type shapes: |
| 85 |
\def\bari{\edef\next{\the\font}\ipa\char'047\next}% |
| 86 |
\def\dlbari{\edef\next{\the\font}\ipa\char'050\next}% ``dotless bar i'' |
| 87 |
\def\niiota{\edef\next{\the\font}\ipa\char'051\next}% |
| 88 |
\def\sci{\edef\next{\the\font}\ipa\char'052\next}% |
| 89 |
\def\barsci{\edef\next{\the\font}\ipa\char'053\next}% ``barred small cap i'' |
| 90 |
|
| 91 |
%% J-type shape: |
| 92 |
\def\invf{\edef\next{\the\font}\ipa\char'054\next}% |
| 93 |
|
| 94 |
%% L-type shapes: |
| 95 |
\def\tildel{\edef\next{\the\font}\ipa\char'055\next}% |
| 96 |
\def\barl{\edef\next{\the\font}\ipa\char'056\next}% |
| 97 |
\def\latfric{\edef\next{\the\font}\ipa\char'057\next}% |
| 98 |
\def\taill{\edef\next{\the\font}\ipa\char'060\next}% |
| 99 |
\def\lz{\edef\next{\the\font}\ipa\char'061\next}% |
| 100 |
\def\nilambda{\edef\next{\the\font}\ipa\char'062\next}% |
| 101 |
\def\crossnilambda{\edef\next{\the\font}\ipa\char'063\next}% |
| 102 |
|
| 103 |
%% M-type shapes: |
| 104 |
\def\labdentalnas{\edef\next{\the\font}\ipa\char'064\next}% |
| 105 |
\def\invm{\edef\next{\the\font}\ipa\char'065\next}% |
| 106 |
\def\legm{\edef\next{\the\font}\ipa\char'066\next}% |
| 107 |
|
| 108 |
%% N-type shapes: |
| 109 |
\def\nj{\edef\next{\the\font}\ipa\char'067\next}% |
| 110 |
\def\eng{\edef\next{\the\font}\ipa\char'070\next}% |
| 111 |
\def\tailn{\edef\next{\the\font}\ipa\char'071\next}% |
| 112 |
\def\scn{\edef\next{\the\font}\ipa\char'072\next}% |
| 113 |
|
| 114 |
%% O-type shapes: |
| 115 |
\def\clickb{\edef\next{\the\font}\ipa\char'073\next}% |
| 116 |
\def\baro{\edef\next{\the\font}\ipa\char'074\next}% |
| 117 |
\def\openo{\edef\next{\the\font}\ipa\char'075\next}% |
| 118 |
\def\niomega{\edef\next{\the\font}\ipa\char'076\next}% |
| 119 |
\def\closedniomega{\edef\next{\the\font}\ipa\char'077\next}% |
| 120 |
\def\oo{\edef\next{\the\font}\ipa\char'100\next}% |
| 121 |
|
| 122 |
%% P-type shapes: |
| 123 |
\def\barp{\edef\next{\the\font}\ipa\char'101\next}% |
| 124 |
\def\thorn{\edef\next{\the\font}\ipa\char'102\next}% |
| 125 |
\def\niphi{\edef\next{\the\font}\ipa\char'103\next}% |
| 126 |
|
| 127 |
%% R-type shapes: |
| 128 |
\def\flapr{\edef\next{\the\font}\ipa\char'104\next}% |
| 129 |
\def\legr{\edef\next{\the\font}\ipa\char'105\next}% |
| 130 |
\def\tailr{\edef\next{\the\font}\ipa\char'106\next}% |
| 131 |
\def\invr{\edef\next{\the\font}\ipa\char'107\next}% |
| 132 |
\def\tailinvr{\edef\next{\the\font}\ipa\char'110\next}% |
| 133 |
\def\invlegr{\edef\next{\the\font}\ipa\char'111\next}% |
| 134 |
\def\scr{\edef\next{\the\font}\ipa\char'112\next}% |
| 135 |
\def\invscr{\edef\next{\the\font}\ipa\char'113\next}% |
| 136 |
|
| 137 |
%% S-type shapes: |
| 138 |
\def\tails{\edef\next{\the\font}\ipa\char'114\next}% |
| 139 |
\def\esh{\edef\next{\the\font}\ipa\char'115\next}% |
| 140 |
\def\curlyesh{\edef\next{\the\font}\ipa\char'116\next}% |
| 141 |
\def\nisigma{\edef\next{\the\font}\ipa\char'117\next}% |
| 142 |
|
| 143 |
%% T-type shapes: |
| 144 |
\def\tailt{\edef\next{\the\font}\ipa\char'120\next}% |
| 145 |
\def\tesh{\edef\next{\the\font}\ipa\char'121\next}% |
| 146 |
\def\clickt{\edef\next{\the\font}\ipa\char'122\next}% |
| 147 |
\def\nitheta{\edef\next{\the\font}\ipa\char'123\next}% |
| 148 |
|
| 149 |
%% U-type shapes: |
| 150 |
\def\baru{\edef\next{\the\font}\ipa\char'124\next}% |
| 151 |
\def\slashu{\edef\next{\the\font}\ipa\char'125\next}% |
| 152 |
\def\niupsilon{\edef\next{\the\font}\ipa\char'126\next}% |
| 153 |
\def\scu{\edef\next{\the\font}\ipa\char'127\next}% |
| 154 |
\def\barscu{\edef\next{\the\font}\ipa\char'130\next}% |
| 155 |
|
| 156 |
%% V-type shape: |
| 157 |
\def\scriptv{\edef\next{\the\font}\ipa\char'131\next}% |
| 158 |
|
| 159 |
%% W-type shape: |
| 160 |
\def\invw{\edef\next{\the\font}\ipa\char'132\next}% |
| 161 |
|
| 162 |
%% X-type shape: |
| 163 |
\def\nichi{\edef\next{\the\font}\ipa\char'133\next}% |
| 164 |
|
| 165 |
%% Y-type shapes: |
| 166 |
\def\invy{\edef\next{\the\font}\ipa\char'134\next}% |
| 167 |
\def\scy{\edef\next{\the\font}\ipa\char'135\next}% |
| 168 |
|
| 169 |
%% Z-type shapes: |
| 170 |
\def\curlyz{\edef\next{\the\font}\ipa\char'136\next}% |
| 171 |
\def\tailz{\edef\next{\the\font}\ipa\char'137\next}% |
| 172 |
\def\yogh{\edef\next{\the\font}\ipa\char'140\next}% |
| 173 |
\def\curlyyogh{\edef\next{\the\font}\ipa\char'141\next}% |
| 174 |
|
| 175 |
%% ?-type shapes: |
| 176 |
\def\glotstop{\edef\next{\the\font}\ipa\char'142\next}% |
| 177 |
\def\revglotstop{\edef\next{\the\font}\ipa\char'143\next}% |
| 178 |
\def\invglotstop{\edef\next{\the\font}\ipa\char'144\next}% |
| 179 |
\def\ejective{\edef\next{\the\font}\ipa\char'145\next}% |
| 180 |
\def\reveject{\edef\next{\the\font}\ipa\char'146\next}% |
| 181 |
|
| 182 |
%% AND that should be it, as far as actual characters go. |
| 183 |
%% |
| 184 |
%% THE following is the set of diacritics. Please try to get |
| 185 |
%% the 4 t-bars lined up above the 4 pointers, so you may |
| 186 |
%% have to reshuffle things a bit. Not to worry too much. I |
| 187 |
%% think the diacritics can be grouped more according to |
| 188 |
%% shape, so comma-like things are together, etc. |
| 189 |
%% |
| 190 |
|
| 191 |
\def\dental#1{\oalign{#1\crcr |
| 192 |
\hidewidth{\ipa\char'147}\hidewidth}} |
| 193 |
|
| 194 |
\def\upt{\edef\next{\the\font}\ipa\char'154\next}% These are IPA pointers |
| 195 |
\def\downt{\edef\next{\the\font}\ipa\char'155\next}% |
| 196 |
\def\leftt{\edef\next{\the\font}\ipa\char'156\next}% |
| 197 |
\def\rightt{\edef\next{\the\font}\ipa\char'157\next}% |
| 198 |
|
| 199 |
% These are American versions of t-bars |
| 200 |
\def\upp{\edef\next{\the\font}\ipa\char'164\next} |
| 201 |
\def\downp{\edef\next{\the\font}\ipa\char'165\next}% |
| 202 |
\def\leftp{\edef\next{\the\font}\ipa\char'166\next}% |
| 203 |
\def\rightp{\edef\next{\the\font}\ipa\char'167\next}% |
| 204 |
|
| 205 |
\def\stress{\edef\next{\the\font}\ipa\char'150\next}% primary stress |
| 206 |
\def\secstress{\edef\next{\the\font}\ipa\char'151\next}% secondary stress |
| 207 |
|
| 208 |
\def\syllabic{\edef\next{\the\font}\ipa\char'152\next}% syllabic marker |
| 209 |
|
| 210 |
\def\corner{\edef\next{\the\font}\ipa\char'153\next}% |
| 211 |
|
| 212 |
% American equivalent: raised dot |
| 213 |
\def\halflength{\edef\next{\the\font}\ipa\char'160\next} |
| 214 |
% American equivalent: colon |
| 215 |
\def\length{\edef\next{\the\font}\ipa\char'161\next} |
| 216 |
|
| 217 |
\def\underdots{\edef\next{\the\font}\ipa\char'162\next}% |
| 218 |
|
| 219 |
% ``reversed apostrophe'', p. 216 |
| 220 |
\def\ain{\edef\next{\the\font}\ipa\char'163\next} |
| 221 |
|
| 222 |
\def\overring{\edef\next{\the\font}\ipa\char'170\next}% |
| 223 |
\def\underring{\edef\next{\the\font}\ipa\char'171\next}% |
| 224 |
|
| 225 |
\def\open{\edef\next{\the\font}\ipa\char'172\next}% |
| 226 |
|
| 227 |
\def\midtilde{\edef\next{\the\font}\ipa\char'173\next}% |
| 228 |
\def\undertilde{\edef\next{\the\font}\ipa\char'174\next}% |
| 229 |
|
| 230 |
\def\underwedge{\edef\next{\the\font}\ipa\char'175\next}% |
| 231 |
|
| 232 |
\def\polishhook{\edef\next{\the\font}\ipa\char'176\next}% |
| 233 |
|
| 234 |
\def\underarch#1{\oalign{#1\crcr |
| 235 |
\hidewidth{\ipa\char'177}\hidewidth}} |
| 236 |
|
| 237 |
%% AND that's it for the diacritics. |