%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%                                                                  %%%
%%%                   Macros for Vietnamese accents                  %%%
%%%                                                                  %%%
%%%                         Thang Nguyen Bui                         %%%
%%%                 (B\uh i  Nguy\emna n  Th\aas ng)                 %%%
%%%                                                                  %%%
%%%                 1st Version:  ??/??/83 for TeX82                 %%%
%%%                   Updated on  10/30/85 for TeX82                 %%%
%%%                   Updated on  2/8/86 for TeX82                   %%%
%%%                   Updated on  10/9/86 for TeX82                  %%%
%%%                   Updated on  3/10/88 for TeX82                  %%%
%%%                                                                  %%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%
%%%    In the following macro definitions, those macros starting with
%%% "b", e.g., \bamho , indicate that these are the same as those macros
%%% without "b", i.e., \amho as in the example above, except that they
%%% should be used when the text is in \boldface and \largesize (i.e., 14pt).
%%% Similarly, the "h" prefix is used to indicate \boldface and \hugesize.
%%% I have only made this remedy when the situations arise in my usage, so
%%% not all macros have been taken care of in this way.
%%%    Some of the capital letters with accents have been defined in this
%%% file, but not all.  When I have time I will complete this task.
%%%
%%%    As defined here these macros work best with 12pt Computer Modern
%%% font. They are at their best with the italic type face.
%%%
\chardef\ooe=27

\baselineskip=18pt
     
\xdef\ho{\char'047}
\xdef\na{\char'176}
\xdef\sac{\char'023}
\xdef\hu{\char'022}
\xdef\mu{\char'136}     
     
\xdef\as{\'a}
\xdef\As{\'A}
\xdef\ah{\`a}
\xdef\Ah{\`A}
\def\an{\d a}
\def\An{\d A}
\xdef\ana{\rlap{\hbox{\hskip0.6pt \na}}a}
\xdef\Ana{\rlap{\raise3pt\hbox{\hskip0.6pt \na}}a}
\xdef\aho{\rlap{\raise1pt\hbox{\hskip1.7pt \ho}}a}
\xdef\baho{\rlap{\raise2pt\hbox{\hskip1.7pt \ho}}a}
\xdef\haho{\rlap{\raise3pt\hbox{\hskip2pt \ho}}a}
\xdef\Aho{\rlap{\raise4pt\hbox{\hskip5pt \ho}}A}
\xdef\hAho{\rlap{\raise5.5pt\hbox{\hskip9.5pt \ho}}A}
     
\xdef\am{\^a}
\xdef\Am{\^A}
\xdef\Ams{\rlap{\raise4.5pt\hbox{\hskip5pt \sac}}\Am}
\xdef\hAms{\rlap{\raise9pt\hbox{\hskip6pt \sac}}\Am}
\xdef\ams{\rlap{\raise2.5pt\hbox{\hskip1.8pt \sac}}\am}
\xdef\hams{\rlap{\raise4pt\hbox{\hskip2.4pt \sac}}\am}
     
\def\amn{\d\am}
\def\Amn{\d\Am}
\xdef\amna{\rlap{\raise2.2pt\hbox{\hskip1.7pt \na}}{\^a}}
\xdef\Amna{\rlap{\raise5.5pt\hbox{\hskip2pt \na}}{\^A}}
     
\xdef\amh{\rlap{\raise2pt\hbox{\hskip3pt \hu}}\am}
\xdef\Amh{\rlap{\raise5pt\hbox{\hskip3pt \hu}}\Am}
\xdef\hamh{\rlap{\raise3.5pt\hbox{\hskip3pt \hu}}\am}
     
\xdef\amho{\rlap{\raise3.3pt\hbox{\hskip3.3pt \ho}}\am}
\xdef\Amho{\rlap{\raise6.3pt\hbox{\hskip3.5pt \ho}}\Am}
\xdef\bamho{\rlap{\raise4pt\hbox{\hskip3.3pt \ho}}\am}
\xdef\hamho{\rlap{\raise7pt\hbox{\hskip5pt \ho}}\am}
     
%\xdef\baa{\rlap{\raise0.5pt\hbox{\hskip0.5pt \char'025}}a}
\xdef\aa{\rlap{\raise0.5pt\hbox{\hskip0.3pt \char'025}}a}
\def\Aa{\rlap{\raise3.5pt\hbox{\hskip1.6pt \char'025}}A}     
\xdef\aas{\rlap{\raise3pt\hbox{\hskip1.3pt \sac}}\aa}
\xdef\Aas{\rlap{\raise5.5pt\hbox{\hskip2.2pt \sac}}\Aa}
\xdef\baas{\rlap{\raise3.5pt\hbox{\hskip1.1pt \sac}}\aa}
\xdef\haas{\rlap{\raise5pt\hbox{\hskip1.1pt \sac}}\aa}
     
\xdef\aah{\rlap{\raise3pt\hbox{\hskip0.8pt \hu}}\aa}
\xdef\haah{\rlap{\raise4.5pt\hbox{\hskip0.8pt \hu}}\aa}
\def\aan{\d\aa}
\xdef\aana{\rlap{\raise2.8pt\hbox{\hskip1.3pt \na}}\aa}
\xdef\haana{\rlap{\raise4pt\hbox{\hskip1.3pt \na}}\aa}
\xdef\aaho{\rlap{\raise3.5pt\hbox{\hskip1.9pt \ho}}\aa}
\xdef\haaho{\rlap{\raise7pt\hbox{\hskip2.5pt \ho}}\aa}
     
\xdef\db{\rlap{\hbox{\hskip1pt \char'026}}d}
\xdef\hdb{\rlap{\hbox{\hskip2.5pt \char'026}}d}
%\def\Db{\rlap{\lower3pt\hbox{\hskip-1.3pt \char'026}}D}

\xdef\Db{\setbox0=\hbox{D}\setbox1=\hbox{\char'026}D\kern-\wd0{\lower3pt
\hbox{\hskip-1.3pt\char'026}}\kern-\wd1\kern\wd0}

%\xdef\hDb{\rlap{\lower4pt\hbox{\hskip-1.3pt \char'026}}D}
\xdef\ddb{\Db}
     
     
\xdef\es{\'e}
\xdef\Es{\'E}
\xdef\eh{\`e}
\def\en{\d e}
\xdef\ena{\rlap{\hbox{\hskip0.5pt \na}}e}
\xdef\eho{\rlap{\raise1pt\hbox{\hskip1.7pt \ho}}e}
\xdef\beho{\rlap{\raise2pt\hbox{\hskip1.7pt \ho}}e}
\xdef\heho{\rlap{\raise3.5pt\hbox{\hskip1.7pt \ho}}e}
     
\xdef\em{\^e}
\xdef\Em{\^E}
     
\xdef\ems{\rlap{\raise2.5pt\hbox{\hskip1.8pt \sac}}\em}
\xdef\Ems{\rlap{\raise5.5pt\hbox{\hskip2.4pt \sac}}\Em}
\xdef\hems{\rlap{\raise4pt\hbox{\hskip2.4pt \sac}}\em}
     
\xdef\emh{\rlap{\raise2pt\hbox{\hskip3pt \hu}}\em}
\xdef\hemh{\rlap{\raise4pt\hbox{\hskip3pt \hu}}\em}
     
\def\emn{\d\em}
\def\Emn{\d\Em}
     
\xdef\emna{\rlap{\raise2.2pt\hbox{\hskip1.7pt \na}}{\^e}}
\xdef\Emna{\rlap{\raise5.5pt\hbox{\hskip2.2pt \na}}\Em}
\xdef\bemna{\rlap{\raise3pt\hbox{\hskip1.7pt \na}}{\^e}}
\xdef\hemna{\rlap{\raise3.6pt\hbox{\hskip1.7pt \na}}{\^e}}
     
\xdef\emho{\rlap{\raise3.3pt\hbox{\hskip3.3pt \ho}}\em}
\xdef\bemho{\rlap{\raise4.5pt\hbox{\hskip3.3pt \ho}}\em}
\xdef\hemho{\rlap{\raise7pt\hbox{\hskip5pt \ho}}\em}
\xdef\hEmho{\rlap{\raise11pt\hbox{\hskip9pt \ho}}\Em}
     
     
\xdef\is{\'\i}
\xdef\Is{\'I}
\xdef\ih{\`\i}
\xdef\Ih{\`I}
\def\in{\d i}
\xdef\ina{\rlap{\raise2.2pt\hbox{\hskip0.5pt \na}}i}
\xdef\hina{\rlap{\raise3.5pt\hbox{\na}}i}
\xdef\iho{\rlap{\raise1.5pt\hbox{\hskip1.5pt \ho}}i}
\xdef\biho{\rlap{\raise3pt\hbox{\hskip2.5pt \ho}}i}
     
\xdef\os{\'o}
\xdef\Os{\'O}
\xdef\oh{\`o}
\xdef\Oh{\`O}
\def\on{\d o}
\def\On{\d O}
\xdef\ona{\rlap{\hbox{\hskip0.7pt \na}}o}
\xdef\oho{\rlap{\raise1.5pt\hbox{\hskip1.7pt \ho}}o}
\xdef\boho{\rlap{\raise2.5pt\hbox{\hskip1.7pt \ho}}o}
\xdef\hoho{\rlap{\raise3.5pt\hbox{\hskip2pt \ho}}o}
     
\xdef\om{\^o}
\xdef\Om{\^O}
\xdef\oms{\rlap{\raise2.5pt\hbox{\hskip2pt \sac}}\om}
\xdef\homs{\rlap{\raise4pt\hbox{\hskip3pt \sac}}\om}
\xdef\Oms{\rlap{\raise5pt\hbox{\hskip5pt \sac}}\Om}
\xdef\hOms{\rlap{\raise8pt\hbox{\hskip7pt \sac}}\Om}
     
\xdef\omh{\rlap{\raise2pt\hbox{\hskip3pt \hu}}\om}
\xdef\homh{\rlap{\raise4pt\hbox{\hskip3pt \hu}}\om}
\xdef\Omh{\rlap{\raise3.5pt\hbox{\hskip6pt \hu}}\Om}
\xdef\hOmh{\rlap{\raise7pt\hbox{\hskip8pt \hu}}\Om}
     
\def\omn{\d\om}
\def\Omn{\d\Om}
\xdef\omna{\rlap{\raise2.2pt\hbox{\hskip1.7pt \na}}\om}
\xdef\Omna{\rlap{\raise5.5pt\hbox{\hskip2.2pt \na}}\Om}
\xdef\bomna{\rlap{\raise2.5pt\hbox{\hskip1.7pt \na}}\om}
\xdef\omho{\rlap{\raise3.3pt\hbox{\hskip3.3pt \ho}}\om}
\xdef\bomho{\rlap{\raise4.3pt\hbox{\hskip3.3pt \ho}}\om}
\xdef\homho{\rlap{\raise7pt\hbox{\hskip5pt \ho}}\om}
     
\xdef\oe{\rlap{\lower0.5pt\hbox{\hskip3.2pt \ho}}o}
%\xdef\oe{\rlap{\lower0.5pt\hbox{\hskip2.8pt \ho}}o}%tempo for \sit
     
\xdef\boe{\rlap{\lower0.5pt\hbox{\hskip4pt \ho}}o}
\xdef\hoe{\rlap{\lower0.6pt\hbox{\hskip7pt \ho}}o}
\xdef\Oe{\rlap{\raise1.5pt\hbox{\hskip6pt \ho}}O}
\xdef\bOe{\rlap{\raise1.5pt\hbox{\hskip7.5pt \ho}}O}
\xdef\hOe{\rlap{\raise3.2pt\hbox{\hskip12pt \ho}}O}
     
\xdef\oes{\rlap{\raise2.5pt\hbox{\hskip1.2pt \sac}}\oe}
\xdef\Oes{\rlap{\raise3.5pt\hbox{\hskip3.5pt \sac}}\Oe}
\xdef\hOes{\rlap{\raise4.5pt\hbox{\hskip3.5pt \sac}}\hOe}
\xdef\boes{\rlap{\raise3pt\hbox{\hskip1.2pt \sac}}\boe}
\xdef\hoes{\rlap{\raise3pt\hbox{\hskip1.2pt \sac}}\hoe}
     
\xdef\oeh{\rlap{\raise1.5pt\hbox{\hskip0.2pt \hu}}\oe}
\xdef\boeh{\rlap{\raise2.5pt\hbox{\hu}}\boe}
\xdef\hoeh{\rlap{\raise2.5pt\hbox{\hu}}\hoe}
\xdef\Oeh{\rlap{\raise3.5pt\hbox{\hskip3pt \hu}}\Oe}
\xdef\bOeh{\rlap{\raise3.5pt\hbox{\hskip3pt \hu}}\bOe}
\xdef\hOeh{\rlap{\raise6pt\hbox{\hskip4pt \hu}}\hOe}
     
\def\oen{\d\oe}
\def\boen{\d\boe}
\def\hoen{\d\hoe}
\def\Oen{\d\Oe}
\def\bOen{\d\bOe}
\def\hOen{\d\hOe}
     
\xdef\oena{\rlap{\raise1.5pt\hbox{\hskip1.2pt \na}}\oe}
\xdef\boena{\rlap{\raise1.5pt\hbox{\hskip1.2pt \na}}\boe}
\xdef\hoena{\rlap{\raise3pt\hbox{\hskip1pt \na}}\hoe}
     
\xdef\oeho{\rlap{\raise2pt\hbox{\hskip1.5pt \ho}}\oe}
\xdef\boeho{\rlap{\raise3.5pt\hbox{\hskip1.5pt \ho}}\boe}
\xdef\hoeho{\rlap{\raise3.5pt\hbox{\hskip2pt \ho}}\hoe}
\xdef\Oeho{\rlap{\raise5pt\hbox{\hskip4pt \ho}}\Oe}
\xdef\bOeho{\rlap{\raise5pt\hbox{\hskip4pt \ho}}\bOe}
\xdef\hOeho{\rlap{\raise8.5pt\hbox{\hskip6pt \ho}}\hOe}
     
\xdef\ue{\rlap{\lower0.6pt\hbox{\hskip3.2pt \ho}}u}
%\xdef\ue{\rlap{\lower0.5pt\hbox{\hskip2.7pt \ho}}u}%tempo for \sit
     
\xdef\bue{\rlap{\lower0.5pt\hbox{\hskip5pt \ho}}u}
\xdef\hue{\rlap{\lower0.5pt\hbox{\hskip8pt \ho}}u}
\xdef\Ue{\rlap{\raise2.5pt\hbox{\hskip6.6pt \ho}}U}
\xdef\bUe{\rlap{\raise3.5pt\hbox{\hskip7.8pt \ho}}U}
\xdef\hUe{\rlap{\raise5pt\hbox{\hskip13pt \ho}}U}
     
\xdef\ues{\rlap{\raise2.5pt\hbox{\hskip1.2pt \sac}}\ue}
\xdef\bues{\rlap{\raise2.5pt\hbox{\hskip1.4pt \sac}}\bue}
\xdef\hues{\rlap{\raise2.5pt\hbox{\hskip1.2pt \sac}}\hue}
\xdef\ueh{\rlap{\raise2pt\hbox{\hskip0.5pt \hu}}\ue}
\xdef\bueh{\rlap{\raise2.5pt\hbox{\hskip1.4pt \hu}}\bue}
\xdef\hueh{\rlap{\raise2.5pt\hbox{\hskip1.4pt \hu}}\hue}
\xdef\Ueh{\rlap{\raise3.5pt\hbox{\hskip3pt \hu}}\Ue}
\xdef\bUeh{\rlap{\raise3.5pt\hbox{\hskip3pt \hu}}\bUe}
\xdef\hUeh{\rlap{\raise5.5pt\hbox{\hskip3pt \hu}}\hUe}
     
\def\uen{\d\ue}
\def\buen{\d\bue}
\def\huen{\d\hue}
\def\Uen{\d\Ue}
\def\bUen{\d\bUe}
\def\hUen{\d\hUe}
     
\xdef\uena{\rlap{\raise1.5pt\hbox{\hskip1.2pt \na}}\ue}
\xdef\buena{\rlap{\raise2.5pt\hbox{\hskip1.4pt \na}}\bue}
\xdef\huena{\rlap{\raise2.5pt\hbox{\hskip1.7pt \na}}\hue}
     
\xdef\ueho{\rlap{\raise2.4pt\hbox{\hskip1.6pt \ho}}\ue}
\xdef\bueho{\rlap{\raise2.5pt\hbox{\hskip1.6pt \ho}}\bue}
\xdef\hueho{\rlap{\raise4pt\hbox{\hskip3.5pt \ho}}\hue}
     
\xdef\us{\'u}
\xdef\Us{\'U}
\xdef\uh{\`u}
\xdef\Uh{\`U}
\def\uun{\d u}
\def\Uun{\d U}
     
\xdef\una{\rlap{\hbox{\hskip0.3pt \na}}u}
\xdef\uho{\rlap{\raise1pt\hbox{\hskip1.3pt \ho}}u}
\xdef\Uho{\rlap{\raise3.5pt\hbox{\hskip3.5pt \ho}}U}
\xdef\buho{\rlap{\raise2pt\hbox{\hskip2pt \ho}}u}
%\xdef\huho{\rlap{\raise3pt\hbox{\hskip2.5pt \ho}}u}
\xdef\huho{\rlap{\raise4pt\hbox{\hskip3pt \ho}}u}
\xdef\hUho{\rlap{\raise4pt\hbox{\hskip3pt \ho}}U}

     
     
\xdef\ys{\'y}
\xdef\Ys{\'Y}
\xdef\yh{\`y}
\xdef\Yh{\`Y}
\def\yn{\d y}
\def\Yn{\d Y}
     
\xdef\yho{\rlap{\raise1pt\hbox{\hskip1.7pt \ho}}y}
\xdef\byho{\rlap{\raise2pt\hbox{\hskip1.7pt \ho}}y}
\xdef\hyho{\rlap{\raise3.5pt\hbox{\hskip2.5pt \ho}}y}
     
\xdef\yna{\rlap{\hbox{\hskip0.5pt \na}}y}
\xdef\Yna{\rlap{\raise3.5pt\hbox{\hskip1.5pt \na}}Y}
     

%%%%%% that's all folks!!
