From 49580bf92860d0e2df036cf2e294f6b26528a5d2 Mon Sep 17 00:00:00 2001 From: Santhosh Thottingal Date: Sat, 27 Oct 2007 15:36:57 -0400 Subject: Rearranged the code , config , make files preapred, addon to gtktextview added transliteration completed. TODO: GUI coding and integration --- input-methods/sulekha/src/transliteration.h | 31 +++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 input-methods/sulekha/src/transliteration.h (limited to 'input-methods/sulekha/src/transliteration.h') diff --git a/input-methods/sulekha/src/transliteration.h b/input-methods/sulekha/src/transliteration.h new file mode 100644 index 0000000..946894d --- /dev/null +++ b/input-methods/sulekha/src/transliteration.h @@ -0,0 +1,31 @@ +/* Transliteration.h + * + * Copyright (C) 2007-2008 + * Santhosh Thottingal, + * Praveen Arimprathodiyil + * 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 3 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +*/ +/* +Transliterate the a 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); -- cgit