-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathtxt-teisupplied.xsl
37 lines (31 loc) · 1.15 KB
/
txt-teisupplied.xsl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?xml version="1.0" encoding="UTF-8"?>
<!-- $Id$ -->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:t="http://www.tei-c.org/ns/1.0"
version="2.0">
<!-- Called from teisupplied.xsl -->
<xsl:template name="supplied-parallel">
<xsl:call-template name="unicode-underline"/>
</xsl:template>
<xsl:template name="supplied-previouseditor">
<xsl:call-template name="unicode-underline"/>
</xsl:template>
<xsl:template name="supplied-similar"><!-- added by SigiDoc -->
<xsl:call-template name="unicode-underline"/>
</xsl:template>
<xsl:template name="unicode-underline">
<xsl:analyze-string select="." regex="(\p{{L}}|\s)">
<xsl:matching-substring>
<xsl:for-each select="regex-group(1)">
<xsl:value-of select="concat(.,'̲')"/>
</xsl:for-each>
</xsl:matching-substring>
</xsl:analyze-string>
</xsl:template>
<xsl:template name="supplied-subaudible">
<xsl:text>(scil. </xsl:text>
<xsl:apply-templates/>
<xsl:call-template name="cert-low"/>
<xsl:text>)</xsl:text>
</xsl:template>
</xsl:stylesheet>