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>͜</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?
Thanks, Anna! As noted, this solution only deals with cases of ligatures of exactly 2 characters; as written (with an
xsl:ifaround 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 useborder-bottom:for SEG) with aborder-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.