diff --git a/chordbook.tex b/chordbook.tex index 92952d04..a3ab43bd 100644 --- a/chordbook.tex +++ b/chordbook.tex @@ -41,7 +41,7 @@ \title{Recueil de chansons pour guitare} \author{Romain Goffe \and Alexandre Dupas} -\subtitle{Tome 1} +%\subtitle{} \version{3.1} \mail{crep@team-on-fire.com} diff --git a/makefile b/makefile index df23e1ed..c6fc629d 100644 --- a/makefile +++ b/makefile @@ -28,6 +28,7 @@ SONGS = songs.sbd SONGS_SRC = $(shell ls songs/*/*.sg) MAKE_INDEX=./make-index +MAKE_SONGDB=./songbook-volume.py PRINT=printf "%s\n" PRINTTAB=printf "\t%s\n" @@ -69,6 +70,7 @@ clean: cleandoc @rm -f $(CIBLE:%=%.out) $(CIBLE:%=%.log) $(CIBLE:%=%.nav) $(CIBLE:%=%.snm) @rm -f $(CIBLE:%=%.dvi) @rm -f $(SONGS) + @rm -f *.sbd @rm -f *.sbx *.sxd cleanall: clean @@ -118,3 +120,6 @@ COMMA=, $(SONGS): $(SONGS_SRC) @$(PRINT) "\graphicspath{{img/},$(patsubst %,{%}$(COMMA),$(dir $(SONGS_SRC)))}" > $@ @cat $(SONGS_SRC) >> $@ + +%.sbd: %.sgl + @$(MAKE_SONGDB) --songs=$< --output=$@ diff --git a/songbook-volume.py b/songbook-volume.py index 0863e36f..b6a4c28f 100755 --- a/songbook-volume.py +++ b/songbook-volume.py @@ -1,6 +1,7 @@ #!/usr/bin/python # +import getopt, sys import os.path import glob @@ -18,7 +19,7 @@ def formatSongsDatabase( file, songs ): sdb.close(); -def main(): +def oldmain(): songfiles = glob.glob('songs/*/*.sg') songvolumes = glob.glob('songs-volume-*') @@ -35,6 +36,46 @@ def main(): formatSongsDatabase( 'songs.sdb', songfiles ) +def processSongFile( file, songfile ): + songs = [] + vol = open( songfile ) + for song in vol: + s = song.strip() + songs.append( s ) + vol.close() + formatSongsDatabase( file, songs ) + + +def usage(): + print "erf" + +def main(): + try: + opts, args = getopt.getopt(sys.argv[1:], + "hs:o:", + ["help","songs=","output="]) + except getopt.GetoptError, err: + # print help and exit + print str(err) + usage() + sys.exit(2) + + songFile = None + output = None + + for o, a in opts: + if o in ("-h", "--help"): + usage() + sys.exit() + elif o in ("-s", "--songs"): + songFile = a + elif o in ("-o", "--output"): + output = a + else: + assert False, "unhandled option" + + if songFile and output: + processSongFile( output, songFile) if __name__ == '__main__': main() diff --git a/volume-1.sgl b/volume-1.sgl new file mode 100644 index 00000000..f8411452 --- /dev/null +++ b/volume-1.sgl @@ -0,0 +1,171 @@ +songs/Alain_Bashung/Gaby_oh_gaby.sg +songs/Amy_MacDonald/Mr._Rock_n_Roll.sg +songs/Amy_MacDonald/This_is_the_life.sg +songs/Anais/Mon_coeur_mon_amour.sg +songs/Avril_Lavigne/Things_I_ll_never_say.sg +songs/Barry_Louis_Polisar/All_I_Want_Is_You.sg +songs/Belle_Sebastian/Piazza_New-York_catcher.sg +songs/Benabar/Le_diner.sg +songs/Benabar/Quatre_murs_et_un_toit.sg +songs/Benabar/Y_a_une_fille_qu_habite_chez_moi.sg +songs/Bob_Dylan/Blowin_in_the_wind.sg +songs/Bob_Dylan/Knocking_on_heavens_door.sg +songs/Bruce_Springsteen/Bring_Em_Home.sg +songs/Bruce_Springsteen/Buffalo_Gals.sg +songs/Bruce_Springsteen/O_Mary_Dont_You_Weep.sg +songs/Carter_Family/In_the_highways.sg +songs/Carter_Family/Keep_on_the_sunny_side.sg +songs/Cat_Stevens/My_Lady_d_Arbanville.sg +songs/Cat_Stevens/Sad_Lisa.sg +songs/Cat_Stevens/The_wind.sg +songs/Charles_Aznavour/Emmenez-moi.sg +songs/Dessins_Animes/Les_mysterieuses_cites_d_or.sg +songs/Dessins_Animes/L_histoire_d_Actarus.sg +songs/Dessins_Animes/Nicky_Larson.sg +songs/Dessins_Animes/Tom_Sawyer_debut.sg +songs/Dessins_Animes/Tom_Sawyer_fin.sg +songs/Eels/Dirty_girl.sg +songs/Eels/Hey_man.sg +songs/Eels/I_like_birds.sg +songs/Eels/Packing_blankets.sg +songs/Francis_Cabrel/Je_l_aime_a_mourir.sg +songs/Francis_Cabrel/Petite_Marie.sg +songs/Garfunkel_and_Oates/Fuck_You.sg +songs/Georges_Brassens/Cupidon_s_en_fout.sg +songs/Georges_Brassens/Grand_pere.sg +songs/Georges_Brassens/La_chanson_du_herisson.sg +songs/Georges_Brassens/La_mauvaise_reputation.sg +songs/Georges_Brassens/Le_gorille.sg +songs/Georges_Brassens/Les_copains_d_abord.sg +songs/Graeme_Allwright/Ca_je_l_ai_jamais_vu.sg +songs/Graeme_Allwright/Il_faut_que_je_m_en_aille.sg +songs/Graeme_Allwright/Johnny.sg +songs/Graeme_Allwright/Jolie_Bouteille.sg +songs/Graeme_Allwright/Jusqu_a_la_ceinture.sg +songs/Graeme_Allwright/La_mouche_bleue.sg +songs/Graeme_Allwright/Petites_boites.sg +songs/Graeme_Allwright/Petit_garcon.sg +songs/Green_Day/Boulevard_of_broken_dreams.sg +songs/Herman_Dune/I_wish_I_could_see_you_soon.sg +songs/Howie_Day/Collide.sg +songs/Hugues_Aufray/Je_reviens.sg +songs/Hugues_Aufray/Le_Bon_Dieu_s_enervait.sg +songs/Hugues_Aufray/Le_petit_ane_gris.sg +songs/Hugues_Aufray/N_y_pense_plus_tout_est_bien.sg +songs/Hugues_Aufray/Santiano.sg +songs/Hugues_Aufray/Tu_sens_bon_la_terre.sg +songs/Jacques_Brel/Vesoul.sg +songs/Jeff_Buckley/Hallelujah.sg +songs/Joe_Dassin/Le_chemin_de_Papa.sg +songs/Joe_Dassin/Siffler_sur_la_colline.sg +songs/Kana/Plantation.sg +songs/Karpatt/Le_magicien.sg +songs/Karpatt/Les_ptits_cailloux.sg +songs/Karpatt/Melisande.sg +songs/Kimya_Dawson/Tree_hugger.sg +songs/La_Rue_Ketanou/Impossible.sg +songs/La_Rue_Ketanou/La_rue_ketanou.sg +songs/La_Rue_Ketanou/Les_cigales.sg +songs/La_Rue_Ketanou/Les_mots.sg +songs/La_Rue_Ketanou/Ma_faute_a_toi.sg +songs/La_Rue_Ketanou/Tu_parles_trop.sg +songs/Le_Donjon_de_Naheulbeuk/10_sous_dans_ma_poche.sg +songs/Le_Donjon_de_Naheulbeuk/A_l_aventure_compagnons.sg +songs/Le_Donjon_de_Naheulbeuk/Bugger_Off.sg +songs/Le_Donjon_de_Naheulbeuk/La_biere_du_donjon.sg +songs/Le_Donjon_de_Naheulbeuk/La_vie_d_aventurier.sg +songs/Le_Donjon_de_Naheulbeuk/Les_Elfes_de_GreenElven.sg +songs/Le_Donjon_de_Naheulbeuk/Les_epees_Durandil.sg +songs/Le_Donjon_de_Naheulbeuk/Les_Souliers_De_Lady_Fae.sg +songs/Le_Donjon_de_Naheulbeuk/Mon_ancetre_Gurdil.sg +songs/Le_Donjon_de_Naheulbeuk/Troll_Farceur_et_Elfe_Farci.sg +songs/Le_Donjon_de_Naheulbeuk/Un_boulet_dans_le_groupe.sg +songs/Les_Amis_D_Ta_Femme/Cayenne.sg +songs/Les_Amis_D_Ta_Femme/Maree_Basse.sg +songs/Les_Cowboys_Fringants/Droit_devant.sg +songs/Les_Cowboys_Fringants/Etoiles_filantes.sg +songs/Les_Cowboys_Fringants/Histoire_de_peche.sg +songs/Les_Cowboys_Fringants/La_manifestation.sg +songs/Les_Cowboys_Fringants/Les_hirondelles.sg +songs/Les_Cowboys_Fringants/Toune_d_automne.sg +songs/Les_Fatals_Picards/Chasse_peche_et_nature.sg +songs/Les_Hurlements_d_Leo/Poemes.sg +songs/Les_Momes_du_CE2/Mamadou_avait_mal_aux_dents.sg +songs/Les_Ogres_de_Barback/3_-_0.sg +songs/Les_Ogres_de_Barback/Accordeon_pour_les_cons.sg +songs/Les_Ogres_de_Barback/Contes_vents_et_marees.sg +songs/Les_Ogres_de_Barback/Grand-Mere.sg +songs/Les_Ogres_de_Barback/L_air_bete.sg +songs/Les_Ogres_de_Barback/La_premiere_fois.sg +songs/Les_Ogres_de_Barback/Petite_Societe.sg +songs/Les_Ogres_de_Barback/Pour_me_rendre_a_mon_bureau.sg +songs/Les_Ogres_de_Barback/Rue_de_Panam.sg +songs/Les_Tetes_Raides/L_iditente.sg +songs/Les_Tetes_Raides/Patalo.sg +songs/Les_Tit_s_Nassels/Les_Tit_s_ballades.sg +songs/Les_VRP/Leo.sg +songs/Les_Wriggles/Julie_la_petite_olive.sg +songs/Les_Wriggles/Monolithe.sg +songs/Les_Wriggles/Poupine_et_Thierry.sg +songs/Linkin_Park/Numb.sg +songs/Louise_Attaque/Depuis_toujours.sg +songs/Louise_Attaque/Lea.sg +songs/Mano_Negra/Out_Of_Time_Man.sg +songs/Manu_Chao/Bienvenida_a_Tijuana.sg +songs/Manu_Chao/Clandestino.sg +songs/Manu_Chao/Desaparecido.sg +songs/Maurice_Dulac/Dis_a_ton_fils.sg +songs/Mes_souliers_sont_rouges/Les_souliers_rouges.sg +songs/Mes_souliers_sont_rouges/Sainte-Cecile.sg +songs/Mes_souliers_sont_rouges/The_rooster.sg +songs/Moriarty/Jimmy.sg +songs/Noir_Desir/Aux_sombres_heros_de_l_amer.sg +songs/Norah_Jones/Somewhere_over_the_rainbow.sg +songs/Oasis/Wonderwall.sg +songs/Oldelaf_et_Monsieur_D/Cafe.sg +songs/Oldelaf_et_Monsieur_D/Nathalie.sg +songs/Oldelaf_et_Monsieur_D/Petit_Pierrot.sg +songs/Oldelaf_et_Monsieur_D/Raoul_le_pitbull.sg +songs/Oldelaf_et_Monsieur_D/Rue_de_Nantes.sg +songs/Oldelaf_et_Monsieur_D/Trahis.sg +songs/Patrick_Bouchitey/Jesus_reviens.sg +songs/Pierre_Perret/Lily.sg +songs/Pixies/Where_Is_My_Mind.sg +songs/Pow_Wow/Le_lion_est_mort_ce_soir.sg +songs/Radiohead/Creep.sg +songs/Renaud/Des_que_le_vent_soufflera.sg +songs/Renaud/Hexagone.sg +songs/Renaud/Laisse_Beton.sg +songs/Renaud/Manu.sg +songs/Renaud/Marche_a_l_ombre.sg +songs/Renaud/Mistral_Gagnant.sg +songs/Renaud/Petite_fillle_des_sombres_rues.sg +songs/Simon_Garfunkel/Cecilia.sg +songs/Simon_Garfunkel/El_condor_pasa.sg +songs/Simon_Garfunkel/Feeling_groovy.sg +songs/Simon_Garfunkel/Scarborough_Fair.sg +songs/Simon_Garfunkel/The_boxer.sg +songs/Simon_Garfunkel/The_leaves_that_are_green.sg +songs/Simon_Garfunkel/The_sounds_of_silence.sg +songs/Simon_Garfunkel/Wednesday_morning_3a.m.sg +songs/Sinsemilia/J_prefere_100_fois.sg +songs/Steve_Waring/Le_matou.sg +songs/Terra_Naomi/Say_It_s_Possible.sg +songs/The_Beatles/Hey_Jude.sg +songs/The_Beatles/Ob-la-di_ob-la-da.sg +songs/The_Beatles/Yellow_submarine.sg +songs/The_Beatles/Yesterday.sg +songs/The_Eagles/Hotel_California.sg +songs/The_Moldy_Peaches/Anyone_Else_But_You.sg +songs/The_Pogues/Dirty_Old_Town.sg +songs/The_Pogues/Fairytale_of_New-York.sg +songs/Tri_Yann/La_jument_de_Michao.sg +songs/Tri_Yann/La_ville_que_j_ai_tant_aimee.sg +songs/Tri_Yann/Les_prisons_de_Nantes.sg +songs/Tri_Yann/Si_mort_a_mors.sg +songs/Tryo/Ce_que_l_on_s_aime.sg +songs/Tryo/Le_petit_chose.sg +songs/Tryo/L_hymne_de_nos_campagnes.sg +songs/Yves_Jamait/Et_je_bois.sg +songs/Yvon_Etienne/Chemise_rouge.sg +songs/Yvon_Etienne/Y_a_des_nouilles_et_du_nougat.sg diff --git a/volume-1.tex b/volume-1.tex new file mode 100644 index 00000000..7c256615 --- /dev/null +++ b/volume-1.tex @@ -0,0 +1,74 @@ +% Copyright (C) 2009 Romain Goffe, Alexandre Dupas +% Copyright (C) 2008 Kevin W. Hamlen +% +% This program is free software; you can redistribute it and/or +% modify it under the terms of the GNU General Public License +% as published by the Free Software Foundation; either version 2 +% of the License, or (at your option) any later version. +% +% This program is distributed in the hope that it will be useful, +% but WITHOUT ANY WARRANTY; without even the implied warranty of +% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +% GNU General Public License for more details. +% +% You should have received a copy of the GNU General Public License +% along with this program; if not, write to the Free Software +% Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, +% MA 02110-1301, USA. +% +% The latest version of this program can be obtained from +% http://songs.sourceforge.net. +% +% Modified to serve personnal purposes. Newer versions can be +% obtained from http://www.lohrun.net. + +\documentclass{crepbook} +\usepackage[bookmarks,bookmarksopen]{hyperref} +\usepackage[chorded]{songs} +\usepackage[utf8]{inputenc} +\usepackage[pdftex]{graphicx, color} +\usepackage[english,french]{babel} +\usepackage{fancybox} + +\usepackage{songbook} + +\newindex{titleidx}{volume1cbtitle} +\newauthorindex{authidx}{volume1cbauth} + +\graphicspath{ + {img/}, +} + +\title{Recueil de chansons pour guitare} +\author{Romain Goffe \and Alexandre Dupas} +\subtitle{Tome 1} +\version{3.1} +\mail{crep@team-on-fire.com} + +\picture{feel-the-music} +\picturecopyright{©foxygamergirl @ deviantart.com} + +\footer{ + \begin{flushleft} + \includegraphics[width=3cm]{on-fire} + \end{flushleft} +} + +\licence{\input{license.tex}} + +\begin{document} + +\maketitle + +\showindex{Index des chansons}{titleidx} +\showindex{Index des auteurs}{authidx} + +% desactivate ':' as an active character from babel[french] +\shorthandoff{:} + +\songsection{Chansons} +\begin{songs}{titleidx,authidx} + \input{volume-1.sbd} +\end{songs} + +\end{document}