Browse Source

Merge 890abc59db into 48040d2215

pull/266/merge
takuyozora 7 months ago
committed by GitHub
parent
commit
de776d73be
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 8
      patacrep/data/templates/songbook_model.yml
  2. 3
      patacrep/data/templates/styles/chords.sty
  3. 5
      patacrep/templates.py

8
patacrep/data/templates/songbook_model.yml

@ -55,6 +55,14 @@ schema:
value: "guitar"
- type: //str
value: "ukulele"
- type: //arr
contents:
type: //any
of:
- type: //str
value: "guitar"
- type: //str
value: "ukulele"
notation:
type: //any
of:

3
patacrep/data/templates/styles/chords.sty

@ -242,8 +242,8 @@
\musicnote[french]{Accordage standard : {\nolyrics \[\printnoteE{} \printnoteA{} \printnoteD{} \printnoteG{} \printnoteB{} \printnoteE{}]}}
\musicnote[english]{Standard tuning: {\nolyrics \[\printnoteE{} \printnoteA{} \printnoteD{} \printnoteG{} \printnoteB{} \printnoteE{}]}}
\end{verse*}
\endsong
\sclearpage
\fi
\ifukulele
@ -398,6 +398,7 @@
\end{verse*}
\endsong
\sclearpage
\fi
\end{songs}

5
patacrep/templates.py

@ -326,4 +326,7 @@ def iter_bookoptions(config):
elif config['chords']['diagrampage'] == "all":
yield 'diagrampage'
yield config['chords']['instrument']
if isinstance(config['chords']['instrument'], str):
yield config['chords']['instrument']
else:
yield from config['chords']['instrument']

Loading…
Cancel
Save