mirror of https://github.com/patacrep/patacrep.git
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.
20 lines
499 B
20 lines
499 B
12 years ago
|
#!/usr/bin/env python
|
||
|
# -*- coding: utf-8 -*-
|
||
|
|
||
|
import plasTeX
|
||
|
|
||
|
class beginsong(plasTeX.Command):
|
||
|
args = '{titles}[ args:dict ]'
|
||
|
def invoke(self, tex):
|
||
|
plasTeX.Command.invoke(self, tex)
|
||
|
|
||
|
# Parsing title
|
||
|
titles = []
|
||
|
for token in self.attributes['titles'].allChildNodes:
|
||
|
if token.nodeName != '\\':
|
||
|
titles.append(token.source.encode('utf-8'))
|
||
|
self.attributes['titles'] = titles
|
||
|
|
||
|
# Parsing keyval arguments
|
||
|
pass
|