forked from openlp/openlp
Added OpenSong Bridge and Pre-chorus handling
bzr-revno: 236
This commit is contained in:
parent
5ba4665ee5
commit
fe2037663f
@ -1,7 +1,9 @@
|
|||||||
|
# -*- coding:iso-8859-1 -*-
|
||||||
|
# vim: autoindent shiftwidth=4 expandtab textwidth=80 tabstop=4 softtabstop=4
|
||||||
"""
|
"""
|
||||||
OpenLP - Open Source Lyrics Projection
|
OpenLP - Open Source Lyrics Projection
|
||||||
Copyright (c) 2008 Raoul Snyman
|
Copyright (c) 2008 Raoul Snyman
|
||||||
Portions copyright (c) 2008 Carsten Tinggaard
|
Portions copyright (c) 2008 Martin Thompson, Tim Bentley, Carsten Tinggaard
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify it under
|
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
|
the terms of the GNU General Public License as published by the Free Software
|
||||||
@ -20,7 +22,7 @@ import sys
|
|||||||
import os
|
import os
|
||||||
from types import StringType, ListType, NoneType
|
from types import StringType, ListType, NoneType
|
||||||
|
|
||||||
sys.path.append(os.path.abspath("./../../.."))
|
sys.path.append(os.path.abspath("./../../../.."))
|
||||||
|
|
||||||
from openlp.core.lib import XmlRootClass
|
from openlp.core.lib import XmlRootClass
|
||||||
|
|
||||||
@ -145,8 +147,11 @@ class _OpenSong(XmlRootClass):
|
|||||||
newtag = "Verse"
|
newtag = "Verse"
|
||||||
elif 'c' == t :
|
elif 'c' == t :
|
||||||
newtag = "Chorus"
|
newtag = "Chorus"
|
||||||
|
elif 'b' == t :
|
||||||
|
newtag = "Bridge"
|
||||||
|
elif 'p' == t :
|
||||||
|
newtag = "Pre-chorus"
|
||||||
else :
|
else :
|
||||||
#TODO: what is the tags for bridge, pre-chorus?
|
|
||||||
newtag = t
|
newtag = t
|
||||||
s = ("# %s %s"%(newtag, c)).rstrip()
|
s = ("# %s %s"%(newtag, c)).rstrip()
|
||||||
res.append(s)
|
res.append(s)
|
||||||
|
Loading…
Reference in New Issue
Block a user