Menu

#164 Extra deletion brackets added by Stylesheets

future
done
xslt (28)
9(high)
2020-11-10
2017-07-06
No

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.

Discussion

  • Tom Elliott

    Tom Elliott - 2017-08-15
    • status: unread --> accepted
    • assigned_to: Tom Elliott
     
  • BODARD Gabriel

    BODARD Gabriel - 2017-10-17
    • Group: 8.24 --> 9.0
     
  • BODARD Gabriel

    BODARD Gabriel - 2018-03-13
    • Group: 9.0 --> future
     
  • BODARD Gabriel

    BODARD Gabriel - 2019-01-24
    • Group: future --> 9.1
     
  • Scott Vanderbilt

    • Group: 9.1 --> future
     
  • Scott Vanderbilt

    Bump -> Future

     
  • Tom Elliott

    Tom Elliott - 2020-01-21
    • Group: future --> 9.2
     
  • Pietro Maria Liuzzo

    I will look at this and check with @paregorios

     
  • BODARD Gabriel

    BODARD Gabriel - 2020-08-07
    • Group: 9.2 --> future
    • Priority: 8 --> 9(high)
     
  • BODARD Gabriel

    BODARD Gabriel - 2020-08-07

    @paregorios/@pietroliuzzo: I assume this won't be implemented by next month. Does one of you still want ownership of the ticket?

     
  • Pietro Maria Liuzzo

    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.

     
  • BODARD Gabriel

    BODARD Gabriel - 2020-09-15
    • Owner: Tom Elliott --> Pietro Maria Liuzzo
     
  • Pietro Maria Liuzzo

    • status: accepted --> done
     

Log in to post a comment.

MongoDB Logo MongoDB