[liblouis-liblouisxml] [liblouisutdml] push by john.bo...@xxxxxxxxxxxxxxxxx - emphasis will work as before until liblouis fixed on 2013-08-19 15:10 GMT

  • From: liblouisutdml@xxxxxxxxxxxxxx
  • To: liblouis-liblouisxml@xxxxxxxxxxxxx
  • Date: Mon, 19 Aug 2013 15:10:57 +0000

Revision: 3e3e3f4273ae
Branch:   default
Author:   John Boyer <john.boyer@xxxxxxxxxxxxxxxxx>
Date:     Mon Aug 19 15:10:02 2013 UTC
Log:      emphasis will work as before until liblouis fixed
http://code.google.com/p/liblouisutdml/source/detail?r=3e3e3f4273ae

Modified:
 /liblouisutdml/transcriber.c

=======================================
--- /liblouisutdml/transcriber.c        Fri Aug 16 19:45:15 2013 UTC
+++ /liblouisutdml/transcriber.c        Mon Aug 19 15:10:02 2013 UTC
@@ -1038,7 +1038,7 @@
          if (!(ud->emphasis & bold))
            break;
          for (k = ud->old_text_length; k < ud->text_length; k++)
-           ud->typeform[k] |= boldx;
+           ud->typeform[k] |= bold;
          break;
        case compbrl:
          if (!(ud->emphasis & computer_braille))
@@ -1049,7 +1049,8 @@
        default:
          break;
        }
-      top--;
+      //top--;
+      top = -1; /*to be removed when liblouis fixed*/
     }
   return;
 }
@@ -4566,7 +4567,7 @@
 static xmlNode *startNode;

 static int
-assignIndices (xmlNode *startNode, int startPos)
+assignIndices (xmlNode * startNode, int startPos)
 {
   int nextSegment = startPos;
   int firstIndex;
@@ -4581,16 +4582,15 @@
   while (curPos < ud->translated_length && curBrlNode != NULL &&
         nextSegment < ud->translated_length)
     {
-      if (ud->translated_buffer[curPos] == ENDSEGMENT || nextSegment ==
-      startPos)
+      if (ud->translated_buffer[curPos] == ENDSEGMENT || nextSegment ==
+         startPos)
        {
          int indexPos = nextSegment;
          int kk = 0;
          if (ud->translated_buffer[curPos] == ENDSEGMENT)
            firstIndex = indices[curPos + 1];
-         while (ud->translated_buffer[indexPos] != ENDSEGMENT &&
-         indexPos <
-                ud->translated_length)
+         while (ud->translated_buffer[indexPos] != ENDSEGMENT &&
+                indexPos < ud->translated_length)
            {
              char pos[MAXNUMLEN];
              int posLen;
@@ -4710,12 +4710,12 @@
       break;
     }
   if (ud->old_text_length == 0)
-  {
-  startNode = xmlAddNextSibling (node, newNode);
-  link_brl_node (startNode);
-  }
+    {
+      startNode = xmlAddNextSibling (node, newNode);
+      link_brl_node (startNode);
+    }
   else
-  link_brl_node (xmlAddNextSibling (node, newNode));
+    link_brl_node (xmlAddNextSibling (node, newNode));
   ud->text_buffer[ud->text_length++] = ENDSEGMENT;
   return;
 }
For a description of the software, to download it and links to
project pages go to http://www.abilitiessoft.com

Other related posts:

  • » [liblouis-liblouisxml] [liblouisutdml] push by john.bo...@xxxxxxxxxxxxxxxxx - emphasis will work as before until liblouis fixed on 2013-08-19 15:10 GMT - liblouisutdml