%
% Copyright (C) 2008-2001 Azzeddine LAZREK. All rights reserved.
%
% 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 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.
%
% This program consists of all files listed in the file readmera.tex.
%
% rydarab.sty
% This file belongs to the RyDArab package.
%


\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{rydarab}%
    [2008/03/08 v1.7 Arabic mathematical expressions RyDArab package]

% Package's options
\DeclareOption{arabmath}{\AtEndOfPackage{\amarabmath}}
\DeclareOption{latinmath}{\AtEndOfPackage{\amlatinmath}}
\DeclareOption{warabnum}{\AtEndOfPackage{\amwarabnum}}
\DeclareOption{oldstylenum}{\AtEndOfPackage{\amoldstylenum}}
\DeclareOption{earabnum}{\AtEndOfPackage{\amearabnum}}
\DeclareOption{alphwithdots}{\AtEndOfPackage{\alphwithdots}}
\DeclareOption{alphwithoutdots}{\AtEndOfPackage{\alphwithoutdots}}
\DeclareOption{funwithdots}{\AtEndOfPackage{\funwithdots}}
\DeclareOption{funwithoutdots}{\AtEndOfPackage{\funwithoutdots}}
\DeclareOption*{\PackageWarning{rydarab}%
               {Unknown option `\CurrentOption'}}
%\ExecuteOptions{arabmath,warabnum,alphwithoutdots,alphwithoutdots}
\ProcessOptions\relax

%
\def\ifundefined#1{\expandafter\ifx\csname#1\endcsname\relax}

% Choise of ArabTeX
 \ifx \RL \undefined
  \else
  \input amarabtexwords

%      \input amxnsh
       \usepackage{transtec}
% Arabi
%       \setcode{transtec}
       \def\arabmathA{\setcode{transtec}\arabmath}
       \newenvironment{arabyenv}{\begin{arabtext}}{\end{arabtext}}
       \let\araby=\RL
 \fi

% Choise of Omega
% \ifx \beginR \undefined
%  \else
%       \input amomsea
%       \ocp\transtecUni=transtec
%       \ocp\UniCUni=uni2cuni
%       \ocp\CUniArab=cuni2oar
%       \ocplist\transtecOCP=
%           \addbeforeocplist 1 \transtecUni
%           \addbeforeocplist 1 \UniCUni
%           \addbeforeocplist 1 \CUniArab
%       \nullocplist
%       \newenvironment{arabyenv}{%
%           \pushocplist\transtecOCP
%           \fontfamily{omarb}\selectfont%
%           \beginR}{\endR}
%       \let\araby=\arabyenv
%       \let\novocalize=\relax
%  \fi

% Choise of Arabi
 \ifx \textRL \undefined
  \else
\input amarabiwords
%%       \usepackage{transtec}
% Arabi
%       \setcode{transtec}
%%       \def\arabmathA{\setcode{transtec}\arabmath}
       \newenvironment{arabyenv}{\begin{otherlanguage}{arabic}}{\end{otherlanguage}}
       \let\araby=\textRL
 \fi

% RyDArab require ArabTeX or Omega or Arabi
 \ifundefined{araby}
  \message{>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>  <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<}
  \message{>>>>>>>>>>>> RyDArab require ArabTeX or Omega or Arabi <<<<<<<<<}
  \message{>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>  <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<}
       \newenvironment{arabyenv}{}{}
       \def\araby#1{{#1}}
       \let\novocalize=\relax
       \let\fullvocalize=\relax
       \def\setcode#1{}
%  \endinput
 \fi

%

\usepackage{ramzarab}
\input amramzarab
\input amfontla
\input amcomman
\input amrename
\input updatela


\endinput
