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. 3
      patacrep/templates.py

8
patacrep/data/templates/songbook_model.yml

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

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

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

3
patacrep/templates.py

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

Loading…
Cancel
Save