blob: e5a43efe0b56c106e15604a95e3eaffde2e3d46b (
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
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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
|
% mm.trs --- Malayalam transcription definition for TeX pre-processor
% copyright 1992 Jeroen Hellingman
% last edit: 19-DEC-1992
% This .TRS file defines the transcription used in the input text.
% It translates (sequences of) ASCII-characters (patterns)
% into the internal codes of the pre-processor.
% You should never change the (UNICODE based) codes of the letters,
% but you can redefine the transcription if you take care that the
% table does not define a pattern twice, or that it is ambigious
% otherwise.
@atbegin "<malayalam>" "<ml>" "$" % this starts Malayalam text in ASCII
@atend "</malayalam>" "</ml>" "$" % this ends Malayalam text in ASCII
% @table format:
% <pattern> <space> <command> <space> [ <parameter> ][ <comment> ]
@table
% vowels
"a" = "\d05" % a
"aa" = "\d06" % aa
"A" = "\d06"
"i" = "\d07" % i
"ii" = "\d08" % ii
"I" = "\d08"
"u" = "\d09"
"uu" = "\d10"
"U" = "\d10"
".r" = "\d11" % vocalic r
".r.r" = "\d96" % vocalic rr
".R" = "\d96"
".l" = "\d12" % vocalic l
".l.l" = "\d97" % vocalic ll
".L" = "\d97"
"e" = "\d14"
"ee" = "\d15"
"E" = "\d15"
"ai" = "\d16"
"o" = "\d18"
"oo" = "\d19"
"O" = "\d19"
"au" = "\d20"
"au\"" = "\d87" % au length mark
% modifiers
"M" = "\d02" % anusvara
"H" = "\d03" % visarga
% consonants will be print in cillu form if no vowel follows
"k" = "\d21"
"kh" = "\d22"
"g" = "\d23"
"gh" = "\d24"
"n\"" = "\d25" % nga
"c" = "\d26"
"ch" = "\d27"
"j" = "\d28"
"jh" = "\d29"
"n~" = "\d30" % nya
"T" = "\d31"
"Th" = "\d32"
"D" = "\d33"
"Dh" = "\d34"
"N" = "\d35"
"t" = "\d36"
"th" = "\d37"
"d" = "\d38"
"dh" = "\d39"
"n" = "\d40"
"n_" = "\d40"
"p" = "\d42"
"ph" = "\d43"
"f" = "\d43"
"b" = "\d44"
"bh" = "\d45"
"m" = "\d46"
"y" = "\d47"
"r" = "\d48"
"R" = "\d49"
"t_" = "\d49"
"l" = "\d50"
"L" = "\d51"
"zh" = "\d52"
"v" = "\d53"
"sh" = "\d54"
"S" = "\d55"
"s" = "\d56"
"h" = "\d57"
"+" = "\d77" % virama
%"u+" = "\d77" % half u
% digits
"0" = "\d102"
"1" = "\d103"
"2" = "\d104"
"3" = "\d105"
"4" = "\d106"
"5" = "\d107"
"6" = "\d108"
"7" = "\d109"
"8" = "\d110"
"9" = "\d111"
% special (arbitrary code positions)
"<<" = "\d127" % join
">>" = "\d126" % non join
"[]" = "\d125" % dotted circle
" " = "\d124" % space
"\t" = "\d124" % tab = space
% interpunction
% non malayalam things
">" f % eliminate ambiguities
"\\" t % copy TeX command
"^" f % forget about capital letters
"\\$" p "\\$"
"%" s % skip comment
"{" p "{"
"}" p "}"
"\n" p "\n" % newline
% things borrowed from roman
"." p "{\\RMF.}"
"," p "{\\RMF,}"
":" p "{\\RMF:}"
";" p "{\\RMF;}"
"`" p "{\\RMF`}"
"``" p "{\\RMF``}"
"'" p "{\\RMF'}"
"''" p "{\\RMF''}"
"-" p "{\\RMF-}"
"--" p "{\\RMF--}"
"---" p "{\\RMF---}"
"?" p "{\\RMF?}"
"!" p "{\\RMF!}"
"(" p "{\\RMF(}"
")" p "{\\RMF)}"
"[" p "{\\RMF[}"
"]" p "{\\RMF]}"
"/" p "{\\RMF/}"
"\\%" p "{\\RMF\\%}"
@end
|