qemacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemacs-devel] Changes to qemacs/indic.c


From: Charlie Gordon
Subject: [Qemacs-devel] Changes to qemacs/indic.c
Date: Wed, 11 May 2005 11:12:17 -0400

Index: qemacs/indic.c
diff -u qemacs/indic.c:1.1.1.1 qemacs/indic.c:1.2
--- qemacs/indic.c:1.1.1.1      Sat May 29 10:18:09 2004
+++ qemacs/indic.c      Wed May 11 15:12:14 2005
@@ -65,7 +65,7 @@
     /* Rule 1 : dead consonant rule */
     q = buf;
     len1 = len - 1;
-    for(i=0;i<len;i++) {
+    for (i = 0; i < len; i++) {
         cc = str[i];
         if (is_consonant(cc) && i < len1 && str[i+1] == VIRAMA) {
             *q++ = cc + DEAD_CONSONANT_OFFSET;
@@ -77,7 +77,7 @@
 
     /************ RA rules */
     /* XXX: rule 3, 4, 7 should be handled as ligatures */
-    for(i=0;i<len1;i++) {
+    for (i = 0; i < len1; i++) {
         /* Rule 2 */
         if (buf[i] == RA_DEAD && 
             (is_ind_vowel(buf[i+1]) || is_consonant(buf[i+1]))) {
@@ -111,7 +111,7 @@
     }
 
     /* convert dead consonant to half consonants */
-    for(i=0;i<len1;i++) {
+    for (i = 0; i < len1; i++) {
         if (is_dead_consonant(buf[i]) && 
             (i == (len1 - 1) ||
              buf[i+1] == ZERO_WIDTH_JOINER || 
@@ -123,7 +123,7 @@
 
     /* output result and update ctog */
     j = 0;
-    for(i=0;i<len;i++) {
+    for (i = 0; i < len; i++) {
         c = buf[i];
         if (c != 0) {
             ctog[i] = j;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]