File: malyalam.sty

package info (click to toggle)
latex2html 2015-debian1-1
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 7,652 kB
  • ctags: 3,386
  • sloc: perl: 30,941; makefile: 429; sh: 155
file content (116 lines) | stat: -rw-r--r-- 4,159 bytes parent folder | download | duplicates (15)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
% malyalam.sty by Ross Moore <ross@mpce.mq.edu.au> $
%% $Log: 
%
% LaTeX2e package for typesetting Malayalam script
%
% using  EITHER
%
%    1.  patc  and  mm  pre-processors
%        Malayalam fonts: 
%        and the  mmmacs.tex  and  mmtrmacs.tex   macros
%        by Jeroen Hellingman
%
% OR
%
%    2.  Indica pre-processor, and sinhala fonts:  sinha, sinhb, sinhc
%        by Yannis Haralambous <Yannis.Haralambous@univ-lille1.fr>
%
%        and the  sinhala.sty  package for LaTeX-2e,
%        by Dominik Wujastyk <D.Wujastyk@ucl.ac.uk>
%
%        extended for Prasad Dharmasena's <pkd@isr.umd.edu>
%        `samanala'  transliteration scheme
%        by Vasantha Saparamadu <vsaparam@ocs.mq.edu.au>
%
%
% These resources are *not* included with this package.
% Obtain them from CTAN:  http//ctan.tug.org/ctan
%
% ===================================================================
% This package has a corresponding implementation for  LaTeX2HTML 
% called: malyalam.perl .
% With LaTeX2HTML the options on the \usepackage line specify which
% preprocessor and transcription mode to use.
%
% Usage:
%
%  \usepackage{malyalam}        %|  for text already pre-processed
%  \usepackage[mm]{malyalam}    %|  for Malayalam (reformed) script
%  \usepackage[ml]{malyalam}    %|  for traditional script
%  \usepackage[mlr]{malyalam}   %|  for reformed script
%  \usepackage[mtr]{malyalam}   %|  transcription only
%  \usepackage[patc]{malyalam}  %|  transcription only
%  \usepackage[ack]{malyalam}   %|  convert ACK transcription
%  \usepackage[preprocess]{malyalam} %| same as  [mm]
%
% for the Indica pre-processor:
%
%  \usepackage[indica]{malyalam}  %|  uses #ALIAS MALAYALAM M 
%  \usepackage[mal]{malyalam}     %|  uses #ALIAS MALAYALAM MAL
%  \usepackage[7bit]{malyalam}    %|  Velthuis' Hindi/Sanskri transcription
%  \usepackage[csx]{malyalam}     %|  8-bit Sanskrit extension of ISO 646
%  \usepackage[latex]{malyalam}   %|  standardized LaTeX transcription form
%  \usepackage[unicode]{malyalam} %|  ISO 10646-1 + Sinhalese extension
%  \usepackage[samanala]{malyalam}%|  Prasad Dharmasena's transliteration
%
% ===================================================================
%
\ProvidesFile{malyalam.sty}[1998/1/12]
%
\NeedsTeXFormat{LaTeX2e}
%
\def\LoadIndica{\RequirePackage{indica}}

\DeclareOption{preprocess}{\ds@malyalam}
\DeclareOption{mm}{\ds@malyalam}
\DeclareOption{ml}{\ds@malyalam}
\DeclareOption{mlr}{\ds@malyalam}
\DeclareOption{mtr}{\ds@malyalam}
\DeclareOption{patc}{\ds@malyalam}
\DeclareOption{ack}{\ds@malyalam}

\DeclareOption{indica}{\ds@indica}
\DeclareOption{7bit}{\ds@sevenbit}
\DeclareOption{csx}{\ds@csx}
\DeclareOption{latex}{\ds@latex}
\DeclareOption{samanala}{\ds@samanala}
\DeclareOption{unicode}{\ds@unicode}
\DeclareOption{mal}{\ds@mal}

\DeclareOption*{\relax\@latexerr{%
 `\CurrentOption' is an invalid option, using `preprocess' instead}%
  {Available Options:^^J^^J* Malayalam-TeX^^J
   preprocess,mm,ml,mlr,mtr,patc,ack^^J^^J* Indica^^J
   indica,7bit,csx,latex,unicode,samanala,mal^^J}\ds@malyalam}

\def\ds@indica{\@loadindica{malayalam}}
\def\ds@sevenbit{\@loadindica{malayalam,7bit}}
\def\ds@csx{\@loadindica{malayalam,csx}}
\def\ds@latex{\@loadindica{malayalam,latex}}
\def\ds@samanala{\@loadindica{malayalam,samanala}}
\def\ds@unicode{\@loadindica{malayalam,unicode}}
\def\ds@mal{\@loadindica{malayalam,mal}}
\def\@loadindica#1{\def\NeedsIndica{}\PassOptionsToPackage{#1}{indica}}

\def\ds@malyalam{\expandafter\ifx\csname malyalamloaded\endcsname\relax
  \def\malyalamloaded{}\IfFileExists{mmmacs}%
  {\AtBeginDocument{\input{mmmacs}}\@loadmalyalam}%
  {\@latexerr{Malayalam-TeX requires  mmmacs.tex  and  mmtrmacs.tex .}{}}%
 \fi}
%%
%%
\def\@loadmalyalam{%
 \InputIfFileExists{mmtrmacs}{}{\@latexerr{%
 The file  mmtrmacs.tex  could not be found; transcriptions may fail.}{}}%
 \font\sevenrm=cmr7
 \font\twelvesl=cmsl12
 \font\twelvebf=cmbx12
 \font\seventeenbf=cmbx12 at 17pt 
}

\ProcessOptions*
\expandafter\ifx\csname NeedsIndica\endcsname\relax
 \else\expandafter\LoadIndica\expandafter\endinput\fi
\expandafter\ifx\csname malyalamloaded\endcsname\relax\expandafter\ds@malyalam\fi
\endinput