Browse Source

Move templates used ir chordpro conversion

Closer #150
pull/156/head
Louis 9 years ago
parent
commit
e835beedb5
  1. 0
      patacrep/data/chordpro/chordpro/content_chord
  2. 0
      patacrep/data/chordpro/chordpro/content_chordlist
  3. 0
      patacrep/data/chordpro/chordpro/content_comment
  4. 0
      patacrep/data/chordpro/chordpro/content_define
  5. 0
      patacrep/data/chordpro/chordpro/content_endofline
  6. 0
      patacrep/data/chordpro/chordpro/content_error
  7. 0
      patacrep/data/chordpro/chordpro/content_guitar_comment
  8. 0
      patacrep/data/chordpro/chordpro/content_image
  9. 0
      patacrep/data/chordpro/chordpro/content_line
  10. 0
      patacrep/data/chordpro/chordpro/content_newline
  11. 0
      patacrep/data/chordpro/chordpro/content_partition
  12. 0
      patacrep/data/chordpro/chordpro/content_space
  13. 0
      patacrep/data/chordpro/chordpro/content_tablature
  14. 0
      patacrep/data/chordpro/chordpro/content_verse
  15. 0
      patacrep/data/chordpro/chordpro/content_word
  16. 0
      patacrep/data/chordpro/chordpro/song
  17. 0
      patacrep/data/chordpro/chordpro/song_body
  18. 0
      patacrep/data/chordpro/chordpro/song_header
  19. 0
      patacrep/data/chordpro/html/content_chord
  20. 0
      patacrep/data/chordpro/html/content_chordlist
  21. 0
      patacrep/data/chordpro/html/content_comment
  22. 0
      patacrep/data/chordpro/html/content_define
  23. 0
      patacrep/data/chordpro/html/content_define_list
  24. 0
      patacrep/data/chordpro/html/content_endofline
  25. 0
      patacrep/data/chordpro/html/content_error
  26. 0
      patacrep/data/chordpro/html/content_guitar_comment
  27. 0
      patacrep/data/chordpro/html/content_image
  28. 0
      patacrep/data/chordpro/html/content_line
  29. 0
      patacrep/data/chordpro/html/content_metadata_cover
  30. 0
      patacrep/data/chordpro/html/content_newline
  31. 0
      patacrep/data/chordpro/html/content_partition
  32. 0
      patacrep/data/chordpro/html/content_space
  33. 0
      patacrep/data/chordpro/html/content_tablature
  34. 0
      patacrep/data/chordpro/html/content_verse
  35. 0
      patacrep/data/chordpro/html/content_word
  36. 0
      patacrep/data/chordpro/html/song
  37. 0
      patacrep/data/chordpro/html/song_body
  38. 0
      patacrep/data/chordpro/html/song_header
  39. 0
      patacrep/data/chordpro/latex/content_chord
  40. 0
      patacrep/data/chordpro/latex/content_chordlist
  41. 0
      patacrep/data/chordpro/latex/content_comment
  42. 0
      patacrep/data/chordpro/latex/content_define
  43. 0
      patacrep/data/chordpro/latex/content_endofline
  44. 0
      patacrep/data/chordpro/latex/content_error
  45. 0
      patacrep/data/chordpro/latex/content_guitar_comment
  46. 0
      patacrep/data/chordpro/latex/content_image
  47. 0
      patacrep/data/chordpro/latex/content_line
  48. 0
      patacrep/data/chordpro/latex/content_newline
  49. 0
      patacrep/data/chordpro/latex/content_partition
  50. 0
      patacrep/data/chordpro/latex/content_space
  51. 0
      patacrep/data/chordpro/latex/content_tablature
  52. 0
      patacrep/data/chordpro/latex/content_verse
  53. 0
      patacrep/data/chordpro/latex/content_word
  54. 0
      patacrep/data/chordpro/latex/song
  55. 0
      patacrep/data/chordpro/latex/song_body
  56. 11
      patacrep/songs/chordpro/__init__.py
  57. 3
      test/test_chordpro/test_parser.py

0
patacrep/data/ast_templates/chordpro/chordpro/content_chord → patacrep/data/chordpro/chordpro/content_chord

0
patacrep/data/ast_templates/chordpro/chordpro/content_chordlist → patacrep/data/chordpro/chordpro/content_chordlist

0
patacrep/data/ast_templates/chordpro/chordpro/content_comment → patacrep/data/chordpro/chordpro/content_comment

0
patacrep/data/ast_templates/chordpro/chordpro/content_define → patacrep/data/chordpro/chordpro/content_define

0
patacrep/data/ast_templates/chordpro/chordpro/content_endofline → patacrep/data/chordpro/chordpro/content_endofline

0
patacrep/data/ast_templates/chordpro/chordpro/content_error → patacrep/data/chordpro/chordpro/content_error

0
patacrep/data/ast_templates/chordpro/chordpro/content_guitar_comment → patacrep/data/chordpro/chordpro/content_guitar_comment

0
patacrep/data/ast_templates/chordpro/chordpro/content_image → patacrep/data/chordpro/chordpro/content_image

0
patacrep/data/ast_templates/chordpro/chordpro/content_line → patacrep/data/chordpro/chordpro/content_line

0
patacrep/data/ast_templates/chordpro/chordpro/content_newline → patacrep/data/chordpro/chordpro/content_newline

0
patacrep/data/ast_templates/chordpro/chordpro/content_partition → patacrep/data/chordpro/chordpro/content_partition

0
patacrep/data/ast_templates/chordpro/chordpro/content_space → patacrep/data/chordpro/chordpro/content_space

0
patacrep/data/ast_templates/chordpro/chordpro/content_tablature → patacrep/data/chordpro/chordpro/content_tablature

0
patacrep/data/ast_templates/chordpro/chordpro/content_verse → patacrep/data/chordpro/chordpro/content_verse

0
patacrep/data/ast_templates/chordpro/chordpro/content_word → patacrep/data/chordpro/chordpro/content_word

0
patacrep/data/ast_templates/chordpro/chordpro/song → patacrep/data/chordpro/chordpro/song

0
patacrep/data/ast_templates/chordpro/chordpro/song_body → patacrep/data/chordpro/chordpro/song_body

0
patacrep/data/ast_templates/chordpro/chordpro/song_header → patacrep/data/chordpro/chordpro/song_header

0
patacrep/data/ast_templates/chordpro/html/content_chord → patacrep/data/chordpro/html/content_chord

0
patacrep/data/ast_templates/chordpro/html/content_chordlist → patacrep/data/chordpro/html/content_chordlist

0
patacrep/data/ast_templates/chordpro/html/content_comment → patacrep/data/chordpro/html/content_comment

0
patacrep/data/ast_templates/chordpro/html/content_define → patacrep/data/chordpro/html/content_define

0
patacrep/data/ast_templates/chordpro/html/content_define_list → patacrep/data/chordpro/html/content_define_list

0
patacrep/data/ast_templates/chordpro/html/content_endofline → patacrep/data/chordpro/html/content_endofline

0
patacrep/data/ast_templates/chordpro/html/content_error → patacrep/data/chordpro/html/content_error

0
patacrep/data/ast_templates/chordpro/html/content_guitar_comment → patacrep/data/chordpro/html/content_guitar_comment

0
patacrep/data/ast_templates/chordpro/html/content_image → patacrep/data/chordpro/html/content_image

0
patacrep/data/ast_templates/chordpro/html/content_line → patacrep/data/chordpro/html/content_line

0
patacrep/data/ast_templates/chordpro/html/content_metadata_cover → patacrep/data/chordpro/html/content_metadata_cover

0
patacrep/data/ast_templates/chordpro/html/content_newline → patacrep/data/chordpro/html/content_newline

0
patacrep/data/ast_templates/chordpro/html/content_partition → patacrep/data/chordpro/html/content_partition

0
patacrep/data/ast_templates/chordpro/html/content_space → patacrep/data/chordpro/html/content_space

0
patacrep/data/ast_templates/chordpro/html/content_tablature → patacrep/data/chordpro/html/content_tablature

0
patacrep/data/ast_templates/chordpro/html/content_verse → patacrep/data/chordpro/html/content_verse

0
patacrep/data/ast_templates/chordpro/html/content_word → patacrep/data/chordpro/html/content_word

0
patacrep/data/ast_templates/chordpro/html/song → patacrep/data/chordpro/html/song

0
patacrep/data/ast_templates/chordpro/html/song_body → patacrep/data/chordpro/html/song_body

0
patacrep/data/ast_templates/chordpro/html/song_header → patacrep/data/chordpro/html/song_header

0
patacrep/data/ast_templates/chordpro/latex/content_chord → patacrep/data/chordpro/latex/content_chord

0
patacrep/data/ast_templates/chordpro/latex/content_chordlist → patacrep/data/chordpro/latex/content_chordlist

0
patacrep/data/ast_templates/chordpro/latex/content_comment → patacrep/data/chordpro/latex/content_comment

0
patacrep/data/ast_templates/chordpro/latex/content_define → patacrep/data/chordpro/latex/content_define

0
patacrep/data/ast_templates/chordpro/latex/content_endofline → patacrep/data/chordpro/latex/content_endofline

0
patacrep/data/ast_templates/chordpro/latex/content_error → patacrep/data/chordpro/latex/content_error

0
patacrep/data/ast_templates/chordpro/latex/content_guitar_comment → patacrep/data/chordpro/latex/content_guitar_comment

0
patacrep/data/ast_templates/chordpro/latex/content_image → patacrep/data/chordpro/latex/content_image

0
patacrep/data/ast_templates/chordpro/latex/content_line → patacrep/data/chordpro/latex/content_line

0
patacrep/data/ast_templates/chordpro/latex/content_newline → patacrep/data/chordpro/latex/content_newline

0
patacrep/data/ast_templates/chordpro/latex/content_partition → patacrep/data/chordpro/latex/content_partition

0
patacrep/data/ast_templates/chordpro/latex/content_space → patacrep/data/chordpro/latex/content_space

0
patacrep/data/ast_templates/chordpro/latex/content_tablature → patacrep/data/chordpro/latex/content_tablature

0
patacrep/data/ast_templates/chordpro/latex/content_verse → patacrep/data/chordpro/latex/content_verse

0
patacrep/data/ast_templates/chordpro/latex/content_word → patacrep/data/chordpro/latex/content_word

0
patacrep/data/ast_templates/chordpro/latex/song → patacrep/data/chordpro/latex/song

0
patacrep/data/ast_templates/chordpro/latex/song_body → patacrep/data/chordpro/latex/song_body

11
patacrep/songs/chordpro/__init__.py

@ -48,14 +48,9 @@ class ChordproSong(Song):
"content": self.cached['song'].content,
}
jinjaenv = Environment(loader=ChoiceLoader([
FileSystemLoader(
self.iter_datadirs("templates", self.output_language)
),
FileSystemLoader(
pkg_datapath('ast_templates', 'chordpro', self.output_language)
),
]))
jinjaenv = Environment(loader=FileSystemLoader(
self.iter_datadirs("chordpro", self.output_language)
))
jinjaenv.filters['search_image'] = self.search_image
jinjaenv.filters['search_partition'] = self.search_partition
jinjaenv.filters['lang2babel'] = lang2babel

3
test/test_chordpro/test_parser.py

@ -7,7 +7,7 @@ import os
import unittest
from pkg_resources import resource_filename
from patacrep import files
from patacrep import files, __DATADIR__
from patacrep.build import DEFAULT_CONFIG
from patacrep.encoding import open_read
@ -41,6 +41,7 @@ class FileTest(unittest.TestCase, metaclass=dynamic.DynamicTest):
if 'datadir' not in cls.config:
cls.config['datadir'] = []
cls.config['datadir'].append(resource_filename(__name__, 'datadir'))
cls.config['datadir'].append(__DATADIR__)
cls.song_plugins = files.load_plugins(
datadirs=cls.config['datadir'],

Loading…
Cancel
Save