// This file is part of Indian Language Converter

// Indian Language Converter is free software; you can redistribute it
// and/or modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2 of
// the License, or (at your option) any later version.

// Copyright (C) 2005, 2006 Vijay Lakshminarayanan <liyer.vijay@gmail.com>

// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License as
// published by the Free Software Foundation; either version 2 of the
// License, or (at your option) any later version.

// This program is distributed in the hope that it will be useful, but
// WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
// General Public License for more details.

// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
// 02110-1301, USA.

var vowels = "(A)|(H)|(I)|(M)|(R)|(U)|(\\:)|(\\|(\\|)?)|(a((i)|(u))?)|(e)|(i)|(lR)|(o(M)?)|(u)"
var consonants = "(C)|(D(h)?)|(G)|(J)|(N)|(S)|(T(h)?)|(b(h)?)|(c)|(d(h)?)|(g(h)?)|(h)|(j(h)?)|(k(h)?)|(l)|(m)|(n)|(p(h)?)|(r)|(s)|(t(h)?)|(v)|(y)|(z)"
var letter_codes = {
"~a" : "&#2309;",
"~A" : "&#2310;",
"~i" : "&#2311;",
"~I" : "&#2312;",
"~u" : "&#2313;",
"~U" : "&#2314;",
"~R" : "&#2315;",
"~lR" : "&#2316",
"~e" : "&#2319;",
"~ai" : "&#2320;",
"~o" : "&#2323;",
"~au" : "&#2324;",
"a" : "",
"A" : "&#2366;",
"i" : "&#2367;",
"I" : "&#2368;",
"u" : "&#2369;",
"U" : "&#2370;",
"R" : "&#2371;",
"lR" : "&#2372;",
"e" : "&#2375;",
"ai" : "&#2376;",
"o" : "&#2379;",
"au" : "&#2380;",
"k" : "&#2325;",
"kh" : "&#2326;",
"g" : "&#2327;",
"gh" : "&#2328;",
"G" : "&#2329;",
"c" : "&#2330;",
"C" : "&#2331;",
"j" : "&#2332;",
"jh" : "&#2333;",
"J" : "&#2334;",
"T" : "&#2335;",
"Th" : "&#2336;",
"D" : "&#2337;",
"Dh" : "&#2338;",
"N" : "&#2339;",
"t" : "&#2340;",
"th" : "&#2341;",
"d" : "&#2342;",
"dh" : "&#2343;",
"n" : "&#2344;",
"p" : "&#2346;",
"ph" : "&#2347;",
"b" : "&#2348;",
"bh" : "&#2349;",
"m" : "&#2350;",
"y" : "&#2351;",
"r" : "&#2352;",
"l" : "&#2354;",
"v" : "&#2357;",
"z" : "&#2358;",
"S" : "&#2359;",
"s" : "&#2360;",
"h" : "&#2361;",
"H" : "&#2307;",
":" : "&#2307;",
"M" : "&#2306;",
"|" : "&#2404;",
"||" : "&#2405;",
"oM" : "&#2384;",
"~H" : "&#2307;",
"~:" : "&#2307;",
"~M" : "&#2306;",
"~|" : "&#2404;",
"~||" : "&#2405;",
"~oM" : "&#2384;",
"*" : "&#2381;"
}

