Browse Source

rename songbook.tmpl to patacrep.tmpl 2

remotes/origin/translate_notes
crep 14 years ago
parent
commit
bbee343f45
  1. 2
      naheulbeuk.sb
  2. 4
      songbook.py
  3. 2
      songbook.sb

2
naheulbeuk.sb

@ -1,5 +1,5 @@
{ {
"template" : "songbook.tmpl", "template" : "patacrep.tmpl",
"author" : "Crep (R.Goffe) \\and Lohrun (A.Dupas)", "author" : "Crep (R.Goffe) \\and Lohrun (A.Dupas)",
"footer" : "\\begin{flushleft}\\includegraphics[width=3cm]{on-fire}\\end{flushleft}", "footer" : "\\begin{flushleft}\\includegraphics[width=3cm]{on-fire}\\end{flushleft}",
"license" : "\\input{license.tex}", "license" : "\\input{license.tex}",

4
songbook.py

@ -50,7 +50,7 @@ def makeTexFile(sb, output):
name = output[:-4] name = output[:-4]
# default value # default value
template = "songbook.tmpl" template = "patacrep.tmpl"
songs = [] songs = []
# parse the songbook data # parse the songbook data
@ -119,7 +119,7 @@ def makeDepend(sb, output):
if "template" in sb: if "template" in sb:
filename = sb["template"] filename = sb["template"]
else: else:
filename = "songbook.tmpl" filename = "patacrep.tmpl"
tmpl = open("templates/"+filename) tmpl = open("templates/"+filename)
idx = map(lambda x: x.replace("\getname", name), matchRegexp(indexPattern, tmpl)) idx = map(lambda x: x.replace("\getname", name), matchRegexp(indexPattern, tmpl))
tmpl.close() tmpl.close()

2
songbook.sb

@ -1,5 +1,5 @@
{ {
"template" : "songbook.tmpl", "template" : "patacrep.tmpl",
"title" : "Recueil de chansons pour guitare", "title" : "Recueil de chansons pour guitare",
"author" : "Romain Goffe \\and Alexandre Dupas", "author" : "Romain Goffe \\and Alexandre Dupas",
"version" : "3.2", "version" : "3.2",

Loading…
Cancel
Save