Minor hack
[apertium.git] / apertium-oc-es / apertium-oc-es.oc-es.t3x
blob8d8e15d1d3ac2bcc6d7e17dcedf990ba5580039e
1 <?xml version="1.0" encoding="ISO-8859-1"?> <!-- -*- nxml -*- -->
2 <postchunk>
3 <section-def-cats>
5 <def-cat n="prep">
6 <cat-item name="pr"/>
7 </def-cat>
10 <def-cat n="inf">
11 <cat-item name="inf"/>
12 </def-cat>
14 <def-cat n="solo">
15 <cat-item name="solo"/>
16 </def-cat>
17 <!-- <def-cat n="pas">
18 <cat-item name="pas"/>
19 </def-cat> MG -->
21 <def-cat n="nom">
22 <cat-item name="nom"/>
23 </def-cat>
25 <def-cat n="sn_2e">
26 <cat-item name="det_nom"/>
27 <cat-item name="det_adj"/>
28 </def-cat>
30 <def-cat n="sn_3e">
31 <cat-item name="det_adj_nom"/>
32 <cat-item name="det_nom_adj"/>
33 </def-cat>
35 <def-cat n="sn_4e">
36 <cat-item name="det_adv_adj_nom"/>
37 <cat-item name="det_nom_adv_adj"/>
38 </def-cat>
40 <def-cat n="sn_5e">
41 <cat-item name="det_adj_cnjcoo_adj_nom"/>
42 <cat-item name="det_nom_adj_cnjcoo_adj"/>
43 </def-cat>
45 </section-def-cats>
47 <section-def-attrs>
49 <def-attr n="tprep">
50 <attr-item tags="a"/>
51 <attr-item tags="en"/>
52 <attr-item tags="para"/>
53 </def-attr>
54 <def-attr n="pers">
55 <attr-item tags="p1"/>
56 <attr-item tags="p2"/>
57 <attr-item tags="p3"/>
58 <attr-item tags="PD"/>
59 </def-attr>
61 <def-attr n="gen">
62 <attr-item tags="m"/>
63 <attr-item tags="f"/>
64 <attr-item tags="mf"/>
65 <attr-item tags="GD"/>
66 <attr-item tags="nt"/>
67 </def-attr>
69 <def-attr n="nbr">
70 <attr-item tags="sg"/>
71 <attr-item tags="pl"/>
72 <attr-item tags="sp"/>
73 <attr-item tags="ND"/>
74 </def-attr>
76 <def-attr n="determinant">
77 <attr-item tags="treu_det"/>
78 </def-attr>
80 <def-attr n="a_SN">
81 <attr-item tags="DET"/>
82 <attr-item tags="UNDET"/>
83 <attr-item tags="NUM"/>
84 </def-attr>
87 <def-attr n="a_verb">
88 <attr-item tags="vblex"/>
89 <attr-item tags="vblex.pron"/>
90 <attr-item tags="vbhaver"/>
91 <attr-item tags="vbser"/>
92 <attr-item tags="vbmod"/>
93 </def-attr>
95 <def-attr n="a_nom">
96 <attr-item tags="n"/>
97 <attr-item tags="np"/>
98 </def-attr>
100 <def-attr n="a_np">
101 <attr-item tags="np.ant"/>
102 <attr-item tags="np.cog"/>
103 <attr-item tags="np.al"/>
104 </def-attr>
106 <def-attr n="a_prnpro">
107 <attr-item tags="prn.pro"/>
108 </def-attr>
110 <def-attr n="a_pr">
111 <attr-item tags="pr"/>
112 </def-attr>
113 <def-attr n="a_adv">
114 <attr-item tags="adv"/>
115 </def-attr>
117 </section-def-attrs>
118 <section-def-vars>
119 <def-var n="paraula"/>
120 </section-def-vars>
123 <section-def-macros>
125 <def-macro n="f_bcond" npar="1">
126 <choose>
127 <when>
128 <test>
129 <not>
130 <equal>
131 <b pos="1"/>
132 <lit v=" "/>
133 </equal>
134 </not>
135 </test>
136 <out>
137 <b pos="1"/>
138 </out>
139 </when>
140 </choose>
141 </def-macro>
143 </section-def-macros>
145 <section-rules>
148 <rule comment="CHUNK:">
149 <pattern>
150 <pattern-item n="nom"/>
151 </pattern>
152 <action>
153 <out>
154 <lu>
155 <clip pos="1" part="whole"/>
156 </lu>
157 </out>
158 </action>
159 </rule>
161 <rule comment="converteix no en 'sólo', si cal">
162 <pattern>
163 <pattern-item n="solo"/>
164 </pattern>
165 <action>
166 <out>
167 <lu>
168 <get-case-from pos="1">
169 <lit v="sólo"/>
170 </get-case-from>
171 <clip pos="1" part="a_adv"/>
172 </lu>
173 </out>
174 </action>
175 </rule>
178 <!-- <rule comment="converteix no en pas, si cal">
179 <pattern>
180 <pattern-item n="pas"/>
181 </pattern>
182 <action>
183 <out>
184 <lu>
185 <get-case-from pos="1">
186 <lit v="pas"/>
187 </get-case-from>
188 <clip pos="1" part="a_adv"/>
189 </lu>
190 </out>
191 </action>
192 </rule> MG -->
194 <rule comment="fa els canvis de prepo">
195 <pattern>
196 <pattern-item n="prep"/>
197 </pattern>
198 <action>
199 <choose>
200 <when>
201 <test>
202 <equal>
203 <clip pos="0" part="tprep"/>
204 <lit-tag v="a"/>
205 </equal>
206 </test>
207 <let>
208 <clip pos="1" part="lem"/>
209 <lit v="a"/>
210 </let>
211 </when>
212 <when>
213 <test>
214 <equal>
215 <clip pos="0" part="tprep"/>
216 <lit-tag v="en"/>
217 </equal>
218 </test>
219 <let>
220 <clip pos="1" part="lem"/>
221 <lit v="en"/>
222 </let>
223 </when>
224 </choose>
225 <out>
226 <lu>
227 <clip pos="1" part="lem"/>
228 <clip pos="1" part="a_pr"/>
229 </lu>
230 </out>
231 </action>
232 </rule>
234 <rule comment="treu el det 2elem">
235 <pattern>
236 <pattern-item n="sn_2e"/>
237 </pattern>
238 <action>
239 <choose>
240 <when>
241 <test>
242 <equal>
243 <clip pos="0" part="determinant"/>
244 <lit-tag v="treu_det"/>
245 </equal>
246 </test>
247 <out>
248 <lu>
249 <clip pos="2" part="whole"/>
250 </lu>
251 </out>
252 <call-macro n="f_bcond">
253 <with-param pos="1"/>
254 </call-macro>
255 </when>
256 <otherwise>
257 <out>
258 <lu>
259 <clip pos="1" part="whole"/>
260 </lu>
261 <b pos="1"/>
262 <lu>
263 <clip pos="2" part="whole"/>
264 </lu>
265 </out>
266 </otherwise>
267 </choose>
268 </action>
269 </rule>
271 <rule comment="treu el det 3 elem">
272 <pattern>
273 <pattern-item n="sn_3e"/>
274 </pattern>
275 <action>
276 <choose>
277 <when>
278 <test>
279 <equal>
280 <clip pos="0" part="determinant"/>
281 <lit-tag v="treu_det"/>
282 </equal>
283 </test>
284 <call-macro n="f_bcond">
285 <with-param pos="1"/>
286 </call-macro>
287 <out>
288 <lu>
289 <clip pos="2" part="whole"/>
290 </lu>
291 <b pos="2"/>
292 <lu>
293 <clip pos="3" part="whole"/>
294 </lu>
296 </out>
297 </when>
298 <otherwise>
299 <out>
300 <lu>
301 <clip pos="1" part="whole"/>
302 </lu>
303 <b pos="1"/>
304 <lu>
305 <clip pos="2" part="whole"/>
306 </lu>
307 <b pos="2"/>
308 <lu>
309 <clip pos="3" part="whole"/>
310 </lu>
311 </out>
312 </otherwise>
313 </choose>
314 </action>
315 </rule>
317 <rule comment="treu el det 4 elem">
318 <pattern>
319 <pattern-item n="sn_4e"/>
320 </pattern>
321 <action>
322 <choose>
323 <when>
324 <test>
325 <equal>
326 <clip pos="0" part="determinant"/>
327 <lit-tag v="treu_det"/>
328 </equal>
329 </test>
330 <call-macro n="f_bcond">
331 <with-param pos="1"/>
332 </call-macro>
333 <out>
334 <lu>
335 <clip pos="2" part="whole"/>
336 </lu>
337 <b pos="2"/>
338 <lu>
339 <clip pos="3" part="whole"/>
340 </lu>
341 <b pos="3"/>
342 <lu>
343 <clip pos="4" part="whole"/>
344 </lu>
345 </out>
346 </when>
347 <otherwise>
348 <out>
349 <lu>
350 <clip pos="1" part="whole"/>
351 </lu>
352 <b pos="1"/>
353 <lu>
354 <clip pos="2" part="whole"/>
355 </lu>
356 <b pos="2"/>
357 <lu>
358 <clip pos="3" part="whole"/>
359 </lu>
360 <b pos="3"/>
361 <lu>
362 <clip pos="4" part="whole"/>
363 </lu>
364 </out>
365 </otherwise>
366 </choose>
367 </action>
368 </rule>
370 <rule comment="treu el det 5 elem">
371 <pattern>
372 <pattern-item n="sn_5e"/>
373 </pattern>
374 <action>
375 <choose>
376 <when>
377 <test>
378 <equal>
379 <clip pos="0" part="determinant"/>
380 <lit-tag v="treu_det"/>
381 </equal>
382 </test>
383 <call-macro n="f_bcond">
384 <with-param pos="1"/>
385 </call-macro>
386 <out>
387 <lu>
388 <clip pos="2" part="whole"/>
389 </lu>
390 <b pos="2"/>
391 <lu>
392 <clip pos="3" part="whole"/>
393 </lu>
394 <b pos="3"/>
395 <lu>
396 <clip pos="4" part="whole"/>
397 </lu>
398 <b pos="4"/>
399 <lu>
400 <clip pos="5" part="whole"/>
401 </lu>
402 </out>
403 </when>
404 <otherwise>
405 <out>
406 <lu>
407 <clip pos="1" part="whole"/>
408 </lu>
409 <b pos="1"/>
410 <lu>
411 <clip pos="2" part="whole"/>
412 </lu>
413 <b pos="2"/>
414 <lu>
415 <clip pos="3" part="whole"/>
416 </lu>
417 <b pos="3"/>
418 <lu>
419 <clip pos="4" part="whole"/>
420 </lu>
421 <b pos="4"/>
422 <lu>
423 <clip pos="5" part="whole"/>
424 </lu>
425 </out>
426 </otherwise>
427 </choose>
428 </action>
429 </rule>
431 </section-rules>
432 </postchunk>