Browse Source

[WIP] Gestion de la langue principale

Ce commit annule en partie le commit 59d7670440

Reste une correction à faire : supprimer les TODO.
pull/15/head
Louis 11 years ago
parent
commit
24a78f39dd
  1. 118
      songbook_core/data/latex/chords.sty
  2. 148
      songbook_core/data/latex/crepbook.cls
  3. 17
      songbook_core/data/templates/default.tex
  4. 8
      songbook_core/data/templates/songs.tex

118
songbook_core/data/latex/chords.sty

@ -4,7 +4,71 @@
\newcommand*{\Sharp}{\nolinebreak\hspace{-.05em}\raisebox{.6ex}{\,\small\bf \#}} \newcommand*{\Sharp}{\nolinebreak\hspace{-.05em}\raisebox{.6ex}{\,\small\bf \#}}
\newcommand*{\Flat}{\nolinebreak\hspace{-.05em}\raisebox{.6ex}{\,\small$\mathbf{\flat}$}} \newcommand*{\Flat}{\nolinebreak\hspace{-.05em}\raisebox{.6ex}{\,\small$\mathbf{\flat}$}}
\newcommand*{\chordrule}{\mbox{\hspace{1cm}\rule[0.5cm]{15cm}{0.02cm}}\vspace{-.4cm}} \newcommand*{\chordrule}{\mbox{\hspace{1cm}\rule[0.5cm]{15cm}{0.02cm}}\vspace{-.4cm}}
\newcommand*{\chordname}[2]{\makebox[3cm]{\raisebox{.5cm}{\large \textbf{\iflanguage{english}{#1}{#2}}}}} \newcommand*{\chordname}[1]{\makebox[3cm]{\raisebox{.5cm}{\large \textbf{#1}}}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Multilanguage management
\newcommand{\guitarchordsname}{
\IfStrEq{\mainlanguage}{english}{Guitar chords}{}
\IfStrEq{\mainlanguage}{french}{Accords de guitare}{}
}
\newcommand{\ukulelechordsname}{
\IfStrEq{\mainlanguage}{english}{Ukulele chords}{}
\IfStrEq{\mainlanguage}{french}{Accords de ukulélé}{}
}
\newcommand{\chordnameAsharp}{
\IfStrEq{\mainlanguage}{english}{A\Sharp = B\Flat}{}
\IfStrEq{\mainlanguage}{french}{La\Sharp = Si\Flat}{}
}
\newcommand{\chordnameA}{
\IfStrEq{\mainlanguage}{english}{A}{}
\IfStrEq{\mainlanguage}{french}{La}{}
}
\newcommand{\chordnameB}{
\IfStrEq{\mainlanguage}{english}{B}{}
\IfStrEq{\mainlanguage}{french}{Si}{}
}
\newcommand{\chordnameCsharp}{
\IfStrEq{\mainlanguage}{english}{C\Sharp = D\Flat}{}
\IfStrEq{\mainlanguage}{french}{Do\Sharp = Ré\Flat}{}
}
\newcommand{\chordnameC}{
\IfStrEq{\mainlanguage}{english}{C}{}
\IfStrEq{\mainlanguage}{french}{Do}{}
}
\newcommand{\chordnameDsharp}{
\IfStrEq{\mainlanguage}{english}{D\Sharp = E\Flat}{}
\IfStrEq{\mainlanguage}{french}{Ré\Sharp = Mi\Flat}{}
}
\newcommand{\chordnameD}{
\IfStrEq{\mainlanguage}{english}{D}{}
\IfStrEq{\mainlanguage}{french}{Ré}{}
}
\newcommand{\chordnameE}{
\IfStrEq{\mainlanguage}{english}{E}{}
\IfStrEq{\mainlanguage}{french}{Mi}{}
}
\newcommand{\chordnameFsharp}{
\IfStrEq{\mainlanguage}{english}{F\Sharp = G\Flat}{}
\IfStrEq{\mainlanguage}{french}{Fa\Sharp = Sol\Flat}{}
}
\newcommand{\chordnameF}{
\IfStrEq{\mainlanguage}{english}{F}{}
\IfStrEq{\mainlanguage}{french}{Fa}{}
}
\newcommand{\chordnameGsharp}{
\IfStrEq{\mainlanguage}{english}{G\Sharp = A\Flat}{}
\IfStrEq{\mainlanguage}{french}{Sol\Sharp = La\Flat}{}
}
\newcommand{\chordnameG}{
\IfStrEq{\mainlanguage}{english}{G}{}
\IfStrEq{\mainlanguage}{french}{Sol}{}
}
% End of multilanguage management
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\chords}{ \newcommand{\chords}{
\begin{songs}{} \begin{songs}{}
@ -16,8 +80,8 @@
\songcolumns{1} \songcolumns{1}
\ifguitar \ifguitar
\iflanguage{english}{\beginsong{Guitar chords}}{\beginsong{Accords de guitare}} \beginsong{\guitarchordsname}
\chordname{C}{Do} \chordname{\chordnameC}
\gtab{C}{~:X32010} \gtab{C}{~:X32010}
\gtab{C7}{~:X32310} \gtab{C7}{~:X32310}
\gtab{Cm}{3:X02210} \gtab{Cm}{3:X02210}
@ -29,7 +93,7 @@
\gtab*{C6}{~:XX2213} \gtab*{C6}{~:XX2213}
\chordrule \chordrule
\chordname{C\Sharp = D\Flat}{Do\Sharp = Ré\Flat} \chordname{\chordnameCsharp}
\gtab{C\#}{4:X02220} \gtab{C\#}{4:X02220}
\gtab{C\#7}{4:X02020} \gtab{C\#7}{4:X02020}
\gtab{C\#m}{4:X02210} \gtab{C\#m}{4:X02210}
@ -41,7 +105,7 @@
\gtab*{C\#6}{1:X02010} \gtab*{C\#6}{1:X02010}
\chordrule \chordrule
\chordname{D}{Ré} \chordname{\chordnameD}
\gtab{D}{~:XX0232} \gtab{D}{~:XX0232}
\gtab{D7}{~:XX0212} \gtab{D7}{~:XX0212}
\gtab{Dm}{~:XX0231} \gtab{Dm}{~:XX0231}
@ -53,7 +117,7 @@
\gtab*{D6}{~:X00202} \gtab*{D6}{~:X00202}
\chordrule \chordrule
\chordname{D\Sharp = E\Flat}{Ré\Sharp = Mi\Flat} \chordname{\chordnameDsharp}
\gtab{D\#}{6:X02220} \gtab{D\#}{6:X02220}
\gtab{D\#7}{6:X02020} \gtab{D\#7}{6:X02020}
\gtab{D\#m}{6:X02210} \gtab{D\#m}{6:X02210}
@ -65,7 +129,7 @@
\gtab*{D\#6}{1:X00202} \gtab*{D\#6}{1:X00202}
\chordrule \chordrule
\chordname{E}{Mi} \chordname{\chordnameE}
\gtab{E}{~:022100} \gtab{E}{~:022100}
\gtab{E7}{~:020100} \gtab{E7}{~:020100}
\gtab{Em}{~:022000} \gtab{Em}{~:022000}
@ -77,7 +141,7 @@
\gtab*{E6}{~:022120} \gtab*{E6}{~:022120}
\chordrule \chordrule
\chordname{F}{Fa} \chordname{\chordnameF}
\gtab{F}{1:022100} \gtab{F}{1:022100}
\gtab{F7}{1:020100} \gtab{F7}{1:020100}
\gtab{Fm}{1:022000} \gtab{Fm}{1:022000}
@ -89,7 +153,7 @@
\gtab*{F6}{~:XX0211} \gtab*{F6}{~:XX0211}
\chordrule \chordrule
\chordname{F\Sharp = G\Flat}{Fa\Sharp = Sol\Flat} \chordname{\chordnameFsharp}
\gtab{F\#}{2:022100} \gtab{F\#}{2:022100}
\gtab{F\#7}{2:020100} \gtab{F\#7}{2:020100}
\gtab{F\#m}{2:022000} \gtab{F\#m}{2:022000}
@ -101,7 +165,7 @@
\gtab*{F\#6}{~:XX1322} \gtab*{F\#6}{~:XX1322}
\chordrule \chordrule
\chordname{G}{Sol} \chordname{\chordnameG}
\gtab{G}{~:320003} \gtab{G}{~:320003}
\gtab{G7}{~:320001} \gtab{G7}{~:320001}
\gtab{Gm}{3:022000} \gtab{Gm}{3:022000}
@ -113,7 +177,7 @@
\gtab*{G6}{~:320000} \gtab*{G6}{~:320000}
\chordrule \chordrule
\chordname{G\Sharp = A\Flat}{Sol\Sharp = La\Flat} \chordname{\chordnameGsharp}
\gtab{G\#}{4:022100} \gtab{G\#}{4:022100}
\gtab{G\#7}{4:020100} \gtab{G\#7}{4:020100}
\gtab{G\#m}{4:022000} \gtab{G\#m}{4:022000}
@ -125,7 +189,7 @@
\gtab*{G\#6}{~:XX1111} \gtab*{G\#6}{~:XX1111}
\chordrule \chordrule
\chordname{A}{La} \chordname{\chordnameA}
\gtab{A}{~:X02220} \gtab{A}{~:X02220}
\gtab{A7}{~:X02020} \gtab{A7}{~:X02020}
\gtab{Am}{~:X02210} \gtab{Am}{~:X02210}
@ -137,7 +201,7 @@
\gtab*{A6}{~:XX2222} \gtab*{A6}{~:XX2222}
\chordrule \chordrule
\chordname{A\Sharp = B\Flat}{La\Sharp = Si\Flat} \chordname{\chordnameAsharp}
\gtab{A\#}{1:X02220} \gtab{A\#}{1:X02220}
\gtab{A\#7}{1:X02020} \gtab{A\#7}{1:X02020}
\gtab{A\#m}{1:X02210} \gtab{A\#m}{1:X02210}
@ -149,7 +213,7 @@
\gtab*{A\#6}{~:XX3333} \gtab*{A\#6}{~:XX3333}
\chordrule \chordrule
\chordname{B}{Si} \chordname{\chordnameB}
\gtab{B}{2:X02220} \gtab{B}{2:X02220}
\gtab{B7}{X21202} \gtab{B7}{X21202}
\gtab{Bm}{2:X02210} \gtab{Bm}{2:X02210}
@ -169,9 +233,9 @@
\fi \fi
\ifukulele \ifukulele
\iflanguage{english}{\beginsong{Ukulele chords}}{\beginsong{Accords de ukulélé}} \beginsong{\ukulelechordsname}
\chordname{C}{Do} \chordname{\chordnameC}
\utab{C}{~:0003} \utab{C}{~:0003}
\utab{C7}{~:0001} \utab{C7}{~:0001}
\utab{Cm}{~:0333} \utab{Cm}{~:0333}
@ -183,7 +247,7 @@
\utab*{Cdim}{2:3101} \utab*{Cdim}{2:3101}
\chordrule \chordrule
\chordname{C\Sharp = D\Flat}{Do\Sharp = Ré\Flat} \chordname{\chordnameCsharp}
\utab{C\#}{1:0003} \utab{C\#}{1:0003}
\utab{C\#7}{1:0001} \utab{C\#7}{1:0001}
\utab{C\#m}{~:1104} \utab{C\#m}{~:1104}
@ -195,7 +259,7 @@
\utab*{C\#dim}{~:0104} \utab*{C\#dim}{~:0104}
\chordrule \chordrule
\chordname{D}{Ré} \chordname{\chordnameD}
\utab{D}{~:2220} \utab{D}{~:2220}
\utab{D7}{2:0001} \utab{D7}{2:0001}
\utab{Dm}{~:2210} \utab{Dm}{~:2210}
@ -207,7 +271,7 @@
\utab*{Ddim}{1:0104} \utab*{Ddim}{1:0104}
\chordrule \chordrule
\chordname{D\Sharp = E\Flat}{Ré\Sharp = Mi\Flat} \chordname{\chordnameDsharp}
\utab{D\#}{1:2220} \utab{D\#}{1:2220}
\utab{D\#7}{3:0001} \utab{D\#7}{3:0001}
\utab{D\#m}{1:2210} \utab{D\#m}{1:2210}
@ -219,7 +283,7 @@
\utab*{D\#dim}{~:2320} \utab*{D\#dim}{~:2320}
\chordrule \chordrule
\chordname{E}{Mi} \chordname{\chordnameE}
\utab{E}{2:2220} \utab{E}{2:2220}
\utab{E7}{~:1202} \utab{E7}{~:1202}
\utab{Em}{~:0432} \utab{Em}{~:0432}
@ -231,7 +295,7 @@
\utab*{Edim}{1:2320} \utab*{Edim}{1:2320}
\chordrule \chordrule
\chordname{F}{Fa} \chordname{\chordnameF}
\utab{F}{~:2010} \utab{F}{~:2010}
\utab{F7}{~:2310} \utab{F7}{~:2310}
\utab{Fm}{~:1013} \utab{Fm}{~:1013}
@ -243,7 +307,7 @@
\utab*{Fdim}{2:2320} \utab*{Fdim}{2:2320}
\chordrule \chordrule
\chordname{F\Sharp = G\Flat}{Fa\Sharp = Sol\Flat} \chordname{\chordnameFsharp}
\utab{F\#}{1:2010} \utab{F\#}{1:2010}
\utab{F\#7}{1:2310} \utab{F\#7}{1:2310}
\utab{F\#m}{~:2120} \utab{F\#m}{~:2120}
@ -255,7 +319,7 @@
\utab*{F\#dim}{~:2020} \utab*{F\#dim}{~:2020}
\chordrule \chordrule
\chordname{G}{Sol} \chordname{\chordnameG}
\utab{G}{~:0232} \utab{G}{~:0232}
\utab{G7}{~:0212} \utab{G7}{~:0212}
\utab{Gm}{~:0231} \utab{Gm}{~:0231}
@ -267,7 +331,7 @@
\utab*{Gdim}{~:0131} \utab*{Gdim}{~:0131}
\chordrule \chordrule
\chordname{G\Sharp = A\Flat}{Sol\Sharp = La\Flat} \chordname{\chordnameGsharp}
\utab{G\#}{3:2010} \utab{G\#}{3:2010}
\utab{G\#7}{1:0212} \utab{G\#7}{1:0212}
\utab{G\#m}{1:0231} \utab{G\#m}{1:0231}
@ -279,7 +343,7 @@
\utab*{G\#dim}{1:0131} \utab*{G\#dim}{1:0131}
\chordrule \chordrule
\chordname{A}{La} \chordname{\chordnameA}
\utab{A}{~:2100} \utab{A}{~:2100}
\utab{A7}{~:0100} \utab{A7}{~:0100}
\utab{Am}{~:2000} \utab{Am}{~:2000}
@ -291,7 +355,7 @@
\utab*{Adim}{2:0131} \utab*{Adim}{2:0131}
\chordrule \chordrule
\chordname{A\Sharp = B\Flat}{La\Sharp = Si\Flat} \chordname{\chordnameAsharp}
\utab{A\#}{1:2100} \utab{A\#}{1:2100}
\utab{A\#7}{1:0100} \utab{A\#7}{1:0100}
\utab{A\#m}{1:2000} \utab{A\#m}{1:2000}
@ -303,7 +367,7 @@
\utab*{A\#dim}{~:3101} \utab*{A\#dim}{~:3101}
\chordrule \chordrule
\chordname{B}{Si} \chordname{\chordnameB}
\utab{B}{2:2100} \utab{B}{2:2100}
\utab{B7}{2:0100} \utab{B7}{2:0100}
\utab{Bm}{2:2000} \utab{Bm}{2:2000}

148
songbook_core/data/latex/crepbook.cls

@ -84,6 +84,91 @@
\fi \fi
% Start % Start
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Multilanguage management
\newcommand{\labelversionname}{%
\IfStrEq{\mainlanguage}{english}{version:}{}%
\IfStrEq{\mainlanguage}{french}{version :}{}%
}
\newcommand{\labeldatename}{%
\IfStrEq{\mainlanguage}{english}{date:}{}%
\IfStrEq{\mainlanguage}{french}{date :}{}%
}
\newcommand{\labelauthorname}{%
\IfStrEq{\mainlanguage}{english}{authors:}{}%
\IfStrEq{\mainlanguage}{french}{auteurs :}{}%
}
\newcommand{\labelwebname}{%
\IfStrEq{\mainlanguage}{english}{web:}{}%
\IfStrEq{\mainlanguage}{french}{web :}{}%
}
\newcommand{\labelmailname}{%
\IfStrEq{\mainlanguage}{english}{mail:}{}%
\IfStrEq{\mainlanguage}{french}{mail :}{}%
}
\newcommand{\originalsongname}{%
\IfStrEq{\mainlanguage}{english}{Original song:}{}%
\IfStrEq{\mainlanguage}{french}{Chanson originale :}{}%
}
\newcommand{\introname}{%
\IfStrEq{\mainlanguage}{english}{intro}{}%
\IfStrEq{\mainlanguage}{french}{intro}{}%
}
\newcommand{\outroname}{%
\IfStrEq{\mainlanguage}{english}{outro}{}%
\IfStrEq{\mainlanguage}{french}{outro}{}%
}
\newcommand{\bridgename}{%
\IfStrEq{\mainlanguage}{english}{bridge}{}%
\IfStrEq{\mainlanguage}{french}{pont}{}%
}
\newcommand{\chorusname}{%
\IfStrEq{\mainlanguage}{english}{chorus}{}%
\IfStrEq{\mainlanguage}{french}{refrain}{}%
}
\newcommand{\versename}{%
\IfStrEq{\mainlanguage}{english}{verse}{}%
\IfStrEq{\mainlanguage}{french}{couple}{}%
}
\newcommand{\soloname}{%
\IfStrEq{\mainlanguage}{english}{solo}{}%
\IfStrEq{\mainlanguage}{french}{solo}{}%
}
\newcommand{\patternname}{%
\IfStrEq{\mainlanguage}{english}{pattern}{}%
\IfStrEq{\mainlanguage}{french}{motif}{}%
}
\newcommand{\rythmname}{%
\IfStrEq{\mainlanguage}{english}{rythm}{}%
\IfStrEq{\mainlanguage}{french}{rythme}{}%
}
\newcommand{\transpositionname}{%
\IfStrEq{\mainlanguage}{english}{transposition:}{}%
\IfStrEq{\mainlanguage}{french}{transposition :}{}%
}
\newcommand{\songindexname}{%
\IfStrEq{\mainlanguage}{english}{Songs Index}{}%
\IfStrEq{\mainlanguage}{french}{Index des chansons}{}%
}
\newcommand{\authorindexname}{%
\IfStrEq{\mainlanguage}{english}{Authors Index}{}%
\IfStrEq{\mainlanguage}{french}{Index des auteurs}{}%
}
\newcommand{\songlistname}{%
\IfStrEq{\mainlanguage}{english}{Songs list}{}%
\IfStrEq{\mainlanguage}{french}{Liste des chansons}{}%
}
\newcommand{\chordlistname}{%
\IfStrEq{\mainlanguage}{english}{Chords list}{}%
\IfStrEq{\mainlanguage}{french}{Liste des accords}{}%
}
% End of multilanguage management
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\def\andname{and} \def\andname{and}
\def\lastandname{\unskip, and} \def\lastandname{\unskip, and}
@ -111,29 +196,9 @@
\def\picture#1{\gdef\@picture{#1}} \def\picture#1{\gdef\@picture{#1}}
\def\picturecopyright#1{\gdef\@picturecopyright{#1}} \def\picturecopyright#1{\gdef\@picturecopyright{#1}}
\def\footer#1{\gdef\@footer{#1}} \def\footer#1{\gdef\@footer{#1}}
\def\lang#1{\gdef\mainlanguage{#1}}
\clearheadinfo \clearheadinfo
\newcommand{\l@belVersion}{
\iflanguage{english}{\bf version:}{}
\iflanguage{french}{\bf version :}{}
}
\newcommand{\l@belDate}{
\iflanguage{english}{\bf date:}{}
\iflanguage{french}{\bf date :}{}
}
\newcommand{\l@belAuthor}{
\iflanguage{english}{\bf authors:}{}
\iflanguage{french}{\bf auteurs :}{}
}
\newcommand{\l@belWeb}{
\iflanguage{english}{\bf web:}{}
\iflanguage{french}{\bf web :}{}
}
\newcommand{\l@belMail}{
\iflanguage{english}{\bf mail:}{}
\iflanguage{french}{\bf mail :}{}
}
\renewcommand\maketitle{ \renewcommand\maketitle{
\@maketitle \@maketitle
@ -171,11 +236,11 @@
\begin{flushleft} \begin{flushleft}
\begin{tabular}{l l} \begin{tabular}{l l}
\if!\@version!\else{\l@belVersion} & \@version \\ \fi \if!\@version!\else{\textbf{\labelversionname}} & \@version \\ \fi
\if!\@date!\else{\l@belDate} & \@date \\ \fi \if!\@date!\else{\textbf{\labeldatename}} & \@date \\ \fi
\if!\@author!\else{\l@belAuthor} & \@author \\ \fi \if!\@author!\else{\textbf{\labelauthorname}} & \@author \\ \fi
\if!\@web!\else{\l@belWeb} & \url{\@web} \\ \fi \if!\@web!\else{\textbf{\labelwebname}} & \url{\@web} \\ \fi
\if!\@mail!\else{\l@belMail} & \url{\@mail} \\ \fi \if!\@mail!\else{\textbf{\labelmailname}} & \url{\@mail} \\ \fi
\end{tabular} \end{tabular}
\end{flushleft} \end{flushleft}
@ -193,8 +258,6 @@
\thispagestyle{empty} \thispagestyle{empty}
} }
\makeatletter
\newlength{\coverheight} \newlength{\coverheight}
\setlength{\coverheight}{2cm} \setlength{\coverheight}{2cm}
\newlength{\coverspace} \newlength{\coverspace}
@ -228,7 +291,7 @@
\renewcommand{\extendpostlude}{ \renewcommand{\extendpostlude}{
{\footnotesize% {\footnotesize%
\IfStrEq{\songoriginal}{}{}{ \IfStrEq{\songoriginal}{}{}{
\iflanguage{english}{Original song:}{Chanson originale :} \originalsongname
\songoriginal \songoriginal
} }
} }
@ -445,36 +508,28 @@
%% End of tabs.sty file %% End of tabs.sty file
\newcommand*{\Intro}{% \newcommand*{\Intro}{%
\iflanguage{english}{intro}{}% \introname%
\iflanguage{french}{intro}{}%
}% }%
\newcommand*{\Outro}{% \newcommand*{\Outro}{%
\iflanguage{english}{outro}{}% \outroname%
\iflanguage{french}{outro}{}%
}% }%
\newcommand*{\Bridge}{% \newcommand*{\Bridge}{%
\iflanguage{english}{bridge}{}% \bridgename%
\iflanguage{french}{pont}{}%
}% }%
\newcommand*{\Chorus}{% \newcommand*{\Chorus}{%
\iflanguage{english}{chorus}{}% \chorusname%
\iflanguage{french}{refrain}{}%
}% }%
\newcommand*{\Verse}{% \newcommand*{\Verse}{%
\iflanguage{english}{verse}{}% \versename%
\iflanguage{french}{couplet}{}%
}% }%
\newcommand*{\Solo}{% \newcommand*{\Solo}{%
\iflanguage{english}{solo}{}% \soloname%
\iflanguage{french}{solo}{}%
}% }%
\newcommand*{\Pattern}{% \newcommand*{\Pattern}{%
\iflanguage{english}{pattern}{}% \patternname%
\iflanguage{french}{motif}{}%
}% }%
\newcommand*{\Rythm}{% \newcommand*{\Rythm}{%
\iflanguage{english}{rythm}{}% \rythmname%
\iflanguage{french}{rythme}{}%
}% }%
\newcommand*{\Adlib}{% \newcommand*{\Adlib}{%
\emph{ad~lib.}% \emph{ad~lib.}%
@ -558,8 +613,7 @@
\newcommand{\transposition}[1]{% \newcommand{\transposition}[1]{%
\ifnorepeatchords% \ifnorepeatchords%
\musicnote{% \musicnote{%
\iflanguage{english}{transposition:~}{}% \transpositionname~
\iflanguage{french}{transposition~:~}{}%
\ifthenelse{#1>0}{#1$\Uparrow$}{\removefirstch@r#1$\Downarrow$}% \ifthenelse{#1>0}{#1$\Uparrow$}{\removefirstch@r#1$\Downarrow$}%
}% }%
\else% \else%

17
songbook_core/data/templates/default.tex

@ -41,14 +41,9 @@
(* endblock *) (* endblock *)
(* block index *) (* block index *)
(* if mainlang==english *) \showindex{TODOsongindexname}{titleidx}
\showindex{Songs Index}{titleidx} \showindex{TODOauthorindexname}{authidx}
\showindex{Authors Index}{authidx} (* if lang==french *)
(* else *)
\showindex{Index des chansons}{titleidx}
\showindex{Index des auteurs}{authidx}
(* endif *)
(* if mainlang==french *)
\notenamesin{A}{B}{C}{D}{E}{F}{G} \notenamesin{A}{B}{C}{D}{E}{F}{G}
\notenamesout{La}{Si}{Do}{}{Mi}{Fa}{Sol} \notenamesout{La}{Si}{Do}{}{Mi}{Fa}{Sol}
(* endif *) (* endif *)
@ -58,11 +53,7 @@
% list of chords % list of chords
\ifchorded \ifchorded
\phantomsection \phantomsection
(* if mainlang==english *) \addcontentsline{toc}{section}{TODOchordlistname}
\addcontentsline{toc}{section}{Chords list}
(* else *)
\addcontentsline{toc}{section}{Liste des accords}
(* endif *)
\chords \chords
\fi \fi
(* endblock *) (* endblock *)

8
songbook_core/data/templates/songs.tex

@ -3,21 +3,19 @@
(* block songbookpreambule *) (* block songbookpreambule *)
(( super() )) (( super() ))
(* for lang in songlist.languages() *) (* for lang in songlist.languages() *)
\PassOptionsToPackage{((lang))}{babel} \PassOptionsToPackage{((lang))}{babel}
(* endfor *) (* endfor *)
\usepackage[((lang))]{babel} \usepackage[((lang))]{babel}
\lang{((lang))}
\graphicspath{{((datadir))/img/}} \graphicspath{{((datadir))/img/}}
(* endblock *) (* endblock *)
(* block songs *) (* block songs *)
\phantomsection \phantomsection
(* if mainlang==english *) \addcontentsline{toc}{section}{TODOsonglistname}
\addcontentsline{toc}{section}{Songs list}
(* else *)
\addcontentsline{toc}{section}{Liste des chansons}
(* endif *)
\begin{songs}{((indexes|default('')))} \begin{songs}{((indexes|default('')))}
(* for song in songlist.songs *) (* for song in songlist.songs *)

Loading…
Cancel
Save