Skip to content
This repository has been archived by the owner on Feb 15, 2024. It is now read-only.

Commit

Permalink
Proper fonts for "P" transcription numbers and transcriptions without…
Browse files Browse the repository at this point in the history
… line labels
  • Loading branch information
th-we committed Jun 27, 2014
1 parent 79ab6a9 commit f59ad65
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Resources/public/js/monodi/mei2score.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -361,10 +361,14 @@
</template>


<template match="mei:sb" mode="get-syllable-font">
<template match="mei:syllable" mode="get-syllable-font">
<value-of select="$standardFont"/>
</template>
<template match="mei:sb[contains('ABCDEFGHIJKLMNOPQRSTUVWXYZ+', substring(@n,1,1))]" mode="get-syllable-font">
<!-- Base chants are written in small caps and have a capital letter line label OR a P in the transcription number -->
<template mode="get-syllable-font" match="mei:syllable[
contains('ABCDEFGHIJKLMNOPQRSTUVWXYZ+', substring(preceding-sibling::mei:sb[string-length(@n)>0][1]/@n, 1, 1))
or contains(ancestor::mei:mei[1]/mei:meiHead[1]/mei:workDesc[1]/mei:work[1]/@n, 'P')
]">
<value-of select="$smallCapsFont"/>
</template>

Expand All @@ -382,7 +386,7 @@
</apply-templates>

<variable name="font">
<apply-templates select="preceding-sibling::mei:sb[string-length(@n)>0][1]" mode="get-syllable-font"/>
<apply-templates select="." mode="get-syllable-font"/>
</variable>

<variable name="P8textClass">
Expand Down

0 comments on commit f59ad65

Please sign in to comment.