summaryrefslogtreecommitdiffstats
path: root/input-methods/sulekha/transliteration.h
diff options
context:
space:
mode:
authorPraveen Arimbrathodiyil <pravi.a@gmail.com>2007-10-24 19:23:31 +0530
committerPraveen Arimbrathodiyil <pravi.a@gmail.com>2007-10-24 19:23:31 +0530
commita6c9cee15bd36912c5197efde938a134dc7039cb (patch)
tree47567582c7c1fe986c4e90e163516ec1af4166a6 /input-methods/sulekha/transliteration.h
parent4d9d2bf8b011c911295ca0edffedc23824128867 (diff)
downloadAnjaliOldLipi.git-a6c9cee15bd36912c5197efde938a134dc7039cb.tar.gz
AnjaliOldLipi.git-a6c9cee15bd36912c5197efde938a134dc7039cb.tar.xz
AnjaliOldLipi.git-a6c9cee15bd36912c5197efde938a134dc7039cb.zip
project got a name - sulekha!
Diffstat (limited to 'input-methods/sulekha/transliteration.h')
-rw-r--r--input-methods/sulekha/transliteration.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/input-methods/sulekha/transliteration.h b/input-methods/sulekha/transliteration.h
new file mode 100644
index 0000000..3d101da
--- /dev/null
+++ b/input-methods/sulekha/transliteration.h
@@ -0,0 +1,31 @@
+/* transliteration.h
+ *
+ * Copyright (C) 2007-2008
+ * Santhosh Thottingal<santhosh00@gmail.com>,
+ * Swathanthra Malayalam Computing.
+ *
+ * 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., 675 Mass Ave, Cambridge, MA 02139, USA.
+ */
+ /*----------------------- FUNCTIONS ----------------------------*/
+/*
+Transliterate the a dhvani phonetic string to malayalam.
+Algorithm:
+1)For all vowels, if it is at the 0th position print as it is
+2)If the vowel is in between/end of the string print the sign of the vowel except for A
+3)For all consonants print the malayalam character
+4)If a phonetic character is not identified print '?'
+5)Octal C escaped strings are used for printing the Unicode Malayalam string
+*/
+char *transliterate_ml (char *, int, int);