Skip to content

Commit

Permalink
add support for new visual attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
rettinghaus committed Oct 16, 2020
1 parent ffbda57 commit 18142e0
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
13 changes: 11 additions & 2 deletions mei2ly.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -1389,8 +1389,17 @@
</xsl:when>
</xsl:choose>
</xsl:if>
<xsl:if test="@color">
<!-- not available in MEI4 -->
<xsl:value-of select="'\tweak color #'" />
<xsl:call-template name="setColor" />
</xsl:if>
<xsl:if test="@width">
<!-- not available in MEI4 -->
<xsl:value-of select="concat('\tweak minimum-length #', local:VU2LY(@width), ' ')" />
</xsl:if>
<xsl:if test="@loc">
<xsl:value-of select="concat('\tweak staff-position #',@loc - 4,' ')" />
<xsl:value-of select="concat('\tweak staff-position #', @loc - 4, ' ')" />
</xsl:if>
<xsl:if test="@ploc or @oloc">
<xsl:message>WARNING: @ploc and @oloc on <xsl:value-of select="local-name(.)" /><xsl:if test="@xml:id"><xsl:value-of select="concat(' [',@xml:id,']')" /></xsl:if> not supported, use @loc instead</xsl:message>
Expand Down Expand Up @@ -2796,7 +2805,7 @@
</xsl:choose>
</xsl:if>
<xsl:if test="@color">
<!-- not available in MEI -->
<!-- not available in MEI4 -->
<xsl:value-of select="'\tweak color #'" />
<xsl:call-template name="setColor" />
</xsl:if>
Expand Down
2 changes: 2 additions & 0 deletions supported.md
Original file line number Diff line number Diff line change
Expand Up @@ -336,8 +336,10 @@ List of supported MEI elements and attributes

* `<multiRest>`
* `@block`
* *`@color`*
* `@loc`
* __`@num`__
* *`@width`* (will set minimum length)
* `@xml:id`

* `<music>`
Expand Down

0 comments on commit 18142e0

Please sign in to comment.