From: Sparky2021 Date: Tue, 23 Jan 2024 21:37:20 +0000 (+0100) Subject: mdoku_0.2 X-Git-Tag: mdoku_0.3-0~1 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=b1996998a4d079eb7d6cffadda9dce4cbd78ba73;p=mDoc.git mdoku_0.2 --- diff --git a/Test/FitnessePages/AaaPrepare/content.txt b/Test/FitnessePages/AaaPrepare/content.txt index 678beed..dc3983e 100644 --- a/Test/FitnessePages/AaaPrepare/content.txt +++ b/Test/FitnessePages/AaaPrepare/content.txt @@ -1,2 +1,2 @@ !|test.util.CallScript| -|call script|mtestinfo mdoku| +|call script|mtestinfo mdoku mdoc-tools| diff --git a/Test/FitnessePages/AaaPrepare/properties.xml b/Test/FitnessePages/AaaPrepare/properties.xml index c53497f..afb3ad1 100644 --- a/Test/FitnessePages/AaaPrepare/properties.xml +++ b/Test/FitnessePages/AaaPrepare/properties.xml @@ -2,12 +2,12 @@ - + - + diff --git a/Test/FitnessePages/ConvertDoc/.dummy b/Test/FitnessePages/ConvertDoc/.dummy new file mode 100644 index 0000000..e69de29 diff --git a/Test/FitnessePages/ConvertDoc/content.txt b/Test/FitnessePages/ConvertDoc/content.txt new file mode 100644 index 0000000..d9ea851 --- /dev/null +++ b/Test/FitnessePages/ConvertDoc/content.txt @@ -0,0 +1,5 @@ +!2 Convert a document + +!|test.util.CallScript| +|call script|mdoc etc/nl.xml etc/nl.tpl| +|call script|rm etc/nl.html| diff --git a/Test/FitnessePages/ConvertDoc/properties.xml b/Test/FitnessePages/ConvertDoc/properties.xml new file mode 100644 index 0000000..afb3ad1 --- /dev/null +++ b/Test/FitnessePages/ConvertDoc/properties.xml @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + diff --git a/Test/FitnessePages/MdocExtractor/content.txt b/Test/FitnessePages/MdocExtractor/content.txt index 11cfc8d..a5e9ebe 100644 --- a/Test/FitnessePages/MdocExtractor/content.txt +++ b/Test/FitnessePages/MdocExtractor/content.txt @@ -1,4 +1,5 @@ !|test.util.CallScript| +|call script|!-rm etc/Testdocument.tex |true-!| |call script|mdoc-extract etc/Testdocument.xml default| |call script|grep "nicht cl1-text" etc/Testdocument.tex| |call script|mdoc-extract etc/Testdocument.xml cl1| @@ -10,3 +11,9 @@ |call script|grep "cl2-Text" etc/Testdocument.tex| |call script|grep "cl1.1+cl2-Text" etc/Testdocument.tex| +mdoc-extract writes into named file + +!|test.util.CallScript| +|call script|!-rm out.txt |true-!| +|call script|mdoc-extract etc/Testdocument.xml default out.txt| +|call script|ls out.txt| diff --git a/Test/etc/nl.tpl b/Test/etc/nl.tpl new file mode 100644 index 0000000..aea189b --- /dev/null +++ b/Test/etc/nl.tpl @@ -0,0 +1,60 @@ + + +
]]>
]]>
+

]]>
]]>

+
+ + +

+
+
+Newsletter Maxjosefstift
+
+
+
+
+
+
+
+
+
+
+
+
+ MJS Logo + + +
]]>
+ + + +
+

Impressum:
+ OStDin Kristina Kalb-Heubisch, Schulleiterin
+ Dr. Dunja Jaber, PR-Team Gymnasium Max-Josef-Stift
+ Mühlbaurstr. 15
+ 81677 München
+ Telefon: 089-998435-0
+ Telefax: 089-998435-155
+ E-Mail: sekretariat@maxjosefstift.de
+ Nutzungsbedingungen siehe https://www.maxjosefstift.de/impressum2.html

+

Sie möchten diesen Newsletter nicht mehr erhalten?

+

Eine Email genügt, zu adressieren an newsletter@maxjosefstift.de mit dem Betreff „Abmelden“.

+

Powered by w3.css and + WagnerTech UG

+
+ + +]]>
+

]]>
]]>

+
]]>
+
+
+
+ diff --git a/Test/etc/nl.xml b/Test/etc/nl.xml new file mode 100644 index 0000000..735535e --- /dev/null +++ b/Test/etc/nl.xml @@ -0,0 +1,6 @@ + +

Überschrift

+ +

Text mit Verdickung

+
+ diff --git a/csTest/.dummy b/csTest/.dummy deleted file mode 100644 index e69de29..0000000 diff --git a/csTest/FitnessePages/.dummy b/csTest/FitnessePages/.dummy deleted file mode 100644 index e69de29..0000000 diff --git a/csTest/FitnessePages/AaaPrepare/.dummy b/csTest/FitnessePages/AaaPrepare/.dummy deleted file mode 100644 index e69de29..0000000 diff --git a/csTest/FitnessePages/AaaPrepare/content.txt b/csTest/FitnessePages/AaaPrepare/content.txt deleted file mode 100644 index 92944e6..0000000 --- a/csTest/FitnessePages/AaaPrepare/content.txt +++ /dev/null @@ -1,2 +0,0 @@ -!|test.util.CallScript| -|call script|mtestinfo mdoc-tools| diff --git a/csTest/FitnessePages/AaaPrepare/properties.xml b/csTest/FitnessePages/AaaPrepare/properties.xml deleted file mode 100644 index afb3ad1..0000000 --- a/csTest/FitnessePages/AaaPrepare/properties.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - - - - - diff --git a/csTest/FitnessePages/ConvertDoc/.dummy b/csTest/FitnessePages/ConvertDoc/.dummy deleted file mode 100644 index e69de29..0000000 diff --git a/csTest/FitnessePages/ConvertDoc/content.txt b/csTest/FitnessePages/ConvertDoc/content.txt deleted file mode 100644 index d9ea851..0000000 --- a/csTest/FitnessePages/ConvertDoc/content.txt +++ /dev/null @@ -1,5 +0,0 @@ -!2 Convert a document - -!|test.util.CallScript| -|call script|mdoc etc/nl.xml etc/nl.tpl| -|call script|rm etc/nl.html| diff --git a/csTest/FitnessePages/ConvertDoc/properties.xml b/csTest/FitnessePages/ConvertDoc/properties.xml deleted file mode 100644 index afb3ad1..0000000 --- a/csTest/FitnessePages/ConvertDoc/properties.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - - - - - diff --git a/csTest/FitnessePages/content.txt b/csTest/FitnessePages/content.txt deleted file mode 100644 index 990fb6f..0000000 --- a/csTest/FitnessePages/content.txt +++ /dev/null @@ -1 +0,0 @@ -!contents -R2 -g -p -f -h \ No newline at end of file diff --git a/csTest/FitnessePages/properties.xml b/csTest/FitnessePages/properties.xml deleted file mode 100644 index 3096ff6..0000000 --- a/csTest/FitnessePages/properties.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - - - - - diff --git a/csTest/etc/.dummy b/csTest/etc/.dummy deleted file mode 100644 index e69de29..0000000 diff --git a/csTest/etc/nl.tpl b/csTest/etc/nl.tpl deleted file mode 100644 index aea189b..0000000 --- a/csTest/etc/nl.tpl +++ /dev/null @@ -1,60 +0,0 @@ - - -
]]>
]]>
-

]]>
]]>

-
- - -

-
-
-Newsletter Maxjosefstift
-
-
-
-
-
-
-
-
-
-
-
-
- MJS Logo - - -
]]>
- - - -
-

Impressum:
- OStDin Kristina Kalb-Heubisch, Schulleiterin
- Dr. Dunja Jaber, PR-Team Gymnasium Max-Josef-Stift
- Mühlbaurstr. 15
- 81677 München
- Telefon: 089-998435-0
- Telefax: 089-998435-155
- E-Mail: sekretariat@maxjosefstift.de
- Nutzungsbedingungen siehe https://www.maxjosefstift.de/impressum2.html

-

Sie möchten diesen Newsletter nicht mehr erhalten?

-

Eine Email genügt, zu adressieren an newsletter@maxjosefstift.de mit dem Betreff „Abmelden“.

-

Powered by w3.css and - WagnerTech UG

-
- - -]]>
-

]]>
]]>

-
]]>
-
-
-
- diff --git a/csTest/etc/nl.xml b/csTest/etc/nl.xml deleted file mode 100644 index 735535e..0000000 --- a/csTest/etc/nl.xml +++ /dev/null @@ -1,6 +0,0 @@ - -

Überschrift

- -

Text mit Verdickung

-
- diff --git a/debian/mdoku.conf b/debian/mdoku.conf new file mode 100644 index 0000000..4f91cd7 --- /dev/null +++ b/debian/mdoku.conf @@ -0,0 +1,2 @@ +compile_type=NONE +target_type=DEB diff --git a/python/mDoc/mdoc_extract.py b/python/mDoc/mdoc_extract.py index 6226d79..32a529e 100755 --- a/python/mDoc/mdoc_extract.py +++ b/python/mDoc/mdoc_extract.py @@ -8,17 +8,20 @@ import sys from mdoc import extractor import re -usage = 'mdoc-extract ' +usage = 'mdoc-extract [target]' def command_dispatch(args): # check runtime parameters if len(args) < 2: - raise RuntimeError("mdoc-extract needs 2 arguments.") + raise RuntimeError("mdoc-extract needs 2/3 arguments.") file = args[0] classs = args[1] - target = re.sub(r'\..*', '.tex', file) + if len(args) == 3: + target = args[2] + else: + target = re.sub(r'\..*', '.tex', file) return extractor.extract(file, classs, target) diff --git a/python/mDoc/mutil b/python/mDoc/mutil deleted file mode 120000 index 774bbec..0000000 --- a/python/mDoc/mutil +++ /dev/null @@ -1 +0,0 @@ -../../../xets/python/xets/util/ \ No newline at end of file