Exmaralda-Org / exmaralda

26 stars 15 forks source link

XSL Transformation for HTML-Output to show sigle only when speaker changes #403

Closed wuddel closed 1 year ago

wuddel commented 1 year ago

So far every line has a speaker sigle, as in:

SPK1: Hello. SPK2: Hello there. SPK2: How are you? SPK2: Everything fine? SPK1: Yes.

it would be easier readable with:

SPK1: Hello. SPK2: Hello there. __ How are you? __ Everything fine? SPK1: Yes.

I suggest the following changes in the XSLT(s) in order to achieve this:

<td class="speaker">
  <xsl:choose>
    <xsl:when test="position() = 1 or preceding-sibling::contribution[1]/@speaker-reference != @speaker-reference">
      <xsl:value-of select="@speaker-reference"/>
    </xsl:when>
    <xsl:otherwise>
    </xsl:otherwise>
  </xsl:choose>
</td>
berndmoos commented 1 year ago

cf. #183

berndmoos commented 1 year ago

Closed via #413