”
どのタイポグラファーの重引用符(別名カーリー引用符)で二重引用符を置き換えるために
私の最初の考えは、このようなものである“
タイポグラファーの重引用符で"
通常の二重引用符"
を交換する必要があり
:
<xsl:variable name="text">
<xsl:call-template name="replace-string"><!-- FYI: replace-string is a custom method that works like you would expect-->
<xsl:with-param name="text" select="."/>
<xsl:with-param name="replace" select="string(' "')" /><!-- left quote because of space before -->
<xsl:with-param name="with" select="string('“')"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="text2">
<xsl:call-template name="replace-string">
<xsl:with-param name="text" select="$text"/>
<xsl:with-param name="replace" select="string('" ')" /><!-- right quote because of space after -->
<xsl:with-param name="with" select="string('”')"/>
</xsl:call-template>
</xsl:variable>
<xsl:apply-templates select="$text2" />
私の心配は、見積もりによって決定スペースがない状況です。これらのような。
"これは素晴らしい"と言います。 私はトラは好きです( "大きな猫")。
適用するルールや別の戦略を知っている人は誰もいませんか?
ありがとうございます!
助けてくれてありがとう! – joe