Browse Source

change font size type to int value (synchro with songbook-client)

remotes/origin/translate_notes
Romain Goffe 14 years ago
parent
commit
d09d9794da
  1. 2
      songbook.py
  2. 2
      templates/ancient.tmpl
  3. 2
      templates/minimal.tmpl
  4. 2
      templates/patacrep-en.tmpl
  5. 2
      templates/patacrep.tmpl

2
songbook.py

@ -38,6 +38,8 @@ def toValue(parameter, data):
return joinText.join(data) return joinText.join(data)
elif parameter["type"] == "color": elif parameter["type"] == "color":
return data[1:] return data[1:]
elif parameter["type"] == "font":
return data+'pt'
elif parameter["type"] == "enum": elif parameter["type"] == "enum":
return data return data
elif parameter["type"] == "flag": elif parameter["type"] == "flag":

2
templates/ancient.tmpl

@ -37,7 +37,7 @@
%%: {"name":"picturecopyright", "description":"Copyright", "default":"foxygamergirl@deviantart.com"}, %%: {"name":"picturecopyright", "description":"Copyright", "default":"foxygamergirl@deviantart.com"},
%%: {"name":"footer", "description":"Footer", "default":"\\begin{flushleft}\\includegraphics[width=3cm]{on-fire}\\end{flushleft}"}, %%: {"name":"footer", "description":"Footer", "default":"\\begin{flushleft}\\includegraphics[width=3cm]{on-fire}\\end{flushleft}"},
%%: {"name":"license", "description":"License", "default":"\\input{license.tex}"}, %%: {"name":"license", "description":"License", "default":"\\input{license.tex}"},
%%: {"name":"mainfontsize", "description":"Font Size", "values":["10pt","11pt","12pt"], "default":"11pt"}, %%: {"name":"mainfontsize", "description":"Font Size", "type"="font", "default":"11"},
%%: {"name":"songnumberbgcolor", "description":"Number Shade", "type":"color", "default":"#D1E4AE"}, %%: {"name":"songnumberbgcolor", "description":"Number Shade", "type":"color", "default":"#D1E4AE"},
%%: {"name":"notebgcolor", "description":"Note Shade", "type":"color", "default":"#D1E4AE"}, %%: {"name":"notebgcolor", "description":"Note Shade", "type":"color", "default":"#D1E4AE"},
%%: {"name":"indexbgcolor", "description":"Index Shade", "type":"color", "default":"#D1E4AE"} %%: {"name":"indexbgcolor", "description":"Index Shade", "type":"color", "default":"#D1E4AE"}

2
templates/minimal.tmpl

@ -27,7 +27,7 @@
%%:[ %%:[
%%: {"name":"booktype", "description":"Type", "type":"enum", "values":["chorded","lyric"], "default":"chorded", "mandatory":true}, %%: {"name":"booktype", "description":"Type", "type":"enum", "values":["chorded","lyric"], "default":"chorded", "mandatory":true},
%%: {"name":"bookoptions", "description":"Options", "type":"flag", "values":["diagram","lilypond","tabs"], "join":",", "mandatory":true, "default":["diagram"]}, %%: {"name":"bookoptions", "description":"Options", "type":"flag", "values":["diagram","lilypond","tabs"], "join":",", "mandatory":true, "default":["diagram"]},
%%: {"name":"mainfontsize", "description":"Font Size", "type":"enum", "values":["10pt","11pt","12pt"], "default":"10pt"}, %%: {"name":"mainfontsize", "description":"Font Size", "type":"font", "default":"10"},
%%:] %%:]
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% begin document % begin document

2
templates/patacrep-en.tmpl

@ -37,7 +37,7 @@
%%: {"name":"picturecopyright", "description":"Copyright", "default":"Katie8594 @ deviantart.com"}, %%: {"name":"picturecopyright", "description":"Copyright", "default":"Katie8594 @ deviantart.com"},
%%: {"name":"footer", "description":"Footer", "default":"\\begin{flushleft}\\includegraphics[width=3cm]{on-fire}\\end{flushleft}"}, %%: {"name":"footer", "description":"Footer", "default":"\\begin{flushleft}\\includegraphics[width=3cm]{on-fire}\\end{flushleft}"},
%%: {"name":"license", "description":"License", "default":"\\input{license-en.tex}"}, %%: {"name":"license", "description":"License", "default":"\\input{license-en.tex}"},
%%: {"name":"mainfontsize", "description":"Font Size", "values":["10pt","11pt","12pt"], "default":"10pt"}, %%: {"name":"mainfontsize", "description":"Font Size", "type"="font", "default":"10"},
%%: {"name":"songnumberbgcolor", "description":"Number Shade", "type":"color", "default":"#D1E4AE"}, %%: {"name":"songnumberbgcolor", "description":"Number Shade", "type":"color", "default":"#D1E4AE"},
%%: {"name":"notebgcolor", "description":"Note Shade", "type":"color", "default":"#D1E4AE"}, %%: {"name":"notebgcolor", "description":"Note Shade", "type":"color", "default":"#D1E4AE"},
%%: {"name":"indexbgcolor", "description":"Index Shade", "type":"color", "default":"#D1E4AE"} %%: {"name":"indexbgcolor", "description":"Index Shade", "type":"color", "default":"#D1E4AE"}

2
templates/patacrep.tmpl

@ -37,7 +37,7 @@
%%: {"name":"picturecopyright", "description":"Copyright", "default":"foxygamergirl@deviantart.com"}, %%: {"name":"picturecopyright", "description":"Copyright", "default":"foxygamergirl@deviantart.com"},
%%: {"name":"footer", "description":"Footer", "default":"\\begin{flushleft}\\includegraphics[width=3cm]{on-fire}\\end{flushleft}"}, %%: {"name":"footer", "description":"Footer", "default":"\\begin{flushleft}\\includegraphics[width=3cm]{on-fire}\\end{flushleft}"},
%%: {"name":"license", "description":"License", "default":"\\input{license.tex}"}, %%: {"name":"license", "description":"License", "default":"\\input{license.tex}"},
%%: {"name":"mainfontsize", "description":"Font Size", "values":["10pt","11pt","12pt"], "default":"10pt"}, %%: {"name":"mainfontsize", "description":"Font Size", "type":"font", "default":"10"},
%%: {"name":"songnumberbgcolor", "description":"Number Shade", "type":"color", "default":"#D1E4AE"}, %%: {"name":"songnumberbgcolor", "description":"Number Shade", "type":"color", "default":"#D1E4AE"},
%%: {"name":"notebgcolor", "description":"Note Shade", "type":"color", "default":"#D1E4AE"}, %%: {"name":"notebgcolor", "description":"Note Shade", "type":"color", "default":"#D1E4AE"},
%%: {"name":"indexbgcolor", "description":"Index Shade", "type":"color", "default":"#D1E4AE"} %%: {"name":"indexbgcolor", "description":"Index Shade", "type":"color", "default":"#D1E4AE"}

Loading…
Cancel
Save