Commit 00afdb30 authored by eckhart's avatar eckhart
Browse files

- LaTeX tests repaired

parent 7c0b34d6
......@@ -3,7 +3,7 @@
"""
[fail:LB]
1: """ """
10: """ """
[match:GAP]
......@@ -22,10 +22,10 @@
"""
[fail:GAP]
1: """
10: """
"""
2: """
11: """
% Comment
......@@ -61,15 +61,15 @@
% Comment"""
[fail:PARSEP]
1: " "
10: " "
2: """
11: """
"""
3: """
12: """
% Comment"""
4: """ % Comment
13: """ % Comment
% Comment
% Comment"""
......@@ -93,7 +93,7 @@
"""
[fail:WSPC]
1: "X"
10: "X"
[match:LFF]
......@@ -113,7 +113,7 @@
"""
[fail:LFF]
1: " "
10: " "
[match:LF]
......@@ -129,6 +129,6 @@
"""
[fail:LF]
1: """
10: """
"""
......@@ -3,13 +3,13 @@
[fail:text]
1 : Low-level text must not contain \& escaped characters.
10: Low-level text must not contain \& escaped characters.
2 : Low-level text must not contain ] [ brackets.
11: Low-level text must not contain ] [ brackets.
3 : Low-level text must not contain { environments }.
12: Low-level text must not contain { environments }.
4 : Low-level text must not contain any \commands.
13: Low-level text must not contain any \commands.
[match:text_element]
......
......@@ -43,17 +43,17 @@
[fail:paragraph]
1 : Paragraphs are separated by gaps.
20: Paragraphs are separated by gaps.
Like this one.
2 : \begin{enumerate}
21: \begin{enumerate}
3 : \item
22: \item
4 : und Vieh; \paragraph
23: und Vieh; \paragraph
5 : Paragraphs will end
24: Paragraphs will end
\begin{quotation}
at block environments
\end{quotation}
......@@ -86,4 +86,4 @@
\begin{quotation}
include block environments
\end{quotation}
like block quotes.
\ No newline at end of file
like block quotes.
......@@ -21,14 +21,14 @@
[fail:block_environment]
1 : """\begin{generic}inline environment\end{generic}
10: """\begin{generic}inline environment\end{generic}
"""
2 : """\begin{generic}inline environment
11: """\begin{generic}inline environment
\end{generic}
"""
3 : """\begin{generic}
12: """\begin{generic}
invalid enivronment \end{generic}
"""
......@@ -43,7 +43,7 @@
[fail:inline_environment]
3 : """\begin{generic}
10: """\begin{generic}
invalid enivronment \end{generic}
"""
......@@ -84,7 +84,7 @@
\end{itemize}
[fail:itemize]
1 : \begin{itemize}
11: \begin{itemize}
Free text is not allowed within an itemized environment!
\end{itemize}
......
......@@ -90,5 +90,3 @@ if __name__ == "__main__":
cpu_profile(tst_func)
MLW_AST_transformation_table = {
# AST Transformations for the MLW-grammar
"+": remove_empty,
"Artikel": [],
"LemmaPosition": [],
"Lemma": [],
"klassisch": [],
"gesichert": [],
"LemmaVarianten": [],
"LemmaWort": [],
"LemmaZusatz": [],
"lzs_typ": [],
"GrammatikPosition": [],
"wortart": [replace_or_reduce],
"GrammatikVarianten": [],
"flexion": [],
"FLEX": [],
"genus": [replace_or_reduce],
"EtymologiePosition": [],
"EtymologieVarianten": [],
"EtymologieVariante": [],
"ArtikelKopf": [replace_by_single_child],
"SchreibweisenPosition": [],
"SWTyp": [replace_or_reduce],
"SWVariante": [],
"Schreibweise": [replace_by_single_child],
"BedeutungsPosition": [],
"Bedeutung": [],
"Bedeutungskategorie": [],
"Interpretamente": [],
"LateinischeBedeutung": [],
"DeutscheBedeutung": [],
"Belege": [],
"EinBeleg": [],
"Zusatz": [],
"ArtikelVerfasser": [],
"Name": [],
"SW_LAT": [replace_or_reduce],
"SW_DEU": [replace_or_reduce],
"SW_GRIECH": [replace_or_reduce],
"Beleg": [replace_by_single_child],
"Verweis": [],
"VerweisZiel": [],
"ZielName": [replace_by_single_child],
"NAMENS_ABKÜRZUNG": [],
"NAME": [],
"DEU_WORT": [],
"DEU_GROSS": [],
"DEU_KLEIN": [],
"LAT_WORT": [],
"LAT_WORT_TEIL": [],
"GROSSSCHRIFT": [],
"GROSSFOLGE": [],
"BUCHSTABENFOLGE": [],
"ZEICHENFOLGE": [],
"TR": [replace_or_reduce],
"ABS": [replace_or_reduce],
"ZW": [],
"LZ": [],
"DATEI_ENDE": [],
"NIEMALS": [],
":Token, :RE": reduce_single_child,
"*": replace_by_single_child
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment