-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathraw2tei.xml
126 lines (125 loc) · 5.15 KB
/
raw2tei.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
<?xml version="1.0" encoding="UTF-8"?>
<script xmlns="http://www.xstep.org" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<variables>
<variable type="execution-file" name="execute"
>file:///C:/Users/Gerrit/txstep/ueb/txstep.tu</variable>
<!-- source -->
<variable type="permanent-file" name="tei-raw" code="utf8"
>file:///C:/Users/Gerrit/txstep/txt/tei-raw.xml</variable>
<!-- output -->
<variable type="permanent-file" option="erase" name="tei"
>file:///C:/Users/Gerrit/txstep/txt/Bd3_integral_tei_cust.xml</variable>
</variables>
<transform source="$tei-raw" destination="$tei">
<define-text-units>
<text-unit-start>
<comparison-table>
<exclusion-string>#.?</exclusion-string>
<comparison-string>{{p</comparison-string>
<comparison-string>{{head</comparison-string>
</comparison-table>
</text-unit-start>
</define-text-units>
<pass>
<modify>
<exchange>
<exchange-table>
<string-pair>
<search-string>^<{0}/app^></search-string>
<replacement-string/>
</string-pair>
<string-pair>
<search-string>^<appN^>{#}^</appN^></search-string>
<replacement-string/>
</string-pair>
<string-pair>
<search-string>loc={#}</search-string>
<replacement-string/>
</string-pair>
</exchange-table>
</exchange>
</modify>
</pass>
<pass>
<modify>
<exchange>
<exchange-table>
<string-pair>
<search-string>^<</search-string>
<replacement-string>{{</replacement-string>
</string-pair>
<string-pair>
<search-string>^></search-string>
<replacement-string>}}</replacement-string>
</string-pair>
</exchange-table>
</exchange>
</modify>
</pass>
<pass>
<modify>
<exchange>
<exchange-table>
<string-pair>
<search-string>-{[}{{/br}}</search-string>
<replacement-string>{{lb break="no"/}}</replacement-string>
</string-pair>
</exchange-table>
</exchange>
</modify>
</pass>
<pass>
<modify>
<exchange>
<exchange-table>
<string-pair>
<search-string>^&^#xA;{00} </search-string>
<replacement-string> </replacement-string>
</string-pair>
</exchange-table>
</exchange>
</modify>
</pass>
<pass>
<modify>
<exchange>
<exchange-table>
<string-pair>
<search-string>n="{[}\[{\A}{\A} {|}{#}{|}\]{0} {]}"</search-string>
<replacement-string>{=2=}</replacement-string>
</string-pair>
<string-pair>
<search-string>n="{[}\{\{{\A}{\A} {|}{#}{|}\}\}{0} {]}"</search-string>
<replacement-string>{=2=}</replacement-string>
</string-pair>
</exchange-table>
</exchange>
</modify>
</pass>
<pass>
<modify>
<exchange>
<exchange-table>
<string-pair>
<search-string>}}note</search-string>
<replacement-string>}}{{note</replacement-string>
</string-pair>
<string-pair>
<search-string>{{/it{]}{{/KA}}</search-string>
<replacement-string>{{/it}}</replacement-string>
</string-pair>
<string-pair>
<search-string>{{subst}}{|}Geschwiste</search-string>
<replacement-string>{=2=}{=1=}</replacement-string>
</string-pair>
<string-pair>
<search-string>{{subst}}{|}Antiintellektu</search-string>
<replacement-string>{=2=}{=1=}</replacement-string>
</string-pair>
</exchange-table>
</exchange>
</modify>
</pass>
</transform>
<display file="$tei"/>
</script>