mirror of https://github.com/patacrep/patacrep.git
Louis
9 years ago
52 changed files with 393 additions and 219 deletions
@ -1 +1 @@ |
|||
{image: (( content.argument ))} |
|||
{image: (( content.argument|search_image ))} |
|||
|
@ -1 +1 @@ |
|||
{partition: ((content.argument))} |
|||
{partition: ((content.argument|search_partition))} |
|||
|
@ -1,5 +1,11 @@ |
|||
(*- if content.type != 'verse' -*) |
|||
{start_of_(( content.type ))} |
|||
(* for line in content.lines *) |
|||
(( render(line) )) |
|||
(* endfor *) |
|||
{end_of_(( content.type ))} |
|||
(* else -*) |
|||
(*- for line in content.lines -*) |
|||
(( render(line) )) |
|||
(* endfor -*) |
|||
(*- endif -*) |
|||
|
@ -1,35 +1,3 @@ |
|||
(* 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 *) |
|||
(* include 'song_header' *) |
|||
|
|||
(*- for title in titles -*) |
|||
{title: (( title ))} |
|||
(* endfor -*) |
|||
|
|||
(*- for author in authors -*) |
|||
{artist: (( author[1] )) (( author[0] ))} |
|||
(* endfor *) |
|||
|
|||
(*- for key in ['album', 'copyright', 'cov', '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 *) |
|||
(* include 'song_body' *) |
|||
|
@ -0,0 +1,3 @@ |
|||
(* for item in content -*) |
|||
(( render(item) )) |
|||
(* endfor *) |
@ -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', 'tag'] *) |
|||
(* if key in metadata -*) |
|||
{(( key )): (( metadata[key] ))} |
|||
(* endif *) |
|||
(* endfor *) |
|||
(* if 'cov' in metadata -*) |
|||
{(( 'cov' )): (( metadata['cov'].argument|search_image ))} |
|||
(* endif *) |
|||
|
|||
(*- for key in metadata.keys -*) |
|||
{key: (( key.keyword )): (( key.argument ))} |
|||
(* endfor *) |
|||
|
|||
(*- for chord in metadata['define'] *) |
|||
((- render(chord) )) |
|||
(* endfor *) |
@ -0,0 +1 @@ |
|||
((- content.pretty_chord -)) |
@ -0,0 +1,6 @@ |
|||
<span class="chord"> |
|||
(*- for chord in content.chords -*) |
|||
(* if not loop.first *) (* endif -*) |
|||
(( render(chord) -)) |
|||
(* endfor -*) |
|||
</span> |
@ -0,0 +1 @@ |
|||
<div class="comment">(( content.argument ))</div> |
@ -0,0 +1,31 @@ |
|||
<div(( " " -)) |
|||
class="chord-diagram"(( " " -)) |
|||
data-shift=" |
|||
(*- if content.basefret -*) |
|||
((content.basefret)) |
|||
(*- else -*) |
|||
0 |
|||
(*- endif *) |
|||
((- '" ' -)) |
|||
data-frets=" |
|||
(*- for fret in content.frets -*) |
|||
(* if fret is none -*) |
|||
x |
|||
(*- else -*) |
|||
(( fret -)) |
|||
(* endif -*) |
|||
(* endfor -*) |
|||
((- '" ' -)) |
|||
(* if content.fingers -*) |
|||
data-fingers=" |
|||
(*- for finger in content.fingers -*) |
|||
(* if finger is none -*) |
|||
- |
|||
(*- else -*) |
|||
(( finger -)) |
|||
(* endif -*) |
|||
(* endfor -*) |
|||
((- '" ' -)) |
|||
(* endif -*) |
|||
data-name="(( content.pretty_key ))"(( " " -)) |
|||
></div> |
@ -0,0 +1,3 @@ |
|||
(*- for chord in metadata['define'] *) |
|||
((- render(chord) )) |
|||
(* endfor *) |
@ -0,0 +1,3 @@ |
|||
|
|||
ERROR : Template not found for "(( content.__class__.__name__ ))". See the logs for details. |
|||
|
@ -0,0 +1 @@ |
|||
<div class="guitar_comment">(( content.argument ))</div> |
@ -0,0 +1 @@ |
|||
<img src="(( content.argument|search_image ))"> |
@ -0,0 +1,3 @@ |
|||
(* for item in content.line -*) |
|||
(( render(item) )) |
|||
(*- endfor *) |
@ -0,0 +1,3 @@ |
|||
(* if 'cov' in metadata -*) |
|||
<img src="(( metadata['cov'].argument|search_image ))"><br> |
|||
(* endif *) |
@ -0,0 +1 @@ |
|||
|
@ -0,0 +1 @@ |
|||
<a class="song-partition" href="(( content.argument|search_partition ))">((content.argument))</a> |
@ -0,0 +1 @@ |
|||
|
@ -0,0 +1,5 @@ |
|||
<pre class="tablature"> |
|||
(* for content in content.content *) |
|||
((- content )) |
|||
(* endfor *) |
|||
</pre> |
@ -0,0 +1,6 @@ |
|||
<p class="(( content.type ))"> |
|||
(*- for line in content.lines -*) |
|||
(* if not loop.first *)<br>(* endif -*) |
|||
(( render(line) )) |
|||
(* endfor -*) |
|||
</p> |
@ -0,0 +1 @@ |
|||
(( content.value )) |
@ -0,0 +1,5 @@ |
|||
(* include 'song_header' *) |
|||
|
|||
<div class="song_content"> |
|||
(* include 'song_body' *) |
|||
</div> |
@ -0,0 +1,3 @@ |
|||
(* for item in content -*) |
|||
(( render(item) )) |
|||
(* endfor *) |
@ -0,0 +1,30 @@ |
|||
(*- for title in titles -*) |
|||
(* if loop.first *) |
|||
<h1 class="song-title">(( title ))</h1> |
|||
(* else *) |
|||
<h2 class="song-title">(( title ))</h2> |
|||
(* endif *) |
|||
(* endfor -*) |
|||
|
|||
(*- for author in authors -*) |
|||
<h2 class="song-artist">(( author[1] )) (( author[0] ))</h2> |
|||
(* endfor *) |
|||
|
|||
|
|||
(*- for key in ['album', 'copyright', 'tag', 'columns', 'capo'] *) |
|||
(* if key in metadata -*) |
|||
<span class="song-(( key ))">(( key|capitalize )): (( metadata[key] ))</span><br/> |
|||
(* endif *) |
|||
(* endfor *) |
|||
|
|||
(* if language is defined -*) |
|||
<span class="song-language">Language: (( language ))</span><br> |
|||
(* endif *) |
|||
|
|||
(* include 'content_metadata_cover' *) |
|||
|
|||
(*- for key in metadata.keys -*) |
|||
{key: (( key.keyword )): (( key.argument ))} |
|||
(* endfor *) |
|||
|
|||
(* include 'content_define_list' *) |
@ -1 +1 @@ |
|||
\image{(( content.argument|search_image(path, config) ))} |
|||
\image{(( content.argument|search_image ))} |
|||
|
@ -1 +1 @@ |
|||
\lilypond{ ((- content.argument|search_image(path, config) -)) } |
|||
\lilypond{ ((- content.argument|search_partition -)) } |
|||
|
@ -0,0 +1,3 @@ |
|||
(* for item in content -*) |
|||
(( render(item) )) |
|||
(* endfor *) |
@ -1,5 +1,3 @@ |
|||
{language: english} |
|||
|
|||
{start_of_verse} |
|||
A verse line |
|||
{end_of_verse} |
|||
A verse line |
|||
|
@ -1,7 +1,4 @@ |
|||
{language: english} |
|||
|
|||
|
|||
|
|||
{start_of_verse} |
|||
A lot of new lines |
|||
{end_of_verse} |
|||
A lot of new lines |
|||
|
@ -1,5 +1,3 @@ |
|||
{language: english} |
|||
|
|||
{start_of_verse} |
|||
A line[A] with a chord |
|||
{end_of_verse} |
|||
A line[A] with a chord |
|||
|
@ -1,5 +1,3 @@ |
|||
{language: english} |
|||
|
|||
{start_of_verse} |
|||
A line ending with a chord[A] |
|||
{end_of_verse} |
|||
A line ending with a chord[A] |
|||
|
@ -1,5 +1,3 @@ |
|||
{language: english} |
|||
|
|||
{start_of_verse} |
|||
[A]A line starting with a chord |
|||
{end_of_verse} |
|||
[A]A line starting with a chord |
|||
|
@ -1,5 +1,3 @@ |
|||
{language: english} |
|||
|
|||
{start_of_verse} |
|||
A verse line |
|||
{end_of_verse} |
|||
A verse line |
|||
|
@ -1,7 +1,4 @@ |
|||
{language: english} |
|||
|
|||
|
|||
|
|||
{start_of_verse} |
|||
A lot of new lines |
|||
{end_of_verse} |
|||
A lot of new lines |
|||
|
@ -1,19 +1,17 @@ |
|||
{language: english} |
|||
|
|||
{start_of_verse} |
|||
[A]Simple |
|||
[Bb]Bémol |
|||
[C#]Dièse |
|||
[Adim]dim |
|||
[Dmaj]maj |
|||
[Em3]m chiffre |
|||
[G4]Nombre |
|||
[Emaj3]maj et nombre |
|||
[Absus8]bémol, sus et nombre |
|||
[A/A]Deux notes |
|||
[F/Fb]Deux notes, bémol |
|||
[B/C#]Deux notes, dièse |
|||
[Ab B#/A]Plusieurs notes à la suite |
|||
[E5/A*]Avec une étoile |
|||
[B#+8]Avec un plus |
|||
{end_of_verse} |
|||
[A]Simple |
|||
[Bb]Bémol |
|||
[C#]Dièse |
|||
[Adim]dim |
|||
[Dmaj]maj |
|||
[Em3]m chiffre |
|||
[G4]Nombre |
|||
[Emaj3]maj et nombre |
|||
[Absus8]bémol, sus et nombre |
|||
[A/A]Deux notes |
|||
[F/Fb]Deux notes, bémol |
|||
[B/C#]Deux notes, dièse |
|||
[Ab B#/A]Plusieurs notes à la suite |
|||
[E5/A*]Avec une étoile |
|||
[B#+8]Avec un plus |
|||
|
@ -1,5 +1,3 @@ |
|||
{language: english} |
|||
|
|||
{start_of_verse} |
|||
This is invalid. |
|||
{end_of_verse} |
|||
This is invalid. |
|||
|
@ -0,0 +1,5 @@ |
|||
{language: english} |
|||
{define: G frets 0 2 3 2} |
|||
{define: D7 frets 2 2 2 3 fingers 1 1 1 2} |
|||
{define: G frets 3 2 0 0 0 3} |
|||
{define: A#+2 base-fret 7 frets 0 1 3 3 x x fingers - 1 2 3 - -} |
@ -0,0 +1,4 @@ |
|||
{define: G frets 0 2 3 2} |
|||
{define: D7 frets 2 2 2 3 fingers 1 1 1 2} |
|||
{define: G frets 3 2 0 0 0 3} |
|||
{define: A#+2 base-fret 7 frets 0 1 3 3 x x fingers - 1 2 3 - -} |
@ -0,0 +1,14 @@ |
|||
\selectlanguage{english} |
|||
|
|||
\beginsong{}[ |
|||
by={ |
|||
}, |
|||
] |
|||
|
|||
\utab{G}{0232} |
|||
\utab{D7}{2223:1112} |
|||
\gtab{G}{320003} |
|||
\gtab{A#+2}{7:0133XX:012300} |
|||
|
|||
|
|||
\endsong |
Loading…
Reference in new issue