Problem with pb-highlight
Hi again!
I'm fiddling with the transcription/translation template, and it works nicely with aligned <seg>
(it highlights in yellow when hovering), but not if a <seg>
contains block tags, like <l>
(which I need).
This is my odd (from serafin.odd):
<elementSpec ident="seg" mode="change">
<model behaviour="webcomponent" useSourceRendition="true">
<param name="name" value="'pb-highlight'"/>
<param name="key" value="replace(@xml:id, "^\w\.(.*)$", "$1")"/>
</model>
</elementSpec>
And this my xml:
<seg xml:id="s.aa">
<l n="1">Fraternas acies alternaque regna profanis</l>
<l n="2">decertata odiis sontesque euoluere Thebas,</l>
<l n="3">Pierius menti calor incidit</l>
</seg>
<seg xml:id="t.aa">El fuego del Pierio impulsa a mi espíritu a narrar luchas fraternas y reinos alternativos disputados con odio sacrílego, y la culpable Tebas</seg>
The translated text (t.aa) gets highlighted when hovering over transcription (s.aa), but not otherwise. If I add just text before the <l>
in the transcription <seg>
, it gets highlighted, but not the subsequent <l>
s.
What I'm doing wrong?
Thanks for any help.