Closed egli closed 5 years ago
The last option, to let liblouis handle the emphasis, probably isn't really a real option: Since we send each xml fragment separately to liblouis I doubt we'd get correct results if an emphasis goes across xml nodes such as in the follwoing example:
<p>This is a <em>tiny example of an <abbr>ICU</abbr></em>
Eingabe:
Ausgabe g2 IST:
Ausgabe g2 SOLL:
Mögliches Vorgehen: Anpassung von dtbook2sbsform.xsl (template match="dtb:strong|dtb:em|brl:emph|dtb:dfn")
IST:
SOLL:
my:ends-with-word(preceding-sibling::text()[1])
-->matches(preceding-sibling::text()[1],'\w$|\.\.\.$')
my:starts-with-word(following-sibling::text()[1])
-->matches(following-sibling::text()[1],'^\w|^\.\.\.')