Commit ad7b5353 authored by Wendell Piez's avatar Wendell Piez

Adjustment for correct inferencing of right-sided (closing) quotes in macro...

Adjustment for correct inferencing of right-sided (closing) quotes in macro substitution cf Issue #26
parent 6ff51aa7
......@@ -375,15 +375,16 @@
<!-- $livechar is any character except a space or quotation mark (open, close or straight) -->
<xsl:variable name="livechar">[^\s\p{Ps}\p{Pe}"']</xsl:variable>
<xsl:variable name="singles">['&rsquo;&lsquo;]</xsl:variable>
<xsl:variable name="doubles">["&rdquo;&ldquo;]</xsl:variable>
<xsw:match replace="&ldquo;$1">"({$livechar})</xsw:match>
<xsw:match replace="$1&rdquo;">({$livechar})"</xsw:match>
<xsw:match replace="$1&rdquo;">({$livechar})["&ldquo;]</xsw:match>
<xsw:match replace="$1&rsquo;">({$livechar})'</xsw:match>
<xsw:match replace="&lsquo;$1">'({$livechar})</xsw:match>
<xsl:variable name="singles">['&rsquo;&lsquo;]</xsl:variable>
<xsl:variable name="doubles">["&rdquo;&ldquo;]</xsl:variable>
<xsw:match replace="">()([&lsquo;&ldquo;])()</xsw:match>
<!-- now the combinations -->
<xsw:match replace="&ldquo;$1">{$doubles}([&lsquo;&ldquo;])</xsw:match>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment