% Style file characters not present in the original
% sgaon font.

% $Header: /home/users/masroor/TeX/sty/RCS/arosgn.sty,v 2.7 1996/08/29 01:06:15 masroor Exp $

% $Log: arosgn.sty,v $
% Revision 2.7  1996/08/29  01:06:15  masroor
% Updated the style file to be used for implementing
% only the characters defined in arosgn.sty.
%
% Revision 2.6  1996/02/21  10:55:47  masroor
% Font file names no longer contain 10 for tenpoint.
%
% Revision 2.5  1996/02/21  09:03:48  masroor
% Updated for hu.
%
% Revision 2.4  1996/02/16  06:11:13  masroor
% Fixed some minor bugs.
%
% Revision 2.3  1996/02/16  03:03:33  masroor
% Fixed some minor bugs.
%
% Revision 2.2  1996/02/16  02:32:42  masroor
% Fixed some minor bugs.
%
% Revision 2.1  1996/02/15  07:15:40  masroor
% Updated for slanted and compressed font.
%
% Revision 1.5  1996/02/14  07:38:49  masroor
% Used charcode rather than characters.
%
% Revision 1.4  1996/02/14  03:07:48  masroor
% Added lines for au.
%
% Revision 1.3  1996/02/13  07:49:20  masroor
% Added lines for chandrabindu and dnari.
%
% Revision 1.2  1996/02/13  06:19:39  masroor
% Automated charcode assignment.
%
% Revision 1.1  1996/02/09  07:27:39  masroor
% Initial revision
%

% Fonts to be used.
\font\Aro@Sgaon@Normal = arosgnr
\font\Aro@Sgaon@Compressed = arosgnc
\font\Aro@Sgaon@Slanted = arosgns

% We need to redefine the bengali font load commands in order to
% indentify bengali font used during runtime. Only newer versions of LaTeX
% support a command for fontname identification. Font for
% the macros defined in this file will be selected depending
% on the current bengali font.
\newtoks\@bengali@font@type
\@bengali@font@type={@Normal}	% For cases when used outside the range
				% of #bengali and #endbengali.
% We need to use this macro.
\def\ifundefined#1{\expandafter\ifx\csname#1\endcsname\relax}
%
% 
\ifundefined{bnglr}\font\bnglr = cmr10 \else\relax\fi
\let\@temp@font=\bnglr
\edef\bnglr{\@bengali@font@type={@Normal}\the\@temp@font}
\ifundefined{bnglc}\font\bnglc = cmr10 \else\relax\fi
\let\@temp@font=\bnglc
\edef\bnglc{\@bengali@font@type={@Compressed}\the\@temp@font}
\ifundefined{bngls}\font\bngls = cmr10 \else\relax\fi
\let\@temp@font=\bngls
\edef\bngls{\@bengali@font@type={@Slanted}\the\@temp@font}

% Character code.
\newcounter{@axar@code}\setcounter{@axar@code}{48}

% Font selector
\def\@font@selector{\csname Aro@Sgaon\the\@bengali@font@type\endcsname}

% e. No e without the upper line was available.
\stepcounter{@axar@code}
\edef\@define@next#1#2{\def#1{{#2\char\the@axar@code}}}
\@define@next\e\@font@selector

% Au. 
\stepcounter{@axar@code}
\edef\@define@next#1#2{\def#1{{#2\char\the@axar@code}}}
\@define@next\au\@font@selector

% gaw e ukar
\stepcounter{@axar@code}
\edef\@define@next#1#2{\def#1{{#2\char\the@axar@code}}}
\@define@next\gu\@font@selector

% haw e ukar
\stepcounter{@axar@code}
\edef\@define@next#1#2{\def#1{{#2\char\the@axar@code}}}
\@define@next\hu\@font@selector

% raw e ukar
\stepcounter{@axar@code}
\edef\@define@next#1#2{\def#1{{#2\char\the@axar@code}}}
\@define@next\ru\@font@selector

% shaw e ukar
\stepcounter{@axar@code}
\edef\@define@next#1#2{\def#1{{#2\char\the@axar@code}}}
\@define@next\shu\@font@selector

% Khandatta
\stepcounter{@axar@code}
\edef\@define@next#1#2{\def#1{{#2\char\the@axar@code}}}
\@define@next\th\@font@selector

% Jawfala
\stepcounter{@axar@code}
\edef\@define@next#1#2{\def#1{{#2\char\the@axar@code}}}
\@define@next\jafala\@font@selector

% Jawfala akar
\stepcounter{@axar@code}
\edef\@define@next#1#2{\def#1{{#2\char\the@axar@code}}}
\@define@next\jafalaAkar\@font@selector

\def\ya{\jafala}
\def\yA{\jafalaAkar\thinspace}
\def\yaa{\jafalaAkar\thinspace}

% Chandra bindu
\stepcounter{@axar@code}
\edef\@define@next#1#2{\def#1{{#2\char\the@axar@code}}}
\@define@next\ChandraBindu\@font@selector
\def\cb{\ChandraBindu}

% Kaw e taw
\stepcounter{@axar@code}
\edef\@define@next#1#2{\def#1{{#2\char\the@axar@code}}}
\@define@next\kta\@font@selector

% Akar, ukar etc. to the above.
\def\ktaa{{\kta}A}
\def\ktA{{\kta}A}
\def\kti{i{\kta}}
\def\ktii{{\kta}I}
\def\ktI{{\kta}I}
\def\ktu{{\kta}u}
\def\ktuu{{\kta}U}
\def\ktU{{\kta}U}
\def\kte{{\char60}{\kta}}
\def\kto{{\char60}{\kta}A}



% Dnari
\stepcounter{@axar@code}
\edef\@define@next#1#2{\def#1{{#2\char\the@axar@code}}}
\@define@next\Dnari\@font@selector
\def\|{\Dnari}
