mirror of https://github.com/patacrep/patacrep.git
Louis
12 years ago
3 changed files with 42 additions and 22 deletions
@ -0,0 +1,19 @@ |
|||
#!/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 |
Loading…
Reference in new issue