-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmatxin-spa-eus.interchunk_move2.xml
166 lines (146 loc) · 7.51 KB
/
matxin-spa-eus.interchunk_move2.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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
<transfer>
<!-- si='subj'/per type=~'adi-'/subMi up overwrite -->
<def-rule id="ST_InterchunkMove2: (type=~'adi' and si='subj') subMi←per" comment="">
<template match="//CHUNK[contains(@type, 'adi-') and ./CHUNK[@si='subj' and @per != '']]">
<copy>
<attribute name="subMi"><value-of select="./CHUNK[@si='subj' and @per != '']/@per"/></attribute>
<apply-templates select="@*[name()!='subMi'] | *"/>
</copy>
</template>
</def-rule>
<!-- si='dobj'/per type=~'adi-'/objMi up overwrite -->
<def-rule id="ST_InterchunkMove2: (type=~'adi' and si='dobj') objMi←per" comment="">
<template match="//CHUNK[contains(@type, 'adi-') and ./CHUNK[@si='dobj' and @per != '']]">
<copy>
<attribute name="objMi"><value-of select="./CHUNK[@si='dobj' and @per != '']/@per"/></attribute>
<apply-templates select="@*[name()!='objMi'] | *"/>
</copy>
</template>
</def-rule>
<!-- -->
<!-- cas='[DAT]'/per type=~'adi-'/datMi up overwrite -->
<def-rule id="ST_InterchunkMove2: (type=~'adi' and cas='[DAT]') datMi←per" comment="">
<template match="//CHUNK[contains(@type, 'adi-') and ./CHUNK[@cas='[DAT]' and @per != '']]">
<copy>
<attribute name="datMi"><value-of select="./CHUNK[@cas='[DAT]' and @per != '']/@per"/></attribute>
<apply-templates select="@*[name()!='datMi'] | *"/>
</copy>
</template>
</def-rule>
<!-- si='iobj' && cas!='[DAT]'/per type=~'adi-'/objMi up overwrite -->
<def-rule id="ST_InterchunkMove2: (type=~'adi' and (si='iobj' and cas='[DAT]')) objMi←per" comment="">
<template match="//CHUNK[contains(@type, 'adi-') and ./CHUNK[@si='iobj' and @cas!='[DAT]' and @per != '']]">
<copy>
<attribute name="objMi"><value-of select="./CHUNK[@si='iobj' and @cas!='[DAT]' and @per != '']/@per"/></attribute>
<apply-templates select="@*[name()!='objMi'] | *"/>
</copy>
</template>
</def-rule>
<!-- -->
<!-- si='subj' && per=''/mi type=~'adi-'/subMi up overwrite -->
<def-rule id="ST_InterchunkMove2: (type=~'adi' and (si='subj' and per='')) subMi←per" comment="">
<template match="//CHUNK[contains(@type, 'adi-') and ./CHUNK[@si='subj' and not(boolean(@per)) and @mi != '']]">
<copy>
<attribute name="subMi"><value-of select="./CHUNK[@si='subj' and not(boolean(@per)) and @mi != '']/@mi"/></attribute>
<apply-templates select="@*[name()!='subMi'] | *"/>
</copy>
</template>
</def-rule>
<!-- si='iobj' && cas='[ABS]' && per=''/mi type=~'adi-'/objMi up overwrite -->
<def-rule id="ST_InterchunkMove2: (type=~'adi' and (si='iobj' and cas='[ABS]' and per='')) objMi←per" comment="">
<template match="//CHUNK[contains(@type, 'adi-') and ./CHUNK[@si='subj' and @cas='[ABS]' and @per='' and @mi != '']]">
<copy>
<attribute name="objMi"><value-of select="./CHUNK[@si='subj' and @cas='[ABS]' and @per='' and @mi != '']/@mi"/></attribute>
<apply-templates select="@*[name()!='objMi'] | *"/>
</copy>
</template>
</def-rule>
<!-- -->
<!-- cas='[DAT]' && per=''&& mi!='[MG]'/mi type=~'adi-'/datMi up overwrite -->
<def-rule id="ST_InterchunkMove2: (type=~'adi' and (cas='[DAT]' and per='' and mi!='[MG]')) datMi←mi" comment="">
<template match="//CHUNK[contains(@type, 'adi-') and ./CHUNK[@cas='[DAT]' and @per='' and @mi!='[MG]' and @mi != '']]">
<copy>
<attribute name="datMi"><value-of select="./CHUNK[@cas='[DAT]' and @per='' and @mi!='[MG]' and @mi != '']/@mi"/></attribute>
<apply-templates select="@*[name()!='datMi'] | *"/>
</copy>
</template>
</def-rule>
<!-- cas='[DAT]' && per='' && mi='[MG]'/'[NUMS]' type=~'adi-'/datMi up overwrite -->
<def-rule id="ST_InterchunkMove2: (type=~'adi' and (cas='[DAT]' and per and mi='[MG]')) datMi←'[NUMS]'" comment="">
<template match="//CHUNK[contains(@type, 'adi-') and ./CHUNK[@cas='[DAT]' and @per='' and @mi='[MG]' and @mi != '']]">
<copy>
<attribute name="datMi">'[NUMS]'</attribute>
<apply-templates select="@*[name()!='datMi'] | *"/>
</copy>
</template>
</def-rule>
<!-- -->
<!-- si='dobj' && per=''/mi type=~'adi-'/objMi up overwrite -->
<def-rule id="ST_InterchunkMove2: (type=~'adi' and (si='dobj' and per='')) objMi←mi" comment="">
<template match="//CHUNK[contains(@type, 'adi-') and ./CHUNK[@si='dobj' and @per='' and @mi != '']]">
<copy>
<attribute name="objMi"><value-of select="./CHUNK[@si='dobj' and @per='' and @mi != '']/@mi"/></attribute>
<apply-templates select="@*[name()!='objMi'] | *"/>
</copy>
</template>
</def-rule>
<!-- si='dobj' && per='' && leafpos='[Z]'/'[NUMP]' type=~'adi-'/objMi up overwrite -->
<def-rule id="ST_InterchunkMove2: (type=~'adi' and (si='dobj' and per='' and leafpos='[Z]')) objMi←'[NUMP]'" comment="">
<template match="//CHUNK[contains(@type, 'adi-') and ./CHUNK[@si='dobj' and not(boolean(@per)) and @leafpos='[Z]']]">
<copy>
<attribute name="objMi">[NUMP]</attribute>
<apply-templates select="@*[name()!='objMi'] | *"/>
</copy>
</template>
</def-rule>
<!-- -->
<!-- # ¿Cuántas manzanas has comprado? -> Zenbat sagar erosi DITUZU? -->
<!-- si='dobj' && per='' && qtype='wh'/num type=~'adi-'/objMi up overwrite -->
<def-rule id="ST_InterchunkMove2: (type=~'adi' and (si='dobj' and per='' and qtype='wh')) objMi←num" comment="">
<template match="//CHUNK[contains(@type, 'adi-') and ./CHUNK[@si='dobj' and not(boolean(@per)) and @qtype='wh']]">
<copy>
<attribute name="objMi"><value-of select="./CHUNK[@si='dobj' and not(boolean(@per)) and @qtype='wh']/@num"/></attribute>
<apply-templates select="@*[name()!='objMi'] | *"/>
</copy>
</template>
</def-rule>
<!-- -->
<!-- si='subj' && per='' && leafpos='[Z]'/'[NUMP]' type=~'adi-'/subMi up overwrite -->
<def-rule id="ST_InterchunkMove2: (type=~'adi' and (si='subj' and per='' and leafpos='[Z]')) subMi←'[NUMP]'" comment="">
<template match="//CHUNK[contains(@type, 'adi-') and ./CHUNK[@si='subj' and not(boolean(@per)) and @leafpos='[Z]']]">
<copy>
<attribute name="subMi">[NUMP]</attribute>
<apply-templates select="@*[name()!='subMi'] | *"/>
</copy>
</template>
</def-rule>
<!-- -->
<!-- cas='[DAT]' && per='' && leafpos='[Z]'/'[NUMP]' type=~'adi-'/datMi up overwrite -->
<def-rule id="ST_InterchunkMove2: (type=~'adi' and (cas='[DAT]' and per='' and leafpos='[Z]')) objMi←'[NUMP]'" comment="">
<template match="//CHUNK[contains(@type, 'adi-') and ./CHUNK[@cas='[DAT]' and not(boolean(@per)) and @leafpos='[Z]']]">
<copy>
<attribute name="datMi">[NUMP]</attribute>
<apply-templates select="@*[name()!='datMi'] | *"/>
</copy>
</template>
</def-rule>
<!-- si='vsubord'/'[NUMS]' type=~'adi-'/objMi up overwrite -->
<def-rule id="ST_InterchunkMove2: (type=~'adi' and si='vsubord') objMi←'[NUMP]'" comment="">
<template match="//CHUNK[contains(@type, 'adi-') and ./CHUNK[@si='vsubord']]">
<copy>
<attribute name="objMi">[NUMS]</attribute>
<apply-templates select="@*[name()!='objMi'] | *"/>
</copy>
</template>
</def-rule>
<!-- -->
<!-- /'yn' type=~'adi-' && quest='true' && qtype!='wh'/qtype up overwrite -->
<def-rule id="ST_InterchunkMove2: ((type=~'adi' and quest='true' and qtype!='wh') and si='vsubord') qtype←'yn'" comment="">
<template match="//CHUNK[contains(@type, 'adi-') and @quest='true' and @qtype!='wh']">
<copy>
<attribute name="qtype">yn</attribute>
<apply-templates select="@*[name()!='qtype'] | *"/>
</copy>
</template>
</def-rule>
</transfer>