there is a table that lists all styles and semantic actions. examine_document.c looks up the first column of each line in a semanti-action file in this table. The table indicates whether the entry is a style or action. It also indicates whether the entry is a macro. I don't remember function names offhand, but examine_documentj.c is the place to begin looking. John On Tue, Jun 17, 2014 at 10:09:08PM +0100, Michael Whapples wrote: > But how does the name get associated to nodes in the document? > > If matching it with a entry in the first column of a semantic action > file, surely that associates it to a semantic action. > > Michael Whapples > On 17/06/2014 20:32, John J. Boyer wrote: > >All you have to do is put a line like > > > >style [name] > > > >in a configuration file. Of course you will want to add settings like > >linesBefore, firstLineIndent, leftMargin, emphasis, etc. > > > >In a semantic action file you simplly give the name of the style in > >the first column. Styles can be nested. This might be done, for example, > >on the title page of a book, where the outermost style might have the > >format centered and the nested styles might have linesBefore and > >linesAfter. > > > >John > > > > > >On Tue, Jun 17, 2014 at 06:17:14PM > >+0100, Michael Whapples wrote: > >>Please explain further, I don't understand how to create a style > >>which is not associated with a semantic action. > >> > >>Michael Whapples > >>On 17/06/2014 16:07, John J. Boyer wrote: > >>>The documentation has several examples of macros. > >>> > >>>Not all styles are associated with semantic actions. This is true only > >>>of predefined styles. The user can create new styles independent of any > >>>semantic action. Several users have done so. > >>> > >>>John > >>> > >>>On Tue, Jun 17, 2014 at 02:47:51PM +0100, Michael Whapples wrote: > >>>>I was thinking might it be of any use for the problems we are trying > >>>>to solve? > >>>> > >>>>What quite do you mean when you say combine semantic actions and > >>>>styles, these do not seem mutually exclusive anyway (eg. a node with > >>>>a style is also associated with a semantic action). > >>>> > >>>>Michael Whapples > >>>>On 17/06/2014 14:41, Keith Creasy wrote: > >>>>>John mentioned it to me some time ago. It is undocumented and largely > >>>>>untested. I think its main purpose is to let you combine actions and > >>>>>styles. > >>>>> > >>>>> > >>>>>I'll have to see if I can find the message he sent to me describing it. > >>>>> > >>>>>-----Original Message----- > >>>>>From: liblouis-liblouisxml-bounce@xxxxxxxxxxxxx > >>>>>[mailto:liblouis-liblouisxml-bounce@xxxxxxxxxxxxx] On Behalf Of Michael > >>>>>Whapples > >>>>>Sent: Tuesday, June 17, 2014 9:27 AM > >>>>>To: liblouis-liblouisxml@xxxxxxxxxxxxx > >>>>>Subject: [liblouis-liblouisxml] LibLouisUTDML, macro nodes > >>>>> > >>>>>Hello, > >>>>>Whilst looking at the LibLouisUTDML source code I keep finding > >>>>>references to nodes having macros. What is a macro node and how to use > >>>>>this feature? > >>>>> > >>>>>I did a search of the liblouisutdml documentation for the word macro and > >>>>>nothing came up. > >>>>> > >>>>>Michael Whapples > >>>>>For a description of the software, to download it and links to project > >>>>>pages go to http://www.abilitiessoft.com > >>>>>For a description of the software, to download it and links to > >>>>>project pages go to http://www.abilitiessoft.com > >>>>For a description of the software, to download it and links to > >>>>project pages go to http://www.abilitiessoft.com > >>For a description of the software, to download it and links to > >>project pages go to http://www.abilitiessoft.com > > 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