grotsztaksel / Songbook_XMLtoEPUB

Set of Python tools Creating an ePub songbook from data defined as XML files
Apache License 2.0
1 stars 0 forks source link

Enable beat marking #11

Closed grotsztaksel closed 2 years ago

grotsztaksel commented 3 years ago

Particularly useful for a'capella songs with complex lyrics, like:

  <verse>
    Be\fore the \boat had \hit the wa\ter                   | . . . .
    The \whale's \tail came \up and \caught her             | . . . .
    All \hands to the \side, har\pooned and \fought her     | . . . .
    When she \dived \down \below \(Huh!)                    | . . . .
  </verse>

When the notation above is present, the letter preceded with the \ should become bold

grotsztaksel commented 3 years ago

Alternatively, the notation could still use \ to mark, where the chord should be played, while | should mark the beat (like the bar on the staff[^1])

  <verse>
    Be\|fore the |boat had |hit the wa|ter                   | a
    The \|whale's |tail came |up and \|caught her             | d a
    ...
  </verse>

On the other hand, the chord usually goes where the beat should

[^1]: I mean the musical terms, maybe not using them correctly.

grotsztaksel commented 3 years ago

Leave the \ as the marker in the text. When the marker is matched by a chord, place a chord. If it is matched by a period dot ., draw a vertical line | in the text (the same, that is currently used as the default separator between the lyrics and the chords in the XML)

grotsztaksel commented 3 years ago

But a delicate one! Gray for example

<span style="color:#CDCDCD;font-stretch:ultra-condensed">|</span> 
<!-- Though font-stretch has no influence on a single character -->
grotsztaksel commented 2 years ago

Meh. Lousy idea.