This should fix the problem of duplicate semantics attributes in translateText and backTranslate John On Fri, Mar 07, 2014 at 06:26:02AM +0000, liblouisutdml@xxxxxxxxxxxxxx wrote: > 2 new revisions: > > Revision: 752f90f50082 > Branch: default > Author: John Boyer <john.boyer@xxxxxxxxxxxxxxxxx> > Date: Fri Mar 7 06:16:40 2014 UTC > Log: got rid of duplicate semantics attributes > http://code.google.com/p/liblouisutdml/source/detail?r=752f90f50082 > > Revision: 39a565965d1f > Branch: default > Author: John Boyer <john.boyer@xxxxxxxxxxxxxxxxx> > Date: Fri Mar 7 06:24:51 2014 UTC > Log: fixed errror > http://code.google.com/p/liblouisutdml/source/detail?r=39a565965d1f > > ============================================================================== > Revision: 752f90f50082 > Branch: default > Author: John Boyer <john.boyer@xxxxxxxxxxxxxxxxx> > Date: Fri Mar 7 06:16:40 2014 UTC > Log: got rid of duplicate semantics attributes > http://code.google.com/p/liblouisutdml/source/detail?r=752f90f50082 > > Modified: > /liblouisutdml/transcriber.c > > ======================================= > --- /liblouisutdml/transcriber.c Mon Feb 10 15:46:05 2014 UTC > +++ /liblouisutdml/transcriber.c Fri Mar 7 06:16:40 2014 UTC > @@ -3709,18 +3709,12 @@ > xmlSetGenericErrorFunc (ctxt, libxml_errors); > doc = xmlParseMemory (starter, strlen (starter)); > rootNode = xmlDocGetRootElement (doc); > - xmlNewProp (rootNode, (xmlChar *) "semantics", (xmlChar *) "action,no"); > newNode = xmlNewNode (NULL, (xmlChar *) "head"); > ud->head_node = xmlAddChild (rootNode, newNode); > - xmlNewProp (ud->head_node, (xmlChar *) "semantics", (xmlChar *) > - "action,markhead"); > newNode = xmlNewNode (NULL, (xmlChar *) "body"); > bodyNode = xmlAddChild (rootNode, newNode); > - xmlNewProp (bodyNode, (xmlChar *) "semantics", (xmlChar *) > - "style,document"); > newNode = xmlNewNode (NULL, (xmlChar *) "section"); > sectionNode = xmlAddChild (bodyNode, newNode); > - xmlNewProp (sectionNode, (xmlChar *) "semantics", (xmlChar > *) "action,no"); > ud->doc = doc; > return sectionNode; > } > @@ -4041,7 +4035,6 @@ > if (ud->translated_length <= 0) > return 1; > newBlock = xmlNewNode (NULL, (xmlChar *) "p"); > - xmlNewProp (newBlock, (xmlChar *) "semantics", (xmlChar *) "style,para"); > curBrl = xmlNewNode (NULL, (xmlChar *) "brl"); > makeDotsTextNode (curBrl, ud->translated_buffer, ud->translated_length, > 1); > ud->translated_length = ud->sync_text_length = 0; > > ============================================================================== > Revision: 39a565965d1f > Branch: default > Author: John Boyer <john.boyer@xxxxxxxxxxxxxxxxx> > Date: Fri Mar 7 06:24:51 2014 UTC > Log: fixed errror > http://code.google.com/p/liblouisutdml/source/detail?r=39a565965d1f > > > For a description of the software, to download it and links to > project pages go to http://www.abilitiessoft.com -- John J. Boyer; President, Chief Software Developer Abilitiessoft, Inc. http://www.abilitiessoft.com Madison, Wisconsin USA Developing software for people with disabilities For a description of the software, to download it and links to project pages go to http://www.abilitiessoft.com