Revision: 1a57215ff2fa Branch: default Author: John Boyer <john.boyer@xxxxxxxxxxxxxxxxx> Date: Sun Jun 30 00:27:53 2013 Log: fixed pagebreak semantic action http://code.google.com/p/liblouisutdml/source/detail?r=1a57215ff2fa Modified: /liblouisutdml/transcriber.c ======================================= --- /liblouisutdml/transcriber.c Wed Jun 26 21:35:06 2013 +++ /liblouisutdml/transcriber.c Sun Jun 30 00:27:53 2013 @@ -123,6 +123,8 @@ static int utd_insert_translation (const char *table); static void utd_insert_text (xmlNode * node, int length); static int utd_makeBlankLines (int number, int beforeAfter); +static void utd_pagebreak (xmlNode *node, char *printPageNumber, int + length); static int utd_startStyle (); static int utd_styleBody (); static int utd_finishStyle (); @@ -981,7 +983,7 @@ { xmlChar *number = get_attr_value (node); if (ud->format_for == utd) - utd_makePageSeparator (number, strlen (number)); + utd_pagebreak (node, number, strlen (number)); else handlePagenum (number, strlen (number)); } @@ -4312,6 +4314,14 @@ addBrlOnly (brlOnlyNode, &sb); return 1; } + +static void +utd_pagebreak (xmlNode *node, char *printPageNumber, int length) +{ + xmlNode *newNode = xmlNewNode (NULL, (xmlChar *) "brl"); + brlNode = xmlAddNextSibling (node, newNode); + utd_makePageSeparator (printPageNumber, length); +} static int utd_getBraillePageString () For a description of the software, to download it and links to project pages go to http://www.abilitiessoft.com