Engine for LaTeX songbooks http://www.patacrep.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
616 B

12 years ago
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
import re
reTitle = re.compile('(?<=beginsong\\{)(.(?<!\\}]))+')
reArtist = re.compile('(?<=by=)(.(?<![,\\]\\}]))+')
reAlbum = re.compile('(?<=album=)(.(?<![,\\]\\}]))+')
#reLilypond = re.compile('(?<=album=)(.(?<![,\\]\\}]))+')
12 years ago
class Song:
def __init__(self, title, artist, album, path, isLilypond):
12 years ago
self.title = title
self.artist = artist
self.album = album
self.path = path
self.isLilypond = isLilypond
def __repr__(self):
return repr((self.title, self.artist, self.album, self.path, self.isLilypond))
12 years ago