liblouisutdml
liblouisutdml copied to clipboard
The configtweak semantic action
Cut&paste from an email thread on the list.
I'm processing a HTML document with file2brl. In the html.sem file I have the following line:
configtweak h4,class,cont literaryTextTable=no-g1.ctb
When I process the HTML document, I get a line
literaryTextTable=no-g1.ctb
converted into literary braille, at the point wher
Heading text
is placed, directly followed by the "Heading text". All text after this point is perfectly set according to the table I specified. The problem is that the literaryTextTable=... is printed out.I got an answer from Paul Wood:
I know this doesn't FIX the bug, but what I have found is a) I can reproduce the error and b) if no text is within the
then the extra text which is, I have confirmed, the text from the third parameter is not added to the result. I imagine the programmer didn't think that text would be present for the specified xml element used to call the 'configtweak'. Can anyone remember who programmed this, maybe they can shed some light on how to solve this prob?I replied:
Yes
works. But strangely not if the tag is closed with , like .