Browse Source

Suppression des variables inutiles

Suite aux modifications sur les templates :
https://github.com/patacrep/songbook-core/issues/18
accords
Louis 11 years ago
parent
commit
e915bf307c
  1. 3
      books/naheulbeuk.sb
  2. 28
      templates/data.tex
  3. 23
      templates/naheulbeuk.tex

3
books/naheulbeuk.sb

@ -20,5 +20,6 @@
"authwords" : { "authwords" : {
"sep" : ["and", "et"] "sep" : ["and", "et"]
}, },
"datadir" : ".." "datadir" : "..",
"notebgcolor" : "FFFDB3"
} }

28
templates/data.tex

@ -16,29 +16,13 @@
% along with this program; if not, write to the Free Software % along with this program; if not, write to the Free Software
% Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, % Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
% MA 02110-1301, USA. % MA 02110-1301, USA.
(% variables %) (% variables %)
[ {
{"name":"title", "description":"Title", "default":"Recueil de chansons pour guitare", "mandatory":true}, "version":{ "description": {"en": "Version", "fr": "Version"},
{"name":"author", "description":"Author", "default":"The Songbook Team", "mandatory":true}, "default": {"default": "3.7.2"}
{"name":"booktype", "description":"Type", "type":"enum", "values":["chorded","lyric"], "default":"chorded", "mandatory":true}, }
{"name":"lang", "description":"Language", "default":"english"}, }
{"name":"instruments", "description":"Instruments", "type":"flag", "values":["guitar","ukulele"], "join":",", "mandatory":true, "default":["guitar"]},
{"name":"bookoptions", "description":"Options", "type":"flag", "values":["diagram","importantdiagramonly","lilypond","pictures","tabs","repeatchords","onesongperpage"], "join":",", "mandatory":true, "default":["diagram","pictures"]},
{"name":"version", "description":"Version", "default":"unknown"},
{"name":"subtitle", "description":"Subtitle"},
{"name":"web", "description":"Web", "default":"http://www.patacrep.com"},
{"name":"mail", "description":"Email", "default":"crep@team-on-fire.com"},
{"name":"picture", "description":"Picture", "type":"file", "default":"treble_a"},
{"name":"picturecopyright", "description":"Copyright", "default":"Dbolton \\url{http://commons.wikimedia.org/wiki/User:Dbolton}"},
{"name":"footer", "description":"Footer", "default":"\\begin{flushright}Generated using Songbook (\\url{http://www.patacrep.com})\\end{flushright}"},
{"name":"mainfontsize", "description":"Font Size", "type":"font", "default":"10"},
{"name":"songnumberbgcolor", "description":"Number Shade", "type":"color", "default":"D1E4AE"},
{"name":"notebgcolor", "description":"Note Shade", "type":"color", "default":"D1E4AE"},
{"name":"indexbgcolor", "description":"Index Shade", "type":"color", "default":"D1E4AE"},
{"name":"titleprefixwords", "description":"Ignore some words in the beginning of song titles"},
{"name":"authwords", "descriptipn":"Set of options to process author string (LaTeX commands authsepword, authignoreword, authbyword)"},
{"name":"languages", "description":"List of languages used by songs", "default":"english"}
]
(% endvariables %) (% endvariables %)
% begin document % begin document

23
templates/naheulbeuk.tex

@ -17,29 +17,6 @@
% Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, % Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
% MA 02110-1301, USA. % MA 02110-1301, USA.
(% variables %)
[
{"name":"title", "description":"Title", "default":"Recueil de chansons pour guitare", "mandatory":true},
{"name":"author", "description":"Author", "default":"Crep (R. Goffe) \\and Lohrun (A. Dupas)", "mandatory":true},
{"name":"booktype", "description":"Type", "type":"enum", "values":["chorded","lyric"], "default":"chorded", "mandatory":true},
{"name":"lang", "description":"Language", "default":"english"},
{"name":"instruments", "description":"Instruments", "type":"flag", "values":["guitar","ukulele"], "join":",", "mandatory":true, "default":["guitar"]},
{"name":"bookoptions", "description":"Options", "type":"flag", "values":["diagram","importantdiagramonly","lilypond","pictures","tabs","repeatchords","onesongperpage"], "join":",", "mandatory":true, "default":["diagram","pictures"]},
{"name":"version", "description":"Version", "default":"3.7.2"},
{"name":"subtitle", "description":"Subtitle"},
{"name":"web", "description":"Web", "default":"http://www.patacrep.com"},
{"name":"mail", "description":"Email", "default":"crep@team-on-fire.com"},
{"name":"picture", "description":"Picture", "type":"file", "default":"feel-the-music"},
{"name":"picturecopyright", "description":"Copyright", "default":"foxygamergirl@deviantart.com"},
{"name":"footer", "description":"Footer", "default":"\\begin{flushleft}\\includegraphics[width=3cm]{on-fire}\\end{flushleft}"},
{"name":"mainfontsize", "description":"Font Size", "type":"font", "default":"10"},
{"name":"songnumberbgcolor", "description":"Number Shade", "type":"color", "default":"D1E4AE"},
{"name":"notebgcolor", "description":"Note Shade", "type":"color", "default":"FFFDB3"},
{"name":"indexbgcolor", "description":"Index Shade", "type":"color", "default":"D1E4AE"},
{"name":"languages", "description":"List of languages used by songs", "default":""}
]
(% endvariables %)
(* extends "data.tex" *) (* extends "data.tex" *)
(* block preambule *) (* block preambule *)

Loading…
Cancel
Save