summaryrefslogtreecommitdiffstats
path: root/mlym.sty
blob: a6c00816c600c0adbb10b30f066dc3497b526231 (plain)
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
%%%%%% mlym.sty -- For Unicode Malayalam using xelatex
%
% suresh p <suresh@ippimail.com>
%
%
% Copyright 2008,suresh p
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3
% 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.3 or later is part of all distributions of LaTeX
% version 2005/12/01 or later.
%
\ProvidesFile{mlym.sty}

\RequirePackage{fontspec}%
%
% Define some fonts
%
\def\meera{\fontspec[Script=Malayalam]{Meera}}
\def\rachana{\fontspec[Script=Malayalam]{Rachana}}
\def\suruma{\fontspec[Script=Malayalam]{suruma}}
\def\dyuthi{\fontspec[Script=Malayalam]{Dyuthi}}
\def\raghu{\fontspec[Script=Malayalam]{RaghuMalayalam}}
%
% Contents etc.
%
\def\contentsname{ഉള്ളടക്കം}
\def\chaptername{അദ്ധ്യായം}
\def\listfigurename{ചിത്രങ്ങള്‍}
\def\listtablename{പട്ടികകള്‍}
\def\tablename{പട്ടിക}
\def\figurename{ചിത്രം}
\def\partname{ഭാഗം}
\def\abstractname{സംഗ്രഹം}
\def\indexname{സൂചിക}
\def\appendixname{അനുബന്ധം}
%
% Set the default fonts options
%
\DeclareOption{rachana}{%
\setmainfont[Script=Malayalam]{Rachana}
}

\DeclareOption{meera}{%
\setmainfont[Script=Malayalam]{Meera}
}

\DeclareOption{suruma}{%
\setmainfont[Script=Malayalam]{suruma}
}

\DeclareOption{dyuthi}{%
\setmainfont[Script=Malayalam]{Dyuthi}
}

\DeclareOption{raghu}{%
\setmainfont[Script=Malayalam]{RaghuMalayalam}
}


%
% This results in some ugly spacing issues :(
%
%\pretolerance=8000%
%\tolerance=10000%
%\hyphenpenalty=9000%


%
%
\ProcessOptions\relax

\endinput

%
%%%%% mlym.sty