Revision: 9f537e7428d9 Author: John Boyer <john.boyer@xxxxxxxxxxxxxxxxx> Date: Tue May 22 08:48:37 2012 Log: implemented pagebreak semantic action http://code.google.com/p/liblouisutdml/source/detail?r=9f537e7428d9 Modified: /liblouisutdml/louisutdml.h /liblouisutdml/transcribe_paragraph.c /liblouisutdml/transcriber.c ======================================= --- /liblouisutdml/louisutdml.h Mon May 21 09:03:53 2012 +++ /liblouisutdml/louisutdml.h Tue May 22 08:48:37 2012 @@ -338,6 +338,7 @@ int make_contents (); void do_reverse (xmlNode * node); int do_boxline (xmlNode * node); +void do_pagebreak (xmlNode *node); void do_linespacing (xmlNode * node); int do_newpage (); int do_blankline (); ======================================= --- /liblouisutdml/transcribe_paragraph.c Sun Apr 22 21:11:39 2012 +++ /liblouisutdml/transcribe_paragraph.c Tue May 22 08:48:37 2012 @@ -225,6 +225,11 @@ if (action != 0) pop_sem_stack (); return 1; + case pagebreak: + do_pagebreak (node); + if (action != 0) + pop_sem_stack (); + return 1; case blankline: do_blankline (); if (action != 0) ======================================= --- /liblouisutdml/transcriber.c Mon May 21 09:03:53 2012 +++ /liblouisutdml/transcriber.c Tue May 22 08:48:37 2012 @@ -869,6 +869,18 @@ widestrcpy (ud->page_separator_number_last, ud->print_page_number); return 1; } + +static int utd_makePageSeparator (xmlChar *printPageNumber, int length); + +void +do_pagebreak (xmlNode *node) +{ + xmlChar *number = get_attr_value (node); + if (ud->format_for == utd) + utd_makePageSeparator (number, strlen (number)); + else + handlePagenum (number, strlen (number)); +} void insert_text (xmlNode * node) For a description of the software, to download it and links to project pages go to http://www.abilitiessoft.com