% omal.sty -- Macros for typesetting Malayalam using Omega
%
% Alex A.J. <indicTeX@gmail.com>
%
%
%
%
%
% Copyright Alex A.J.
%
% This program may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.2
% of this license or (at your option) any later version.
% The latest version of this license is in
%   http://www.latex-project.org/lppl.txt
% and version 1.2 or later is part of all distributions of LaTeX
% version 1999/12/01 or later.
%
%



\def\eng#1{\clearocplists\fontfamily{\rmdefault}\selectfont{}#1}
\def\english{\clearocplists\fontfamily{\rmdefault}\selectfont}

\ocp\malA=mal-uni01
\ocp\malB=mal-uni02
\ocp\unitokeli=mal-uni2keli
\ocp\unitorch=mal-uni2rch
\ocp\unitooldrch=mal-uni2oldrch
\ocp\unitoism=mal-uni2ism
\ocp\unitoildc=mal-uni2ildc
\ocp\malutf=inutf8

\ocplist\malkeli=
%\addbeforeocplist 1001 \malutf
\addbeforeocplist 1002 \malA
\addbeforeocplist 1003 \malB
\addbeforeocplist 1004 \unitokeli
\nullocplist

\ocplist\malrch=
%\addbeforeocplist 1001 \malutf
\addbeforeocplist 1002 \malA
\addbeforeocplist 1003 \malB
\addbeforeocplist 1004 \unitorch
\nullocplist

\ocplist\maloldrch=
%\addbeforeocplist 1001 \malutf
\addbeforeocplist 1002 \malA
\addbeforeocplist 1003 \malB
\addbeforeocplist 1004 \unitooldrch
\nullocplist

\ocplist\malism=
%\addbeforeocplist 1001 \malutf
\addbeforeocplist 1002 \malA
\addbeforeocplist 1003 \malB
\addbeforeocplist 1004 \unitoism
\nullocplist

\ocplist\malildc=
%\addbeforeocplist 1001 \malutf
\addbeforeocplist 1002 \malA
\addbeforeocplist 1003 \malB
\addbeforeocplist 1004 \unitoildc
\nullocplist

\InputTranslation currentfile \malutf

\def\K#1{\kern#1em}
\def\X{\leavevmode\hbox}
\def\<#1>{\leavevmode{\char#1}}

\AtBeginDocument{\InputTranslation currentfile \malutf}

\fontencoding{U}\fontfamily{mr2}\selectfont
\fontencoding{U}\fontfamily{mr3}\selectfont
\fontencoding{U}\fontfamily{mr4}\selectfont
\fontencoding{U}\fontfamily{mr5}\selectfont
\fontencoding{U}\fontfamily{mr6}\selectfont
\fontencoding{\encodingdefault}\fontfamily{\rmdefault}\selectfont

% The default font (Rachana)
\def\mal{\fontencoding{U}\fontfamily{mr1}\selectfont\pushocplist\malrch}


\def\rchB{\clearocplists\fontencoding{U}\fontfamily{mr2}\selectfont}
\def\rchC{\clearocplists\fontencoding{U}\fontfamily{mr3}\selectfont}
\def\rchD{\clearocplists\fontencoding{U}\fontfamily{mr4}\selectfont}
\def\rchE{\clearocplists\fontencoding{U}\fontfamily{mr5}\selectfont}
\def\rchF{\clearocplists\fontencoding{U}\fontfamily{mr6}\selectfont}

%Fonts from ILDC CD-ROM

\def\ambili{\pushocplist\malildc\fontencoding{U}\fontfamily{mlgistambili}\selectfont}
\def\ashtamudi{\pushocplist\malildc\fontencoding{U}\fontfamily{mlgistashtamudi}\selectfont}
\def\aswathi{\pushocplist\malildc\fontencoding{U}\fontfamily{mlgistaswathi}\selectfont}
\def\bhanu{\pushocplist\malildc\fontencoding{U}\fontfamily{mlgistbhanu}\selectfont}
\def\chippi{\pushocplist\malildc\fontencoding{U}\fontfamily{mlgistchippi}\selectfont}
\def\karthika{\pushocplist\malildc\fontencoding{U}\fontfamily{mlgistkarthika}\selectfont}
\def\kaumudi{\pushocplist\malildc\fontencoding{U}\fontfamily{mlgistkaumudi}\selectfont}
\def\kottakkal{\pushocplist\malildc\fontencoding{U}\fontfamily{mlgistkottakkal}\selectfont}
\def\makam{\pushocplist\malildc\fontencoding{U}\fontfamily{mlgistmakam}\selectfont}
\def\malavika{\pushocplist\malildc\fontencoding{U}\fontfamily{mlgistmalavika}\selectfont}
\def\mridula{\pushocplist\malildc\fontencoding{U}\fontfamily{mlgistmridula}\selectfont}
\def\payippad{\pushocplist\malildc\fontencoding{U}\fontfamily{mlgistpayippad}\selectfont}
\def\periyar{\pushocplist\malildc\fontencoding{U}\fontfamily{mlgistperiyar}\selectfont}
\def\revathi{\pushocplist\malildc\fontencoding{U}\fontfamily{mlgistrevathi}\selectfont}
\def\sabari{\pushocplist\malildc\fontencoding{U}\fontfamily{mlgistsabari}\selectfont}
\def\sruthy{\pushocplist\malildc\fontencoding{U}\fontfamily{mlgistsruthy}\selectfont}

%Fonts from C-DAC ISM

\def\aathira{\pushocplist\malism\fontencoding{U}\fontfamily{mlaathira}\selectfont}
\def\ISMambili{\pushocplist\malism\fontencoding{U}\fontfamily{mlambili}\selectfont}
\def\anakha{\pushocplist\malism\fontencoding{U}\fontfamily{mlanakha}\selectfont}
\def\anjali{\pushocplist\malism\fontencoding{U}\fontfamily{mlanjali}\selectfont}
\def\aparna{\pushocplist\malism\fontencoding{U}\fontfamily{mlaparna}\selectfont}
\def\ISMashtamudi{\pushocplist\malism\fontencoding{U}\fontfamily{mlashtamudi}\selectfont}
\def\ISMaswathi{\pushocplist\malism\fontencoding{U}\fontfamily{mlaswathi}\selectfont}
\def\atchu{\pushocplist\malism\fontencoding{U}\fontfamily{mlatchu}\selectfont}
\def\ayilyambold{\pushocplist\malism\fontencoding{U}\fontfamily{mlayilyambold}\selectfont}
\def\beckal{\pushocplist\malism\fontencoding{U}\fontfamily{mlbeckal}\selectfont}
\def\bhavana{\pushocplist\malism\fontencoding{U}\fontfamily{mlbhavana}\selectfont}
\def\chandrika{\pushocplist\malism\fontencoding{U}\fontfamily{mlchandrika}\selectfont}
\def\chithira{\pushocplist\malism\fontencoding{U}\fontfamily{mlchithira}\selectfont}
\def\devika{\pushocplist\malism\fontencoding{U}\fontfamily{mldevika}\selectfont}
\def\gauri{\pushocplist\malism\fontencoding{U}\fontfamily{mlgauri}\selectfont}
\def\gopika{\pushocplist\malism\fontencoding{U}\fontfamily{mlgopika}\selectfont}
\def\guruvayur{\pushocplist\malism\fontencoding{U}\fontfamily{mlguruvayur}\selectfont}
\def\indulekha{\pushocplist\malism\fontencoding{U}\fontfamily{mlindulekha}\selectfont}
\def\jaya{\pushocplist\malism\fontencoding{U}\fontfamily{mljaya}\selectfont}
\def\jyothy{\pushocplist\malism\fontencoding{U}\fontfamily{mljyothy}\selectfont}
\def\jyotsna{\pushocplist\malism\fontencoding{U}\fontfamily{mljyotsna}\selectfont}
\def\kala{\pushocplist\malism\fontencoding{U}\fontfamily{mlkala}\selectfont}
\def\kamini{\pushocplist\malism\fontencoding{U}\fontfamily{mlkamini}\selectfont}
\def\kanika{\pushocplist\malism\fontencoding{U}\fontfamily{mlkanika}\selectfont}
\def\ISMkarthika{\pushocplist\malism\fontencoding{U}\fontfamily{mlkarthika}\selectfont}
\def\ISMkaumudi{\pushocplist\malism\fontencoding{U}\fontfamily{mlkaumudi}\selectfont}
\def\keerthi{\pushocplist\malism\fontencoding{U}\fontfamily{mlkeerthi}\selectfont}
\def\leela{\pushocplist\malism\fontencoding{U}\fontfamily{mlleela}\selectfont}
\def\ISMmalavika{\pushocplist\malism\fontencoding{U}\fontfamily{mlmalavika}\selectfont}
\def\mayoori{\pushocplist\malism\fontencoding{U}\fontfamily{mlmayoori}\selectfont}
\def\nalini{\pushocplist\malism\fontencoding{U}\fontfamily{mlnalini}\selectfont}
\def\nandini{\pushocplist\malism\fontencoding{U}\fontfamily{mlnandini}\selectfont}
\def\nanditha{\pushocplist\malism\fontencoding{U}\fontfamily{mlnanditha}\selectfont}
\def\nila{\pushocplist\malism\fontencoding{U}\fontfamily{mlnila}\selectfont}
\def\onam{\pushocplist\malism\fontencoding{U}\fontfamily{mlonam}\selectfont}
\def\ISMperiyar{\pushocplist\malism\fontencoding{U}\fontfamily{mlperiyar}\selectfont}
\def\pooram{\pushocplist\malism\fontencoding{U}\fontfamily{mlpooram}\selectfont}
\def\poornima{\pushocplist\malism\fontencoding{U}\fontfamily{mlpoornima}\selectfont}
\def\ravivarma{\pushocplist\malism\fontencoding{U}\fontfamily{mlravivarma}\selectfont}
\def\ISMrevathi{\pushocplist\malism\fontencoding{U}\fontfamily{mlrevathi}\selectfont}
\def\rohini{\pushocplist\malism\fontencoding{U}\fontfamily{mlrohini}\selectfont}
\def\ISMsabari{\pushocplist\malism\fontencoding{U}\fontfamily{mlsabari}\selectfont}
\def\sankara{\pushocplist\malism\fontencoding{U}\fontfamily{mlsankara}\selectfont}
\def\sarada{\pushocplist\malism\fontencoding{U}\fontfamily{mlsarada}\selectfont}
\def\ISMsruthy{\pushocplist\malism\fontencoding{U}\fontfamily{mlsruthy}\selectfont}
\def\sugatha{\pushocplist\malism\fontencoding{U}\fontfamily{mlsugatha}\selectfont}
\def\suparna{\pushocplist\malism\fontencoding{U}\fontfamily{mlsuparna}\selectfont}
\def\surya{\pushocplist\malism\fontencoding{U}\fontfamily{mlsurya}\selectfont}
\def\swathy{\pushocplist\malism\fontencoding{U}\fontfamily{mlswathy}\selectfont}
\def\theyyam{\pushocplist\malism\fontencoding{U}\fontfamily{mltheyyam}\selectfont}
\def\thiruvathira{\pushocplist\malism\fontencoding{U}\fontfamily{mlthiruvathira}\selectfont}
\def\thunchan{\pushocplist\malism\fontencoding{U}\fontfamily{mlthunchan}\selectfont}
\def\vaisali{\pushocplist\malism\fontencoding{U}\fontfamily{mlvaisali}\selectfont}
\def\varsha{\pushocplist\malism\fontencoding{U}\fontfamily{mlvarsha}\selectfont}
\def\vinay{\pushocplist\malism\fontencoding{U}\fontfamily{mlvinay}\selectfont}
\def\visakham{\pushocplist\malism\fontencoding{U}\fontfamily{mlvisakham}\selectfont}
\def\vishu{\pushocplist\malism\fontencoding{U}\fontfamily{mlvishu}\selectfont}
\def\yashasri{\pushocplist\malism\fontencoding{U}\fontfamily{mlyashasri}\selectfont}
%
%
%
\def\keli{\pushocplist\malkeli\fontencoding{U}\fontfamily{mkl}\selectfont}
\def\rachana{\pushocplist\malrch\fontencoding{U}\fontfamily{mr1}\selectfont}
\def\oldlipi{\pushocplist\maloldrch\fontencoding{U}\fontfamily{mr1}\selectfont}
%
\DeclareOption{keli}{%
\def\mal{\fontencoding{U}\fontfamily{mkl}\selectfont\pushocplist\malkeli}
}
\DeclareOption{rachana}{%
\def\mal{\fontencoding{U}\fontfamily{mr1}\selectfont\pushocplist\malrch}
}
\DeclareOption{oldlipi}{%
\def\mal{\fontencoding{U}\fontfamily{mr1}\selectfont\pushocplist\maloldrch}
}
%
%
% C-DAC Fonts from ILDC CD-ROM
%
\DeclareOption{ambili}{%
\def\mal{\fontencoding{U}\fontfamily{mlgistambili}\selectfont\pushocplist\malildc}
}
\DeclareOption{ashtamudi}{%
\def\mal{\fontencoding{U}\fontfamily{mlgistashtamudi}\selectfont\pushocplist\malildc}
}
\DeclareOption{aswathi}{%
\def\mal{\fontencoding{U}\fontfamily{mlgistaswathi}\selectfont\pushocplist\malildc}
}
\DeclareOption{bhanu}{%
\def\mal{\fontencoding{U}\fontfamily{mlgistbhanu}\selectfont\pushocplist\malildc}
}
\DeclareOption{chippi}{%
\def\mal{\fontencoding{U}\fontfamily{mlgistchippi}\selectfont\pushocplist\malildc}
}
\DeclareOption{karthika}{%
\def\mal{\fontencoding{U}\fontfamily{mlgistkarthika}\selectfont\pushocplist\malildc}
}
\DeclareOption{kaumudi}{%
\def\mal{\fontencoding{U}\fontfamily{mlgistkaumudi}\selectfont\pushocplist\malildc}
}
\DeclareOption{kottakkal}{%
\def\mal{\fontencoding{U}\fontfamily{mlgistkottakkal}\selectfont\pushocplist\malildc}
}
\DeclareOption{makam}{%
\def\mal{\fontencoding{U}\fontfamily{mlgistmakam}\selectfont\pushocplist\malildc}
}
\DeclareOption{malavika}{%
\def\mal{\fontencoding{U}\fontfamily{mlgistmalavika}\selectfont\pushocplist\malildc}
}
\DeclareOption{mridula}{%
\def\mal{\fontencoding{U}\fontfamily{mlgistmridula}\selectfont\pushocplist\malildc}
}
\DeclareOption{payippad}{%
\def\mal{\fontencoding{U}\fontfamily{mlgistpayippad}\selectfont\pushocplist\malildc}
}
\DeclareOption{periyar}{%
\def\mal{\fontencoding{U}\fontfamily{mlgistperiyar}\selectfont\pushocplist\malildc}
}
\DeclareOption{revathi}{%
\def\mal{\fontencoding{U}\fontfamily{mlgistrevathi}\selectfont\pushocplist\malildc}
}
\DeclareOption{sabari}{%
\def\mal{\fontencoding{U}\fontfamily{mlgistsabari}\selectfont\pushocplist\malildc}
}
\DeclareOption{sruthy}{%
\def\mal{\fontencoding{U}\fontfamily{mlgistsruthy}\selectfont\pushocplist\malildc}
}
% Fonts from CDAC ISM
%
\DeclareOption{aathira}{%
\def\mal{\fontencoding{U}\fontfamily{mlaathira}\selectfont\pushocplist\malism}
}
\DeclareOption{ISMambili}{%
\def\mal{\fontencoding{U}\fontfamily{mlambili}\selectfont\pushocplist\malism}
}
\DeclareOption{anakha}{%
\def\mal{\fontencoding{U}\fontfamily{mlanakha}\selectfont\pushocplist\malism}
}
\DeclareOption{anjali}{%
\def\mal{\fontencoding{U}\fontfamily{mlanjali}\selectfont\pushocplist\malism}
}
\DeclareOption{aparna}{%
\def\mal{\fontencoding{U}\fontfamily{mlaparna}\selectfont\pushocplist\malism}
}
\DeclareOption{ISMashtamudi}{%
\def\mal{\fontencoding{U}\fontfamily{mlashtamudi}\selectfont\pushocplist\malism}
}
\DeclareOption{ISMaswathi}{%
\def\mal{\fontencoding{U}\fontfamily{mlaswathi}\selectfont\pushocplist\malism}
}
\DeclareOption{atchu}{%
\def\mal{\fontencoding{U}\fontfamily{mlatchu}\selectfont\pushocplist\malism}
}
\DeclareOption{ayilyambold}{%
\def\mal{\fontencoding{U}\fontfamily{mlayilyambold}\selectfont\pushocplist\malism}
}
\DeclareOption{beckal}{%
\def\mal{\fontencoding{U}\fontfamily{mlbeckal}\selectfont\pushocplist\malism}
}
\DeclareOption{bhavana}{%
\def\mal{\fontencoding{U}\fontfamily{mlbhavana}\selectfont\pushocplist\malism}
}
\DeclareOption{chandrika}{%
\def\mal{\fontencoding{U}\fontfamily{mlchandrika}\selectfont\pushocplist\malism}
}
\DeclareOption{chithira}{%
\def\mal{\fontencoding{U}\fontfamily{mlchithira}\selectfont\pushocplist\malism}
}
\DeclareOption{devika}{%
\def\mal{\fontencoding{U}\fontfamily{mldevika}\selectfont\pushocplist\malism}
}
\DeclareOption{gauri}{%
\def\mal{\fontencoding{U}\fontfamily{mlgauri}\selectfont\pushocplist\malism}
}
\DeclareOption{gopika}{%
\def\mal{\fontencoding{U}\fontfamily{mlgopika}\selectfont\pushocplist\malism}
}
\DeclareOption{guruvayur}{%
\def\mal{\fontencoding{U}\fontfamily{mlguruvayur}\selectfont\pushocplist\malism}
}
\DeclareOption{indulekha}{%
\def\mal{\fontencoding{U}\fontfamily{mlindulekha}\selectfont\pushocplist\malism}
}
\DeclareOption{jaya}{%
\def\mal{\fontencoding{U}\fontfamily{mljaya}\selectfont\pushocplist\malism}
}
\DeclareOption{jyothy}{%
\def\mal{\fontencoding{U}\fontfamily{mljyothy}\selectfont\pushocplist\malism}
}
\DeclareOption{jyotsna}{%
\def\mal{\fontencoding{U}\fontfamily{mljyotsna}\selectfont\pushocplist\malism}
}
\DeclareOption{kala}{%
\def\mal{\fontencoding{U}\fontfamily{mlkala}\selectfont\pushocplist\malism}
}
\DeclareOption{kamini}{%
\def\mal{\fontencoding{U}\fontfamily{mlkamini}\selectfont\pushocplist\malism}
}
\DeclareOption{kanika}{%
\def\mal{\fontencoding{U}\fontfamily{mlkanika}\selectfont\pushocplist\malism}
}
\DeclareOption{ISMkarthika}{%
\def\mal{\fontencoding{U}\fontfamily{mlkarthika}\selectfont\pushocplist\malism}
}
\DeclareOption{ISMkaumudi}{%
\def\mal{\fontencoding{U}\fontfamily{mlkaumudi}\selectfont\pushocplist\malism}
}
\DeclareOption{keerthi}{%
\def\mal{\fontencoding{U}\fontfamily{mlkeerthi}\selectfont\pushocplist\malism}
}
\DeclareOption{leela}{%
\def\mal{\fontencoding{U}\fontfamily{mlleela}\selectfont\pushocplist\malism}
}
\DeclareOption{ISMmalavika}{%
\def\mal{\fontencoding{U}\fontfamily{mlmalavika}\selectfont\pushocplist\malism}
}
\DeclareOption{mayoori}{%
\def\mal{\fontencoding{U}\fontfamily{mlmayoori}\selectfont\pushocplist\malism}
}
\DeclareOption{nalini}{%
\def\mal{\fontencoding{U}\fontfamily{mlnalini}\selectfont\pushocplist\malism}
}
\DeclareOption{nandini}{%
\def\mal{\fontencoding{U}\fontfamily{mlnandini}\selectfont\pushocplist\malism}
}
\DeclareOption{nanditha}{%
\def\mal{\fontencoding{U}\fontfamily{mlnanditha}\selectfont\pushocplist\malism}
}
\DeclareOption{nila}{%
\def\mal{\fontencoding{U}\fontfamily{mlnila}\selectfont\pushocplist\malism}
}
\DeclareOption{onam}{%
\def\mal{\fontencoding{U}\fontfamily{mlonam}\selectfont\pushocplist\malism}
}
\DeclareOption{ISMperiyar}{%
\def\mal{\fontencoding{U}\fontfamily{mlperiyar}\selectfont\pushocplist\malism}
}
\DeclareOption{pooram}{%
\def\mal{\fontencoding{U}\fontfamily{mlpooram}\selectfont\pushocplist\malism}
}
\DeclareOption{poornima}{%
\def\mal{\fontencoding{U}\fontfamily{mlpoornima}\selectfont\pushocplist\malism}
}
\DeclareOption{ravivarma}{%
\def\mal{\fontencoding{U}\fontfamily{mlravivarma}\selectfont\pushocplist\malism}
}
\DeclareOption{ISMrevathi}{%
\def\mal{\fontencoding{U}\fontfamily{mlrevathi}\selectfont\pushocplist\malism}
}
\DeclareOption{rohini}{%
\def\mal{\fontencoding{U}\fontfamily{mlrohini}\selectfont\pushocplist\malism}
}
\DeclareOption{ISMsabari}{%
\def\mal{\fontencoding{U}\fontfamily{mlsabari}\selectfont\pushocplist\malism}
}
\DeclareOption{sankara}{%
\def\mal{\fontencoding{U}\fontfamily{mlsankara}\selectfont\pushocplist\malism}
}
\DeclareOption{sarada}{%
\def\mal{\fontencoding{U}\fontfamily{mlsarada}\selectfont\pushocplist\malism}
}
\DeclareOption{ISMsruthy}{%
\def\mal{\fontencoding{U}\fontfamily{mlsruthy}\selectfont\pushocplist\malism}
}
\DeclareOption{sugatha}{%
\def\mal{\fontencoding{U}\fontfamily{mlsugatha}\selectfont\pushocplist\malism}
}
\DeclareOption{suparna}{%
\def\mal{\fontencoding{U}\fontfamily{mlsuparna}\selectfont\pushocplist\malism}
}
\DeclareOption{surya}{%
\def\mal{\fontencoding{U}\fontfamily{mlsurya}\selectfont\pushocplist\malism}
}
\DeclareOption{swathy}{%
\def\mal{\fontencoding{U}\fontfamily{mlswathy}\selectfont\pushocplist\malism}
}
\DeclareOption{theyyam}{%
\def\mal{\fontencoding{U}\fontfamily{mltheyyam}\selectfont\pushocplist\malism}
}
\DeclareOption{thiruvathira}{%
\def\mal{\fontencoding{U}\fontfamily{mlthiruvathira}\selectfont\pushocplist\malism}
}
\DeclareOption{thunchan}{%
\def\mal{\fontencoding{U}\fontfamily{mlthunchan}\selectfont\pushocplist\malism}
}
\DeclareOption{vaisali}{%
\def\mal{\fontencoding{U}\fontfamily{mlvaisali}\selectfont\pushocplist\malism}
}
\DeclareOption{varsha}{%
\def\mal{\fontencoding{U}\fontfamily{mlvarsha}\selectfont\pushocplist\malism}
}
\DeclareOption{vinay}{%
\def\mal{\fontencoding{U}\fontfamily{mlvinay}\selectfont\pushocplist\malism}
}
\DeclareOption{visakham}{%
\def\mal{\fontencoding{U}\fontfamily{mlvisakham}\selectfont\pushocplist\malism}
}
\DeclareOption{vishu}{%
\def\mal{\fontencoding{U}\fontfamily{mlvishu}\selectfont\pushocplist\malism}
}
\DeclareOption{yashasri}{%
\def\mal{\fontencoding{U}\fontfamily{mlyashasri}\selectfont\pushocplist\malism}
}
%
%
\DeclareOption{malheads}{%
\def\contentsname{\mal ഉള്ളടക്കം}
\def\chaptername{\mal അദ്ധ്യായം}
\def\listfigurename{\mal ചിത്രങ്ങള്‍}
\def\listtablename{\mal ടേബിളുകള്‍}
\def\tablename{\mal പട്ടിക}
\def\figurename{\mal ചിത്രം}
\def\partname{\mal ഭാഗം}
\def\abstractname{\mal സംഗ്രഹം}
\def\appendixname{\mal അനുബന്ധം}
}
%
\ProcessOptions\relax



\endinput

%%%%%% end of omal.sty
