Browse Source

Mise a jour des templates avec les traductions.

pull/22/head
Luthaf 11 years ago
parent
commit
b2e827712e
  1. 60
      songbook_core/data/templates/default.tex
  2. 40
      songbook_core/data/templates/layout.tex
  3. 36
      songbook_core/data/templates/patacrep.tex
  4. 11
      songbook_core/data/templates/songs.tex

60
songbook_core/data/templates/default.tex

@ -1,26 +1,42 @@
(% variables %) (% variables %)
[ {
{"name":"title", "description":"Title", "default":"Recueil de chansons pour guitare", "mandatory":true}, "title": {"description": {"en": "Title", "fr": "Titre"},
{"name":"author", "description":"Author", "default":"The Songbook Team", "mandatory":true}, "default": {"en": "Guitar songbook", "fr": "Recueil de chansons pour guitare"},
{"name":"booktype", "description":"Type", "type":"enum", "values":["chorded","lyric"], "default":"chorded", "mandatory":true}, "mandatory":true
{"name":"lang", "description":"Language", "default":"english"}, },
{"name":"instruments", "description":"Instruments", "type":"flag", "values":["guitar","ukulele"], "join":",", "mandatory":true, "default":["guitar"]}, "author": {"description": {"en": "Author", "fr": "Auteur"},
{"name":"bookoptions", "description":"Options", "type":"flag", "values":["diagram","importantdiagramonly","lilypond","pictures","tabs","repeatchords","onesongperpage"], "join":",", "mandatory":true, "default":["diagram","pictures"]}, "default": {"en": "The Songbook Team", "fr": "L'équipe Songbook"},
{"name":"version", "description":"Version", "default":"unknown"}, "mandatory":true
{"name":"subtitle", "description":"Subtitle"}, },
{"name":"web", "description":"Web", "default":"http://www.patacrep.com"}, "subtitle": {"description": {"en": "Subtitle", "fr": "Sous-titre"},
{"name":"mail", "description":"Email", "default":"crep@team-on-fire.com"}, "default": {"default": ""}
{"name":"picture", "description":"Picture", "type":"file", "default":"treble_a"}, },
{"name":"picturecopyright", "description":"Copyright", "default":"Dbolton \\url{http://commons.wikimedia.org/wiki/User:Dbolton}"}, "version":{ "description": {"en": "Version", "fr": "Version"},
{"name":"footer", "description":"Footer", "default":"\\begin{flushright}Generated using Songbook (\\url{http://www.patacrep.com})\\end{flushright}"}, "default": {"default": ""}
{"name":"mainfontsize", "description":"Font Size", "type":"font", "default":"10"}, },
{"name":"songnumberbgcolor", "description":"Number Shade", "type":"color", "default":"D1E4AE"}, "web": {"description": {"en": "Website", "fr": "Site web"},
{"name":"notebgcolor", "description":"Note Shade", "type":"color", "default":"D1E4AE"}, "default": {"default": "http://www.patacrep.com"}
{"name":"indexbgcolor", "description":"Index Shade", "type":"color", "default":"D1E4AE"}, },
{"name":"titleprefixwords", "description":"Ignore some words in the beginning of song titles"}, "mail": {"description": {"en": "Email", "fr": "Adresse électronique"},
{"name":"authwords", "descriptipn":"Set of options to process author string (LaTeX commands authsepword, authignoreword, authbyword)"}, "default": {"default": "crep@team-on-fire.com"}
{"name":"languages", "description":"List of languages used by songs", "default":"english"} },
] "picture": {"description": {"en": "Cover picture", "fr": "Image de couverture"},
"type": "file",
"default": {"default": "treble_a"}
},
"picturecopyright": {"description": {"en": "Copyright for the cover picture", "fr": "Copyright pour l'image de couverture"},
"default": {"default": "Dbolton \\url{http://commons.wikimedia.org/wiki/User:Dbolton}"}
},
"footer": {"description": {"en": "Footer", "fr": "Pied de page"},
"default": {"default": "\\begin{flushright}Generated using Songbook (\\url{http://www.patacrep.com})\\end{flushright}"}
},
"titleprefixwords": {"description": {"en": "Ignore some words in the beginning of song titles",
"fr": "Ignore des mots dans le classement des chansons"}
},
"authwords": {"descriptipn": {"en": "Set of options to process author string (LaTeX commands authsepword, authignoreword, authbyword)",
"fr": "Options pour traiter les noms d'auteurs (commandes LaTeX authsepword, authignoreword, authbyword)"}
}
}
(% endvariables %) (% endvariables %)
(* extends "songs.tex" *) (* extends "songs.tex" *)

40
songbook_core/data/templates/layout.tex

@ -23,6 +23,46 @@
% Copyright (C) 2014 The Songbook team (www.patacrep.com) % Copyright (C) 2014 The Songbook team (www.patacrep.com)
(% variables %)
{
"instruments": {"description": {"en": "Instruments", "fr": "Instruments"},
"type": "flag",
"values": {"guitar": {"en": "Guitare", "fr": "Guitare"},
"ukulele": {"en": "Ukulele", "fr": "Ukulele"}
},
"join": ",",
"mandatory": true,
"default": {"default":["guitar"]}
},
"bookoptions": {"description": {"en": "Options", "fr": "Options"},
"type": "flag",
"values": {"diagram": {"en": "Chords diagrams", "fr": "Diagrammes d'accords"},
"importantdiagramonly": {"en": "Only importants diagrames", "fr": "Diagrammes importants uniquement"},
"lilypond": {"en": "Lilypond music sheets", "fr": "Partitions lilypond"},
"pictures": {"en": "Cover pictures", "fr": "Couvertures d'albums"},
"tabs": {"en": "Tablatures", "fr": "Tablatures"},
"repeatchords": {"en": "Repeat chords", "fr": "Répéter les accords"},
"onesongperpage": {"en": "One song per page", "fr": "Une chanson par page"}
},
"join": ",",
"mandatory": true,
"default": {"default":["diagram","pictures"]}
},
"booktype": {"description": {"en": "Type", "fr": "Type"},
"type": "enum",
"values": {"chorded": {"en": "With guitar chords", "fr": "Avec accords de guitare" },
"lyric": {"en": "Lyrics only", "fr": "Paroles uniquement"}
},
"default": {"default":"chorded"},
"mandatory": true
},
"mainfontsize": {"description": {"en": "Font Size", "fr": "Taille de police"},
"type":"font",
"default":{"default": "10"}
}
}
(% endvariables %)
(* block documentclass *) (* block documentclass *)
\documentclass[((booktype)), \documentclass[((booktype)),
(* for option in bookoptions *)((option)), (* for option in bookoptions *)((option)),

36
songbook_core/data/templates/patacrep.tex

@ -1,26 +1,18 @@
(% variables %) (% variables %)
[ {
{"name":"title", "description":"Title", "default":"Recueil de chansons pour guitare", "mandatory":true}, "songnumberbgcolor": {"description": {"en": "Number Shade", "fr": "Couleur des numéros"},
{"name":"author", "description":"Author", "default":"The Songbook Team", "mandatory":true}, "type": "color",
{"name":"booktype", "description":"Type", "type":"enum", "values":["chorded","lyric"], "default":"chorded", "mandatory":true}, "default": {"default": "D1E4AE"}
{"name":"lang", "description":"Language", "default":"english"}, },
{"name":"instruments", "description":"Instruments", "type":"flag", "values":["guitar","ukulele"], "join":",", "mandatory":true, "default":["guitar"]}, "notebgcolor": {"description": {"en": "Note Shade", "fr": "Couleur des notes"},
{"name":"bookoptions", "description":"Options", "type":"flag", "values":["diagram","importantdiagramonly","lilypond","pictures","tabs","repeatchords","onesongperpage"], "join":",", "mandatory":true, "default":["diagram","pictures"]}, "type": "color",
{"name":"version", "description":"Version", "default":"unknown"}, "default": {"default": "D1E4AE"}
{"name":"subtitle", "description":"Subtitle"}, },
{"name":"web", "description":"Web", "default":"http://www.patacrep.com"}, "indexbgcolor": {"description": {"en": "Index Shade", "fr": "Couleur d'index"},
{"name":"mail", "description":"Email", "default":"crep@team-on-fire.com"}, "type": "color",
{"name":"picture", "description":"Picture", "type":"file", "default":"treble_a"}, "default": {"default": "D1E4AE"}
{"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 %)
(* extends "default.tex" *) (* extends "default.tex" *)

11
songbook_core/data/templates/songs.tex

@ -1,3 +1,14 @@
(% variables %)
{
"languages": {"description": {"en": "List of languages used by songs", "fr": "Liste des langues utilisées par les chansons"},
"default": {"en": "english", "fr": "french"}
},
"lang": {"description": {"en": "Language", "fr": "Langue"},
"default": {"en": "english", "fr": "french"}
}
}
(% endvariables %)
(* extends "layout.tex" *) (* extends "layout.tex" *)
(* block songbookpreambule *) (* block songbookpreambule *)

Loading…
Cancel
Save