Skip to content

Commit

Permalink
fixing characters output (debug)
Browse files Browse the repository at this point in the history
  • Loading branch information
tboenig committed Aug 19, 2022
1 parent 503a129 commit 2f25885
Show file tree
Hide file tree
Showing 3 changed files with 1,339 additions and 2 deletions.
14 changes: 12 additions & 2 deletions scripts/keyboard.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -163,10 +163,12 @@ Names
<xsl:when test="contains(fn:string[@key = 'mufichar'], '&gt;')">
<xsl:text disable-output-escaping="yes">&gt;</xsl:text><xsl:text> </xsl:text>
</xsl:when>
<xsl:when test="contains(fn:string[@key = 'mufichar'], '◌')">
<xsl:value-of select="replace(fn:string[@key = 'mufichar'], '◌','')"/><xsl:text> </xsl:text>
</xsl:when>
<xsl:when test="contains(fn:string[@key = 'mufichar'], '&#x7f;')"></xsl:when>
<xsl:otherwise><xsl:value-of select="fn:string[@key = 'mufichar']"/><xsl:text> </xsl:text></xsl:otherwise>
</xsl:choose>

</xsl:for-each><xsl:text disable-output-escaping="yes">&#xD;</xsl:text>
</xsl:for-each-group>
</xsl:result-document>
Expand Down Expand Up @@ -207,7 +209,15 @@ Names
<xsl:for-each-group select="fn:current-group()" group-by="fn:string[@key = 'alpha']">
<xsl:sort order="ascending" select="fn:string[@key = 'alpha']"/>
<xsl:for-each select="fn:current-group()">
{<number/>"character": "<xsl:value-of select="fn:string[@key = 'mufichar']"/>"
<xsl:variable name="mufi">
<xsl:choose>
<xsl:when test="fn:string[@key = 'mufichar'] = '&quot;'"><![CDATA[\"]]></xsl:when>
<xsl:when test="fn:string[@key = 'mufichar'] = '\'"><![CDATA[\\]]></xsl:when>
<xsl:when test="contains(fn:string[@key = 'mufichar'], '◌')"><xsl:value-of select="replace(fn:string[@key = 'mufichar'], '◌','')"/></xsl:when>
<xsl:otherwise><xsl:value-of select="fn:string[@key = 'mufichar']"/></xsl:otherwise>
</xsl:choose>
</xsl:variable>
{<number/>"character": "<xsl:value-of select="$mufi"/>"
}<komma/>
</xsl:for-each>
</xsl:for-each-group>
Expand Down
1 change: 1 addition & 0 deletions scripts/test5.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<div class="keyboard"/>
Loading

0 comments on commit 2f25885

Please sign in to comment.