Browse Source

Passage au nom Patacrep

pull/48/head
Luthaf 11 years ago
parent
commit
c6a7ea21c9
  1. 2
      NEWS
  2. 0
      patacrep/__init__.py
  3. 0
      patacrep/authors.py
  4. 12
      patacrep/build.py
  5. 0
      patacrep/data/examples/README
  6. 0
      patacrep/data/examples/example-all.sb
  7. 0
      patacrep/data/examples/example-layout.sb
  8. 0
      patacrep/data/examples/example-patacrep.sb
  9. 0
      patacrep/data/examples/example-songs.sb
  10. 0
      patacrep/data/examples/example.sb
  11. 0
      patacrep/data/examples/img/README
  12. 0
      patacrep/data/examples/img/treble_a.png
  13. 0
      patacrep/data/examples/latex/README
  14. 0
      patacrep/data/examples/songs/README
  15. 0
      patacrep/data/examples/songs/_lilypond/header
  16. 0
      patacrep/data/examples/songs/chevaliers_de_la_table_ronde.sg
  17. 0
      patacrep/data/examples/songs/example-en.sg
  18. 0
      patacrep/data/examples/songs/example-fr.sg
  19. 0
      patacrep/data/examples/songs/greensleeves.ly
  20. 0
      patacrep/data/examples/songs/greensleeves.sg
  21. 0
      patacrep/data/examples/songs/traditionnel.jpg
  22. 0
      patacrep/data/examples/songs/vent_frais.sg
  23. 0
      patacrep/data/examples/templates/README
  24. 0
      patacrep/data/latex/chords.sty
  25. 10
      patacrep/data/latex/crepbook.sty
  26. 4
      patacrep/data/latex/patacrep.sty
  27. 0
      patacrep/data/latex/songs.sty
  28. 0
      patacrep/data/latex/tabs.sty
  29. 0
      patacrep/data/templates/default.tex
  30. 0
      patacrep/data/templates/layout.tex
  31. 0
      patacrep/data/templates/patacrep.tex
  32. 2
      patacrep/data/templates/songs.tex
  33. 0
      patacrep/errors.py
  34. 0
      patacrep/files.py
  35. 4
      patacrep/index.py
  36. 0
      patacrep/plastex.py
  37. 0
      patacrep/plastex_chord.py
  38. 0
      patacrep/plastex_patchedbabel.py
  39. 2
      patacrep/plastex_songs.py
  40. 4
      patacrep/songs.py
  41. 2
      patacrep/templates.py
  42. 12
      readme.md
  43. 10
      setup.py
  44. 6
      songbook

2
NEWS

@ -4,7 +4,7 @@ songbook 3.7.2
songbook 3.4.7 to 3.7.1
Mainly new songs in the data (which was included in songbook-core at this
Mainly new songs in the data (which was included in songbook at this
time), and a few undocumented bug corrections and improvements.
songbook (v0.8)

0
songbook_core/__init__.py → patacrep/__init__.py

0
songbook_core/authors.py → patacrep/authors.py

12
songbook_core/build.py → patacrep/build.py

@ -10,12 +10,12 @@ import os.path
import re
from subprocess import Popen, PIPE, call
from songbook_core import __DATADIR__
from songbook_core import errors
from songbook_core.files import recursive_find
from songbook_core.index import process_sxd
from songbook_core.songs import Song, SongbookContent
from songbook_core.templates import TexRenderer
from patacrep import __DATADIR__
from patacrep import errors
from patacrep.files import recursive_find
from patacrep.index import process_sxd
from patacrep.songs import Song, SongbookContent
from patacrep.templates import TexRenderer
LOGGER = logging.getLogger(__name__)
EOL = "\n"

0
songbook_core/data/examples/README → patacrep/data/examples/README

0
songbook_core/data/examples/example-all.sb → patacrep/data/examples/example-all.sb

0
songbook_core/data/examples/example-layout.sb → patacrep/data/examples/example-layout.sb

0
songbook_core/data/examples/example-patacrep.sb → patacrep/data/examples/example-patacrep.sb

0
songbook_core/data/examples/example-songs.sb → patacrep/data/examples/example-songs.sb

0
songbook_core/data/examples/example.sb → patacrep/data/examples/example.sb

0
songbook_core/data/examples/img/README → patacrep/data/examples/img/README

0
songbook_core/data/examples/img/treble_a.png → patacrep/data/examples/img/treble_a.png

Before

Width:  |  Height:  |  Size: 9.7 KiB

After

Width:  |  Height:  |  Size: 9.7 KiB

0
songbook_core/data/examples/latex/README → patacrep/data/examples/latex/README

0
songbook_core/data/examples/songs/README → patacrep/data/examples/songs/README

0
songbook_core/data/examples/songs/_lilypond/header → patacrep/data/examples/songs/_lilypond/header

0
songbook_core/data/examples/songs/chevaliers_de_la_table_ronde.sg → patacrep/data/examples/songs/chevaliers_de_la_table_ronde.sg

0
songbook_core/data/examples/songs/example-en.sg → patacrep/data/examples/songs/example-en.sg

0
songbook_core/data/examples/songs/example-fr.sg → patacrep/data/examples/songs/example-fr.sg

0
songbook_core/data/examples/songs/greensleeves.ly → patacrep/data/examples/songs/greensleeves.ly

0
songbook_core/data/examples/songs/greensleeves.sg → patacrep/data/examples/songs/greensleeves.sg

0
songbook_core/data/examples/songs/traditionnel.jpg → patacrep/data/examples/songs/traditionnel.jpg

Before

Width:  |  Height:  |  Size: 7.7 KiB

After

Width:  |  Height:  |  Size: 7.7 KiB

0
songbook_core/data/examples/songs/vent_frais.sg → patacrep/data/examples/songs/vent_frais.sg

0
songbook_core/data/examples/templates/README → patacrep/data/examples/templates/README

0
songbook_core/data/latex/chords.sty → patacrep/data/latex/chords.sty

10
songbook_core/data/latex/crepbook.sty → patacrep/data/latex/crepbook.sty

@ -3,10 +3,10 @@
% This package is intended to be used with the songbook Python program (and its
% interfaces).
% It defines some layout for automatic songbook generation.
% See http://github.com/patacrep/songbook-core/
% See http://github.com/patacrep/patacrep/
\NeedsTeXFormat{LaTeX2e}[1994/06/01]
\ProvidesPackage{crepbook}[2014/04/13 Crepbook Package, version 0.1]
\ProvidesPackage{crepbook}[2014/06/17 Crepbook Package, version 1]
% fancy-capo: When a capo is necessary, use a picture instead of text.
\newif{\iffancycapo}
@ -22,12 +22,12 @@
\customfontstrue
\DeclareOption{nocustomfonts}{\customfontsfalse}
% Remaining options are passed to the SongbookUtils package
\DeclareOption*{\PassOptionsToPackage{\CurrentOption}{SongbookUtils}}
% Remaining options are passed to the main Patacrep package
\DeclareOption*{\PassOptionsToPackage{\CurrentOption}{patacrep}}
\ProcessOptions\relax
\RequirePackage{SongbookUtils}
\RequirePackage{patacrep}
\ifpictures
\fancycapotrue

4
songbook_core/data/latex/SongbookUtils.sty → patacrep/data/latex/patacrep.sty

@ -1,10 +1,10 @@
% Songbook Package -- version 0.1 for LaTeX2e
%
% This package provides macro for automatic songbook
% generation. See http://github.com/patacrep/songbook-core/
% generation. See http://github.com/patacrep/patacrep/
\NeedsTeXFormat{LaTeX2e}[1994/06/01]
\ProvidesPackage{SongbookUtils}[2014/04/13 Songbook Package, version 0.1]
\ProvidesPackage{patacrep}[2014/06/17 Patacrep Package, version 1]
\RequirePackage{graphicx,xcolor} %
\RequirePackage{epstopdf} %

0
songbook_core/data/latex/songs.sty → patacrep/data/latex/songs.sty

0
songbook_core/data/latex/tabs.sty → patacrep/data/latex/tabs.sty

0
songbook_core/data/templates/default.tex → patacrep/data/templates/default.tex

0
songbook_core/data/templates/layout.tex → patacrep/data/templates/layout.tex

0
songbook_core/data/templates/patacrep.tex → patacrep/data/templates/patacrep.tex

2
songbook_core/data/templates/songs.tex → patacrep/data/templates/songs.tex

@ -64,7 +64,7 @@
(* for option in bookoptions *)((option)),
(* endfor *)
(* for instrument in instruments *)((instrument)),
(* endfor *)]{SongbookUtils}
(* endfor *)]{patacrep}
(* endblock *)
(* block songbookpreambule *)

0
songbook_core/errors.py → patacrep/errors.py

0
songbook_core/files.py → patacrep/files.py

4
songbook_core/index.py → patacrep/index.py

@ -13,8 +13,8 @@ import locale
import re
import codecs
from songbook_core.authors import processauthors
from songbook_core.plastex import simpleparse
from patacrep.authors import processauthors
from patacrep.plastex import simpleparse
EOL = u"\n"

0
songbook_core/plastex.py → patacrep/plastex.py

0
songbook_core/plastex_chord.py → patacrep/plastex_chord.py

0
songbook_core/plastex_patchedbabel.py → patacrep/plastex_patchedbabel.py

2
songbook_core/plastex_songs.py → patacrep/plastex_songs.py

@ -6,7 +6,7 @@
import plasTeX
from songbook_core.plastex import process_unbr_spaces
from patacrep.plastex import process_unbr_spaces
def split_linebreak(texlist):

4
songbook_core/songs.py → patacrep/songs.py

@ -10,8 +10,8 @@ import os.path
import re
import logging
from songbook_core.authors import processauthors
from songbook_core.plastex import parsetex
from patacrep.authors import processauthors
from patacrep.plastex import parsetex
LOGGER = logging.getLogger(__name__)

2
songbook_core/templates.py → patacrep/templates.py

@ -11,7 +11,7 @@ import os
import re
import json
from songbook_core import errors
from patacrep import errors
_LATEX_SUBS = (
(re.compile(r'\\'), r'\\textbackslash'),

12
readme.md

@ -16,24 +16,24 @@ is precised in the header.
# Python version
Songbook is compatible with Python 2.7 (no Python3 since [one of the
Patacrep is compatible with Python 2.7 (no Python3 since [one of the
library](http://plastex.sourceforge.net/) we are using is not).
# Download
Clone Patacrep repos:
> git clone git://github.com/crep4ever/songbook-core.git
> git clone git://github.com/crep4ever/songbook-data.git
> git clone git://github.com/patacrep/patacrep.git
> git clone git://github.com/patacrep/patadata.git
# Run
> <songbook-core>/songbook <songbook_file.sb>
> <patacrep>/songbook <songbook_file.sb>
> <pdfreader> <songbook_file.pdf>
Look for existing songbook files in <songbook-data>/books. For example:
Look for existing songbook files in `<patadata>/books/`. For example:
> <songbook-core>/songbook <songbook-data>/books/songbook_en.sb
> <patacrep>/songbook <patadata>/books/songbook_en.sb
> <pdfreader> songbook_en.pdf
# Quick and dirty deb packages

10
setup.py

@ -6,7 +6,7 @@ $ python setup.py install
"""
from distutils.core import setup
from distutils.command.install import install as _install
from songbook_core import __STR_VERSION__
from patacrep import __STR_VERSION__
import sys
import os
@ -44,13 +44,13 @@ class install(_install):
setup(cmdclass={'install': install},
name='songbook-core',
name='patacrep',
version=__STR_VERSION__,
description='Songbook compilation chain',
author='The Songbook team',
author_email='crep@team-on-fire.com',
url='https://github.com/patacrep/songbook-core',
packages=['songbook_core'],
url='https://github.com/patacrep/patacrep',
packages=['patacrep'],
license="GPLv2 or any later version",
scripts=['songbook'],
requires=[
@ -58,7 +58,7 @@ setup(cmdclass={'install': install},
"locale", "logging", "os", "plasTeX", "re", "subprocess", "sys",
"textwrap", "unidecode", "jinja2"
],
package_data={'songbook_core': ['data/latex/*',
package_data={'patacrep': ['data/latex/*',
'data/templates/*',
'data/examples/*.sb',
'data/examples/*/*.sg',

6
songbook

@ -12,9 +12,9 @@ import os.path
import textwrap
import sys
from songbook_core.build import SongbookBuilder, DEFAULT_STEPS
from songbook_core import __STR_VERSION__
from songbook_core import errors
from patacrep.build import SongbookBuilder, DEFAULT_STEPS
from patacrep import __STR_VERSION__
from patacrep import errors
# Logging configuration
logging.basicConfig(level=logging.INFO)

Loading…
Cancel
Save