Closed ebeshero closed 1 year ago
What we propose to do is a little radical: We would actually remove these elements in the XSLT postprocessing pipeline, only when an <add>
contains just a metamark and no other text descendant, and is followed by another first following-sibling <add>
element.
<add>
<metamark function="insert">^</metamark>
<add>
Also we would even remove this construction, when it has a <seg>
around it. This is b/c the seg mark is not by itself meaningful. Usually it's a <seg>
with an __I
, __M
, or __F
.
<add>
<seg xml:id="....">
<metamark function="insert">^</metamark>
</seg>
<add>
The only reason we do this is because we have markup in place that renders meaningful <add>
elements as a single insertion moment. Effectively the <add>
elements containing only metamark ^
are pseudomarkup and are being duplicated by our own markup.
Pinging @raffazizzi on this: it's a bit of a radical move with rendering the MS, but I think it's okay.
These options sound fine to me, especially now that the the project has more control over the content of the S-GA files in general. Another option I can think of would be setting the CSS for metamark to display: none
, particularly inside add.
tei-add > tei-metamark: { display: none}
@raffazizzi I like that option because it does less potential damage...
tei-add[tei-metamark]: { display: none}
ins:has(tei-metamark) { display: none}
In the MS, we are seeing problems with rendering
^
marks as written in the MS. These are signifying insertions, but our CSS for the interface already handles<add>
elements with^
.Worse, we are often generating three
^
for a single addition to the MS, because in the S-GA markup it's rendered like this:This means we output one
^
for the first<add>
element, and one for the text contents of<metamark>
, and a third for the<add>
element after it.There is a variation on this with
<addSpan>
in the MS. We think we should ignore anything to do with rendering the outer<addSpan>
and only concentrate on the inner elements of<add>
,<del>
that mark specific alterations.