Skip to content
Snippets Groups Projects
Commit e1e335de authored by Max-Ferdinand Zeterberg's avatar Max-Ferdinand Zeterberg
Browse files

feat(facsimile): add question marks for uncertainty

parent f79fd996
No related branches found
No related tags found
1 merge request!9Resolve "corr 11: uncertainty"
...@@ -326,6 +326,13 @@ hr.metamark-line.doubleLine { ...@@ -326,6 +326,13 @@ hr.metamark-line.doubleLine {
} }
/*::::::::::::::::::::::::::::::::::{ TEI: Transcriptional }::::::::::::::::::::::::::::::::*/ /*::::::::::::::::::::::::::::::::::{ TEI: Transcriptional }::::::::::::::::::::::::::::::::*/
.g[data-cert="uncertain"]:after {
content: "?";
font-size: small;
vertical-align: super;
}
.surface .tei::before, .surface .tei::before,
.surface .tei::after { .surface .tei::after {
color: brown; color: brown;
......
...@@ -64,13 +64,21 @@ ...@@ -64,13 +64,21 @@
<!-- LINE-PARTS --> <!-- LINE-PARTS -->
<xsl:template match="g"> <xsl:template match="g[not(@cert)]">
<span class="g" <span class="g"
id="{if(@xml:id) then (@xml:id) else ('part_'||generate-id(.))}"> id="{if(@xml:id) then (@xml:id) else ('part_'||generate-id(.))}">
<xsl:apply-templates/> <xsl:apply-templates/>
</span> </span>
</xsl:template> </xsl:template>
<xsl:template match="g[@cert]">
<span class="g"
data-cert="{@cert}"
id="{if(@xml:id) then (@xml:id) else ('part_'||generate-id(.))}">
<xsl:apply-templates/>
</span>
</xsl:template>
<xsl:template match="metamark[contains(@rend, 'Line') or contains(@rend, 'line')]"> <xsl:template match="metamark[contains(@rend, 'Line') or contains(@rend, 'line')]">
<xsl:variable name="rend" select="@rend"/> <xsl:variable name="rend" select="@rend"/>
<hr class="metamark-line {$rend}" data-rend="{$rend}"/> <hr class="metamark-line {$rend}" data-rend="{$rend}"/>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment