From 3d34985671654958686e0cf767ea88bd17af4af8 Mon Sep 17 00:00:00 2001 From: Louis Date: Fri, 11 Sep 2015 19:00:48 +0200 Subject: [PATCH] Support of tablature They are rendered using verbatim in LaTeX right now. May be rendered in a nicer way later. --- .../songs/chordpro/data/chordpro/content_tablature | 4 ++-- patacrep/songs/chordpro/data/latex/content_tablature | 9 +++++---- patacrep/songs/chordpro/test/07.sgc | 2 +- patacrep/songs/chordpro/test/07.tex | 6 +++--- patacrep/songs/chordpro/test/13.sgc | 6 +++--- patacrep/songs/chordpro/test/13.tex | 10 +++++----- patacrep/songs/chordpro/test/27.sgc | 2 +- patacrep/songs/chordpro/test/27.tex | 6 +++--- 8 files changed, 23 insertions(+), 22 deletions(-) diff --git a/patacrep/songs/chordpro/data/chordpro/content_tablature b/patacrep/songs/chordpro/data/chordpro/content_tablature index d8924b00..1036924b 100644 --- a/patacrep/songs/chordpro/data/chordpro/content_tablature +++ b/patacrep/songs/chordpro/data/chordpro/content_tablature @@ -1,5 +1,5 @@ {start_of_tab} - (* for foo in content.content *) - (( foo )) + (* for content in content.content *) + ((- content )) (* endfor *) {end_of_tab} diff --git a/patacrep/songs/chordpro/data/latex/content_tablature b/patacrep/songs/chordpro/data/latex/content_tablature index e4036783..85f74e6d 100644 --- a/patacrep/songs/chordpro/data/latex/content_tablature +++ b/patacrep/songs/chordpro/data/latex/content_tablature @@ -1,4 +1,5 @@ -% TODO TABLATURE -% (* for foo in content.content *) -% (( foo )) -% (* endfor *) +\begin{verbatim} +(* for content in content.content *) + ((- content )) +(* endfor *) +\end{verbatim} diff --git a/patacrep/songs/chordpro/test/07.sgc b/patacrep/songs/chordpro/test/07.sgc index 741fee4a..b05a536f 100644 --- a/patacrep/songs/chordpro/test/07.sgc +++ b/patacrep/songs/chordpro/test/07.sgc @@ -1,5 +1,5 @@ {language: english} {start_of_tab} - A tab +A tab {end_of_tab} diff --git a/patacrep/songs/chordpro/test/07.tex b/patacrep/songs/chordpro/test/07.tex index 6b8b48c7..01c0198e 100644 --- a/patacrep/songs/chordpro/test/07.tex +++ b/patacrep/songs/chordpro/test/07.tex @@ -6,8 +6,8 @@ ] -% TODO TABLATURE -% % A tab -% +\begin{verbatim} +A tab +\end{verbatim} \endsong diff --git a/patacrep/songs/chordpro/test/13.sgc b/patacrep/songs/chordpro/test/13.sgc index a2b60a5e..aa6f6603 100644 --- a/patacrep/songs/chordpro/test/13.sgc +++ b/patacrep/songs/chordpro/test/13.sgc @@ -1,7 +1,7 @@ {language: english} {start_of_tab} - A table - wit many # weir [ - [ symbols +A table +wit many # weir [ +[ symbols {end_of_tab} diff --git a/patacrep/songs/chordpro/test/13.tex b/patacrep/songs/chordpro/test/13.tex index 18ed8f96..0bce3b58 100644 --- a/patacrep/songs/chordpro/test/13.tex +++ b/patacrep/songs/chordpro/test/13.tex @@ -6,10 +6,10 @@ ] -% TODO TABLATURE -% % A table -% % wit many # weir [ -% % [ symbols -% +\begin{verbatim} +A table +wit many # weir [ +[ symbols +\end{verbatim} \endsong diff --git a/patacrep/songs/chordpro/test/27.sgc b/patacrep/songs/chordpro/test/27.sgc index 741fee4a..b05a536f 100644 --- a/patacrep/songs/chordpro/test/27.sgc +++ b/patacrep/songs/chordpro/test/27.sgc @@ -1,5 +1,5 @@ {language: english} {start_of_tab} - A tab +A tab {end_of_tab} diff --git a/patacrep/songs/chordpro/test/27.tex b/patacrep/songs/chordpro/test/27.tex index 6b8b48c7..01c0198e 100644 --- a/patacrep/songs/chordpro/test/27.tex +++ b/patacrep/songs/chordpro/test/27.tex @@ -6,8 +6,8 @@ ] -% TODO TABLATURE -% % A tab -% +\begin{verbatim} +A tab +\end{verbatim} \endsong