Menu

#179 Review of Ligatured letters

9.9
accepted
xslt (14)
6
3 days ago
4 days ago
Anna Loro
No

At the moment the EFES stylesheets are not working for the epidoc leiden style 'seg'.

In teihi.xsl Gabriel Bodard suggested replacing line 56 (<xsl:text>͜</xsl:text>) with:

<xsl:value-of select="substring(normalize-space($text-content),1,1)"/>
    <xsl:text>&#x035c;</xsl:text>
<xsl:value-of select="substring(normalize-space($text-content),2,1)"/>

This does not fix ligatures of three or more letters. Would it be possible to review the stylesheets and resolve this problem?

Discussion

  • BODARD Gabriel

    BODARD Gabriel - 3 days ago

    Thanks, Anna! As noted, this solution only deals with cases of ligatures of exactly 2 characters; as written (with an xsl:if around the code quoted above) ligatures of 3+ characters or separated ligatures where the <hi> element only contains 1 character will just be omitted from the output document.

    One solution we may want to consider is that adopted by the MedCyprus codebase (see CSS here), which uses border-top: (could use border-bottom: for SEG) with a border-radius: to curve the edges, allowing a combining link above or below of arbitrary length (unlike the Unicode solution which has a linking bar for 2 characters, and a less nice one for 3). We might need @ellimylonas to help extrapolate this to other EpiDoc Leiden-styles, if so.

     
  • BODARD Gabriel

    BODARD Gabriel - 3 days ago
    • labels: --> xslt
    • status: unread --> accepted
    • assigned_to: BODARD Gabriel
    • Group: 9.6 --> future
    • Priority: 5(medium) --> 6
     
  • BODARD Gabriel

    BODARD Gabriel - 3 days ago
    • Group: future --> 9.9
     

Log in to post a comment.

Monday.com Logo