mirror of https://github.com/patacrep/patacrep.git
Louis
12 years ago
1 changed files with 16 additions and 0 deletions
@ -0,0 +1,16 @@ |
|||
#!/usr/bin/env python |
|||
# -*- coding: utf-8 -*- |
|||
|
|||
FILENAME = "naheulbeuk.tex" |
|||
|
|||
import plasTeX |
|||
from plasTeX.TeX import TeX |
|||
|
|||
doc = TeX(file = FILENAME).parse() |
|||
|
|||
language_list = set() |
|||
for node in doc.allChildNodes: |
|||
if node.nodeName == "selectlanguage": |
|||
language_list.add(node.argSource) |
|||
|
|||
print language_list |
Loading…
Reference in new issue