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.
 
 
 
 

21 lines
616 B

#!/usr/bin/python
# -*- coding: utf-8 -*-
#
import re
reTitle = re.compile('(?<=beginsong\\{)(.(?<!\\}]))+')
reArtist = re.compile('(?<=by=)(.(?<![,\\]\\}]))+')
reAlbum = re.compile('(?<=album=)(.(?<![,\\]\\}]))+')
#reLilypond = re.compile('(?<=album=)(.(?<![,\\]\\}]))+')
class Song:
def __init__(self, title, artist, album, path, isLilypond):
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))