mirror of https://github.com/patacrep/patacrep.git
Louis
10 years ago
50 changed files with 239 additions and 102 deletions
@ -0,0 +1,9 @@ |
|||||
|
((- content.key -)) |
||||
|
(* if content.alteration *)(( content.alteration ))(* endif -*) |
||||
|
(* if content.modifier *)((content.modifier))(* endif -*) |
||||
|
(* if content.addnote *)((content.addnote))(* endif -*) |
||||
|
(* if content.basskey -*) |
||||
|
/ |
||||
|
((- content.basskey -)) |
||||
|
(* if content.bassalteration *)(( content.bassalteration ))(* endif -*) |
||||
|
(* endif -*) |
@ -0,0 +1,6 @@ |
|||||
|
[ |
||||
|
(*- for chord in content.chords -*) |
||||
|
(* if not loop.first *) (* endif -*) |
||||
|
(( render(chord) -)) |
||||
|
(* endfor -*) |
||||
|
] |
@ -0,0 +1 @@ |
|||||
|
{comment: (( content.argument ))} |
@ -0,0 +1,25 @@ |
|||||
|
{define: (( render(content.key) )) |
||||
|
(*- if content.basefret *) |
||||
|
base-fret ((content.basefret)) |
||||
|
(*- endif *) |
||||
|
frets |
||||
|
(*- for string in content.frets -*) |
||||
|
(( " " -)) |
||||
|
(*- if string is none -*) |
||||
|
x |
||||
|
(*- else -*) |
||||
|
(( string -)) |
||||
|
(*- endif -*) |
||||
|
(*- endfor -*) |
||||
|
(* if content.fingers *) |
||||
|
fingers |
||||
|
(*- for finger in content.fingers -*) |
||||
|
(( " " -)) |
||||
|
(* if finger is none -*) |
||||
|
- |
||||
|
(*- else -*) |
||||
|
(( finger -)) |
||||
|
(* endif -*) |
||||
|
(* endfor -*) |
||||
|
(* endif -*) |
||||
|
} |
@ -0,0 +1,3 @@ |
|||||
|
|
||||
|
ERROR : Template not found for "(( content.__class__.__name__ ))". See the logs for details. |
||||
|
|
@ -0,0 +1 @@ |
|||||
|
{guitar_comment: (( content.argument ))} |
@ -0,0 +1 @@ |
|||||
|
{image: (( content.argument ))} |
@ -0,0 +1,3 @@ |
|||||
|
(* for item in content.line -*) |
||||
|
(( render(item) )) |
||||
|
(*- endfor *) |
@ -0,0 +1,2 @@ |
|||||
|
|
||||
|
|
@ -0,0 +1 @@ |
|||||
|
{partition: ((content.argument))} |
@ -0,0 +1 @@ |
|||||
|
|
@ -0,0 +1,5 @@ |
|||||
|
{start_of_tab} |
||||
|
(* for foo in content.content *) |
||||
|
(( foo )) |
||||
|
(* endfor *) |
||||
|
{end_of_tab} |
@ -0,0 +1,5 @@ |
|||||
|
{start_of_(( content.type ))} |
||||
|
(* for line in content.lines *) |
||||
|
(( render(line) )) |
||||
|
(* endfor *) |
||||
|
{end_of_(( content.type ))} |
@ -0,0 +1 @@ |
|||||
|
(( content.value )) |
@ -0,0 +1,34 @@ |
|||||
|
(* if language is defined -*) |
||||
|
{language: (( language ))} |
||||
|
(* endif *) |
||||
|
(* if metadata.columns is defined -*) |
||||
|
{columns: (( metadata.columns ))} |
||||
|
(* endif *) |
||||
|
(* if metadata.capo is defined -*) |
||||
|
{capo: (( metadata.capo ))} |
||||
|
(* endif *) |
||||
|
|
||||
|
(*- for title in titles -*) |
||||
|
{title: (( title ))} |
||||
|
(* endfor -*) |
||||
|
(* for author in authors -*) |
||||
|
{artist: (( author[1] )) (( author[0] ))} |
||||
|
(* endfor *) |
||||
|
|
||||
|
(*- for key in ['album', 'copyright', 'cov', 'vcov', 'tag'] *) |
||||
|
(* if key in metadata -*) |
||||
|
{(( key )): (( metadata[key] ))} |
||||
|
(* endif *) |
||||
|
(* endfor *) |
||||
|
|
||||
|
(*- for key in metadata.keys -*) |
||||
|
{key: (( key.keyword )): (( key.argument ))} |
||||
|
(* endfor *) |
||||
|
|
||||
|
(*- for chord in metadata['define'] *) |
||||
|
((- render(chord) )) |
||||
|
(* endfor *) |
||||
|
|
||||
|
(* for item in content -*) |
||||
|
(( render(item) )) |
||||
|
(* endfor *) |
@ -1,3 +1,3 @@ |
|||||
|
|
||||
ERROR : Template not found for \verb+(( content.__class__))+. See the logs for details. |
ERROR : Template not found for \verb+(( content.__class__.__name__ ))+. See the logs for details. |
||||
|
|
||||
|
@ -1 +1 @@ |
|||||
|
{language: english} |
||||
|
@ -1,4 +1,5 @@ |
|||||
|
{language: english} |
||||
|
|
||||
{start_of_verse} |
{start_of_verse} |
||||
A verse line |
A verse line |
||||
{end_of_verse} |
{end_of_verse} |
||||
|
@ -1,2 +1,3 @@ |
|||||
|
{language: english} |
||||
{title: A directive} |
{title: A directive} |
||||
|
|
||||
|
@ -1 +1,2 @@ |
|||||
|
{language: english} |
||||
|
|
||||
|
@ -1,4 +1,5 @@ |
|||||
|
{language: english} |
||||
|
|
||||
{start_of_chorus} |
{start_of_chorus} |
||||
A one line chorus |
A one line chorus |
||||
{end_of_chorus} |
{end_of_chorus} |
||||
|
@ -1,4 +1,5 @@ |
|||||
|
{language: english} |
||||
|
|
||||
{start_of_bridge} |
{start_of_bridge} |
||||
A one line bridge |
A one line bridge |
||||
{end_of_bridge} |
{end_of_bridge} |
||||
|
@ -1 +1,2 @@ |
|||||
|
{language: english} |
||||
|
|
||||
|
@ -1,4 +1,5 @@ |
|||||
|
{language: english} |
||||
|
|
||||
{start_of_tab} |
{start_of_tab} |
||||
A tab |
A tab |
||||
{end_of_tab} |
{end_of_tab} |
||||
|
@ -1,4 +1,7 @@ |
|||||
|
{language: english} |
||||
|
|
||||
|
|
||||
|
|
||||
{start_of_verse} |
{start_of_verse} |
||||
A lot of new lines |
A lot of new lines |
||||
{end_of_verse} |
{end_of_verse} |
||||
|
@ -1,5 +1,8 @@ |
|||||
|
{language: english} |
||||
{title: and a directive} |
{title: and a directive} |
||||
|
|
||||
|
|
||||
|
|
||||
{start_of_verse} |
{start_of_verse} |
||||
A lot of new lines |
A lot of new lines |
||||
{end_of_verse} |
{end_of_verse} |
||||
|
@ -1,4 +1,5 @@ |
|||||
|
{language: english} |
||||
|
|
||||
{start_of_verse} |
{start_of_verse} |
||||
A line[A] with a chord |
A line[A] with a chord |
||||
{end_of_verse} |
{end_of_verse} |
||||
|
@ -1,4 +1,5 @@ |
|||||
|
{language: english} |
||||
|
|
||||
{start_of_verse} |
{start_of_verse} |
||||
A line ending with a chord[A] |
A line ending with a chord[A] |
||||
{end_of_verse} |
{end_of_verse} |
||||
|
@ -1,4 +1,5 @@ |
|||||
|
{language: english} |
||||
|
|
||||
{start_of_verse} |
{start_of_verse} |
||||
[A]A line starting with a chord |
[A]A line starting with a chord |
||||
{end_of_verse} |
{end_of_verse} |
||||
|
@ -1,6 +1,7 @@ |
|||||
|
{language: english} |
||||
|
|
||||
{start_of_tab} |
{start_of_tab} |
||||
A table |
A table |
||||
wit many # weir [ |
wit many # weir [ |
||||
[ symbols |
[ symbols |
||||
{end_of_tab} |
{end_of_tab} |
||||
|
@ -1,4 +1,5 @@ |
|||||
|
{language: english} |
||||
|
|
||||
{start_of_verse} |
{start_of_verse} |
||||
A verse line |
A verse line |
||||
{end_of_verse} |
{end_of_verse} |
||||
|
@ -1,2 +1,3 @@ |
|||||
|
{language: english} |
||||
{title: A directive} |
{title: A directive} |
||||
|
|
||||
|
@ -1 +1 @@ |
|||||
|
{language: english} |
||||
|
@ -1,4 +1,5 @@ |
|||||
|
{language: english} |
||||
|
|
||||
{start_of_chorus} |
{start_of_chorus} |
||||
A one line chorus |
A one line chorus |
||||
{end_of_chorus} |
{end_of_chorus} |
||||
|
@ -1,4 +1,5 @@ |
|||||
|
{language: english} |
||||
|
|
||||
{start_of_bridge} |
{start_of_bridge} |
||||
A one line bridge |
A one line bridge |
||||
{end_of_bridge} |
{end_of_bridge} |
||||
|
@ -1 +1,2 @@ |
|||||
|
{language: english} |
||||
|
|
||||
|
@ -1,4 +1,5 @@ |
|||||
|
{language: english} |
||||
|
|
||||
{start_of_tab} |
{start_of_tab} |
||||
A tab |
A tab |
||||
{end_of_tab} |
{end_of_tab} |
||||
|
@ -1,4 +1,7 @@ |
|||||
|
{language: english} |
||||
|
|
||||
|
|
||||
|
|
||||
{start_of_verse} |
{start_of_verse} |
||||
A lot of new lines |
A lot of new lines |
||||
{end_of_verse} |
{end_of_verse} |
||||
|
@ -1,5 +1,8 @@ |
|||||
|
{language: english} |
||||
{title: and a directive} |
{title: and a directive} |
||||
|
|
||||
|
|
||||
|
|
||||
{start_of_verse} |
{start_of_verse} |
||||
A lot of new lines |
A lot of new lines |
||||
{end_of_verse} |
{end_of_verse} |
||||
|
@ -1,16 +1,17 @@ |
|||||
|
{language: english} |
||||
|
|
||||
{start_of_verse} |
{start_of_verse} |
||||
[A]Simple |
[A]Simple |
||||
[Bb]Bémol |
[Bb]Bémol |
||||
[C#]Dièse |
[C#]Dièse |
||||
[Adim]dim |
[Adim]dim |
||||
[Dmaj]maj |
[Dmaj]maj |
||||
[Em3]m chiffre |
[Em3]m chiffre |
||||
[G4]Nombre |
[G4]Nombre |
||||
[Emaj3]maj et nombre |
[Emaj3]maj et nombre |
||||
[Absus8]bémol, sus et nombre |
[Absus8]bémol, sus et nombre |
||||
[A/A]Deux notes |
[A/A]Deux notes |
||||
[F/Fb]Deux notes, bémol |
[F/Fb]Deux notes, bémol |
||||
[B/C#]Deux notes, dièse |
[B/C#]Deux notes, dièse |
||||
[Ab B#/A]Plusieurs notes à la suite |
[Ab B#/A]Plusieurs notes à la suite |
||||
{end_of_verse} |
{end_of_verse} |
||||
|
@ -1,52 +1,60 @@ |
|||||
|
{language: english} |
||||
|
{columns: 2} |
||||
{title: Greensleeves} |
{title: Greensleeves} |
||||
{title: Un autre sous-titre} |
{title: Un autre sous-titre} |
||||
{title: Un sous titre} |
{title: Un sous titre} |
||||
{by: Traditionnel} |
{artist: Traditionnel} |
||||
{language: english} |
|
||||
{columns: 2} |
|
||||
{cov: DIRNAME/traditionnel} |
|
||||
{album: Angleterre} |
{album: Angleterre} |
||||
|
{cov: DIRNAME/traditionnel} |
||||
|
|
||||
|
|
||||
|
|
||||
{partition: DIRNAME/greensleeves.ly} |
{partition: DIRNAME/greensleeves.ly} |
||||
|
|
||||
|
|
||||
{start_of_verse} |
{start_of_verse} |
||||
A[Am]las, my love, ye [G]do me wrong |
A[Am]las, my love, ye [G]do me wrong |
||||
To [Am]cast me oft dis[E]curteously |
To [Am]cast me oft dis[E]curteously |
||||
And [Am]I have loved [G]you so long |
And [Am]I have loved [G]you so long |
||||
De[Am]lighting [E]in your [Am]companie |
De[Am]lighting [E]in your [Am]companie |
||||
{end_of_verse} |
{end_of_verse} |
||||
|
|
||||
|
|
||||
{start_of_chorus} |
{start_of_chorus} |
||||
[C]Green[B]sleeves was [G]all my joy |
[C]Green[B]sleeves was [G]all my joy |
||||
[Am]Greensleeves was [E]my delight |
[Am]Greensleeves was [E]my delight |
||||
[C]Greensleeves was my [G]heart of gold |
[C]Greensleeves was my [G]heart of gold |
||||
And [Am]who but [E]Ladie [Am]Greensleeves |
And [Am]who but [E]Ladie [Am]Greensleeves |
||||
{end_of_chorus} |
{end_of_chorus} |
||||
|
|
||||
|
|
||||
{start_of_verse} |
{start_of_verse} |
||||
I [Am]have been ready [G]at your hand |
I [Am]have been ready [G]at your hand |
||||
To [Am]grant what ever [E]you would crave |
To [Am]grant what ever [E]you would crave |
||||
I [Am]have both waged [G]life and land |
I [Am]have both waged [G]life and land |
||||
Your [Am]love and [E]good will [Am]for to have |
Your [Am]love and [E]good will [Am]for to have |
||||
{end_of_verse} |
{end_of_verse} |
||||
|
|
||||
|
|
||||
{start_of_verse} |
{start_of_verse} |
||||
I [Am]bought thee kerchers [G]to thy head |
I [Am]bought thee kerchers [G]to thy head |
||||
That [Am]were wrought fine and [E]gallantly |
That [Am]were wrought fine and [E]gallantly |
||||
I [Am]kept thee both at [G]boord and bed |
I [Am]kept thee both at [G]boord and bed |
||||
Which [Am]cost my [E]purse well [Am]favouredly |
Which [Am]cost my [E]purse well [Am]favouredly |
||||
{end_of_verse} |
{end_of_verse} |
||||
|
|
||||
|
|
||||
{start_of_verse} |
{start_of_verse} |
||||
I [Am]bought thee peticotes [G]of the best |
I [Am]bought thee peticotes [G]of the best |
||||
The [Am]cloth so fine as [E]fine might be |
The [Am]cloth so fine as [E]fine might be |
||||
I [Am]gave thee jewels [G]for thy chest |
I [Am]gave thee jewels [G]for thy chest |
||||
And [Am]all this [E]cost I [Am]spent on thee |
And [Am]all this [E]cost I [Am]spent on thee |
||||
{end_of_verse} |
{end_of_verse} |
||||
|
|
||||
|
|
||||
{start_of_verse} |
{start_of_verse} |
||||
Thy [Am]smock of silke, both [G]faire and white |
Thy [Am]smock of silke, both [G]faire and white |
||||
With [Am]gold embrodered [E]gorgeously |
With [Am]gold embrodered [E]gorgeously |
||||
Thy [Am]peticote of [G]sendall right |
Thy [Am]peticote of [G]sendall right |
||||
And [Am]this I [E]bought thee [Am]gladly |
And [Am]this I [E]bought thee [Am]gladly |
||||
{end_of_verse} |
{end_of_verse} |
||||
|
@ -1,6 +1,7 @@ |
|||||
|
{language: english} |
||||
|
|
||||
{start_of_verse} |
{start_of_verse} |
||||
This is invalid. |
This is invalid. |
||||
This [A]too. |
This [A]too. |
||||
And []as well. |
And []as well. |
||||
{end_of_verse} |
{end_of_verse} |
||||
|
@ -0,0 +1,2 @@ |
|||||
|
{language: english} |
||||
|
|
Loading…
Reference in new issue