The EpiDoc Example stylesheets output extra, unwanted deletion brackets when a tei:del element is broken by intervening tags (e.g. <w>, <supplied>, uel sim.). For example, the correct markup (from IOSPE 1.2):
<w><expan><abbr>κ<unclear>α</unclear></abbr>
<del rend="erasure"><abbr>λ</abbr><ex>ανδῶν</ex></del></expan></w>
<del rend="erasure"><g ref="#stop"/></del>
<w><del rend="erasure">Μα</del><lb n="19" break="no"/>ΐων</w>
is rendered as:
κα̣[[λ(ανδῶν)]] [[•]] [[Μα]]-
ΐων
When it should be simply:
κα̣[[λ(ανδῶν) • Μα]]-
ΐων
This will presumably require a fix to the square bracket-handling regex template that currently handles adjacent supplied/gap constructs. This may or may not be a hige job, but it is a serious bug, in my opinion.
Bump -> Future
I will look at this and check with @paregorios
@paregorios/@pietroliuzzo: I assume this won't be implemented by next month. Does one of you still want ownership of the ticket?
As far as I can see the square brackets templates only deals with [ and ] in https://github.com/EpiDoc/Stylesheets/pull/7 I have proposed a further fix, similar to that proposed for https://sourceforge.net/p/epidoc/bugs/165/ destructuring the regex so that the matched adjacent brackets are taken from a list which can be parametrized. I have tested with the above example and no further parameters set, only default.