Debian Codegraph @

apertium-eo-fr.fr-eo.antaux4_t2x

raw
1 <?xml version="1.0" encoding="UTF-8"?>
2 <interchunk>
3
4 <section-def-cats>
5 <def-cat n="SN">
6 <cat-item tags="SN.*"/>
7 <cat-item tags="unknown"/>
8 </def-cat>
9
10 <def-cat n="SNnotunk">
11 <cat-item tags="SN.*"/>
12 </def-cat>
13
14 <def-cat n="SNrelatiu">
15 <cat-item tags="SNrelatiu.*"/>
16 <cat-item lemma="qui" tags="SN.itg.*"/>
17 <cat-item lemma="que" tags="SN.itg.*"/>
18 </def-cat>
19
20 <def-cat n="kiu">
21 <cat-item lemma="prn" tags="SNrelatiu.*"/>
22 </def-cat>
23
24 <def-cat n="SN_nopron"> <!-- sen pronomoj -->
25 <cat-item tags="SN.m.*"/>
26 <cat-item tags="SN.f.*"/>
27 <cat-item tags="SN.mf.*"/>
28 </def-cat>
29
30 <def-cat n="SN_nopron_obj_dat"> <!-- sen pronomoj prn.obj, prn.dat, prn.itg -->
31 <cat-item tags="SN.m.*"/>
32 <cat-item tags="SN.f.*"/>
33 <cat-item tags="SN.mf.*"/>
34 <cat-item tags="SN.tn.*"/>
35 <cat-item tags="SN.subj.*"/>
36 </def-cat>
37
38 <def-cat n="SN_noitg"> <!-- sen demandopronomoj -->
39 <cat-item tags="SN.m.*"/>
40 <cat-item tags="SN.f.*"/>
41 <cat-item tags="SN.mf.*"/>
42 <cat-item tags="SN.tn.*"/>
43 <cat-item tags="SN.subj.*"/>
44 <cat-item tags="SN.obj.*"/>
45 <cat-item tags="SN.dat.*"/>
46 <cat-item tags="unknown"/>
47 </def-cat>
48
49 <def-cat n="SVser">
50 <cat-item tags="SV.vbser.*"/>
51 </def-cat>
52
53 <def-cat n="prn_subjenc">
54 <cat-item lemma="prn_subjenc" tags="SN.subj.*"/>
55 </def-cat>
56
57 <def-cat n="prn_nosubj">
58 <cat-item lemma="prn_nosubj" tags="SN.*"/>
59 <cat-item tags="SN.obj.*"/>
60 <cat-item tags="SN.dat.*"/>
61 </def-cat>
62
63 <def-cat n="SA">
64 <cat-item tags="SA.*"/>
65 </def-cat>
66
67 <def-cat n="num">
68 <cat-item lemma="num" tags="SN.*"/>
69 </def-cat>
70
71 <def-cat n="det">
72 <cat-item tags="det.*"/>
73 </def-cat>
74
75 <def-cat n="SAdj"> <!-- adjektiva sintagmo -->
76 <cat-item tags="SA.*"/>
77 </def-cat>
78
79 <def-cat n="pp">
80 <cat-item lemma="pp" tags="SA.*"/>
81 </def-cat>
82
83 <def-cat n="pp_adj">
84 <cat-item lemma="pp" tags="SA.*"/>
85 <cat-item lemma="adj" tags="SA.*"/>
86 <cat-item lemma="adv_adj" tags="SA.*"/>
87 </def-cat>
88
89 <def-cat n="adv">
90 <cat-item tags="adv"/>
91 <cat-item tags="preadv"/>
92 </def-cat>
93
94 <def-cat n="ne">
95 <cat-item lemma="ne" tags="adv"/>
96 </def-cat>
97
98 <def-cat n="nek">
99 <cat-item lemma="nek" tags="cnjcoo"/>
100 </def-cat>
101
102 <def-cat n="adv_cnj">
103 <cat-item tags="adv"/>
104 <cat-item tags="preadv"/>
105 <cat-item tags="cnjadv"/>
106 </def-cat>
107
108 <def-cat n="SV">
109 <cat-item tags="SV"/>
110 <cat-item tags="SV.*"/>
111 </def-cat>
112
113 <def-cat n="SVvolition">
114 <cat-item tags="SV.*.volition"/>
115 </def-cat>
116
117 <def-cat n="ser">
118 <cat-item tags="SV.vbser.*"/>
119 </def-cat>
120
121 <def-cat n="cnjsub">
122 <cat-item tags="cnjsub"/>
123 </def-cat>
124
125 <def-cat n="porke">
126 <cat-item lemma="por ke" tags="cnjsub"/>
127 </def-cat>
128
129 <def-cat n="pr">
130 <cat-item tags="pr"/>
131 </def-cat>
132
133 <def-cat n="de">
134 <cat-item lemma="de" tags="pr"/>
135 </def-cat>
136
137 <def-cat n="unknown">
138 <cat-item lemma="unknown" tags="unknown"/>
139 </def-cat>
140
141 <def-cat n="and_or">
142 <cat-item tags="and_or.*"/>
143 <cat-item tags="cnjcoo.*"/>
144 <cat-item tags="cnjcoo"/>
145 </def-cat>
146
147 <def-cat n="al">
148 <cat-item lemma="al" tags="pr"/>
149 </def-cat>
150
151 <def-cat n="da">
152 <cat-item lemma="da" tags="pr"/>
153 </def-cat>
154
155 <def-cat n="loc">
156 <cat-item lemma="loc" tags="SN.*"/>
157 </def-cat>
158
159 <def-cat n="que">
160 <cat-item tags="SN.itg.*"/>
161 </def-cat>
162
163 <def-cat n="sent">
164 <cat-item tags="sent"/>
165 </def-cat>
166
167 <def-cat n="sent_frazofina">
168 <cat-item lemma="." tags="sent"/>
169 <cat-item lemma="?" tags="sent"/>
170 <cat-item lemma="!" tags="sent"/>
171 <cat-item lemma=":" tags="sent"/>
172 <cat-item lemma=";" tags="sent"/>
173 </def-cat>
174
175 <def-cat n="cm">
176 <cat-item lemma="cm" tags="sent"/>
177 </def-cat>
178
179 <def-cat n="cm_lpar">
180 <cat-item lemma="cm" tags="sent"/>
181 <cat-item lemma="lpar" tags="sent"/>
182 </def-cat>
183
184 <def-cat n="sent_preblank">
185 <cat-item lemma="?" tags="sent"/>
186 <cat-item lemma="!" tags="sent"/>
187 <cat-item lemma=":" tags="sent"/>
188 <cat-item lemma=";" tags="sent"/>
189 </def-cat>
190
191 <def-cat n="any">
192 <cat-item tags="SN.*"/>
193 <cat-item tags="SA.*"/>
194 <cat-item tags="SV.*"/>
195 <cat-item tags="preadv"/>
196 <cat-item tags="adv"/>
197 <cat-item tags="adv.*"/>
198 <cat-item tags="num.*"/>
199 <cat-item tags="predet.*"/>
200 <cat-item tags="det.*"/>
201 <cat-item tags="cnjadv"/>
202 <cat-item tags="cnjcoo"/>
203 <cat-item tags="cnjsub"/>
204 <cat-item tags="pr"/>
205 <cat-item tags="ij"/>
206 <cat-item tags="unknown"/>
207 <cat-item tags="sent"/>
208 <cat-item tags="default"/>
209 </def-cat>
210 </section-def-cats>
211
212 <section-def-attrs>
213 <def-attr n="gen">
214 <attr-item tags="m"/>
215 <attr-item tags="f"/>
216 <attr-item tags="mf"/>
217 </def-attr>
218
219 <def-attr n="nbr">
220 <attr-item tags="sg"/>
221 <attr-item tags="pl"/>
222 <attr-item tags="sp"/>
223 </def-attr>
224
225 <def-attr n="tipus_prn">
226 <attr-item tags="subj"/>
227 <attr-item tags="obj"/>
228 <attr-item tags="dat"/>
229 <attr-item tags="tn"/>
230 <attr-item tags="itg"/>
231 <attr-item tags="pos"/>
232 <attr-item tags="ref"/>
233 </def-attr>
234
235 <def-attr n="temps">
236 <attr-item tags="inf"/>
237 <attr-item tags="pres"/>
238 <attr-item tags="prs"/>
239 <attr-item tags="past"/>
240 <attr-item tags="pri"/>
241 <attr-item tags="ifip"/>
242 <attr-item tags="cni"/>
243 <attr-item tags="fti"/>
244 <attr-item tags="pp"/>
245 <attr-item tags="ger"/>
246 <attr-item tags="pprs"/>
247 <attr-item tags="subs"/>
248 <attr-item tags="imp"/>
249 </def-attr>
250
251 </section-def-attrs>
252
253
254 <section-def-vars>
255 <def-var n="nombre"/>
256 <def-var n="genere"/>
257 </section-def-vars>
258
259
260 <section-def-macros>
261
262 <def-macro n="kunordigo_nbr" npar="2">
263 <choose>
264 <when>
265 <test>
266 <and>
267 <or>
268 <equal><clip pos="2" part="nbr"/><lit-tag v="sp"/></equal>
269 <equal><clip pos="2" part="nbr"/><lit-tag v="ND"/></equal>
270 </or>
271 <or>
272 <equal><clip pos="1" part="nbr"/><lit-tag v="sg"/></equal>
273 <equal><clip pos="1" part="nbr"/><lit-tag v="pl"/></equal>
274 </or>
275 </and>
276 </test>
277 <let><clip pos="2" part="nbr"/><clip pos="1" part="nbr"/></let>
278 </when>
279 </choose>
280 <choose>
281 <when>
282 <test>
283 <and>
284 <or>
285 <equal><clip pos="1" part="nbr"/><lit-tag v="sp"/></equal>
286 <equal><clip pos="1" part="nbr"/><lit-tag v="ND"/></equal>
287 </or>
288 <or>
289 <equal><clip pos="2" part="nbr"/><lit-tag v="sg"/></equal>
290 <equal><clip pos="2" part="nbr"/><lit-tag v="pl"/></equal>
291 </or>
292 </and>
293 </test>
294 <let><clip pos="1" part="nbr"/><clip pos="2" part="nbr"/></let>
295 </when>
296 </choose>
297 </def-macro>
298
299 <def-macro n="forigi_imp" npar="1">
300 <choose>
301 <when>
302 <test>
303 <equal>
304 <clip pos="1" part="temps"/>
305 <lit-tag v="imp"/>
306 </equal>
307 </test>
308 <let>
309 <clip pos="1" part="temps"/>
310 <lit-tag v="pres"/>
311 </let>
312 </when>
313 </choose>
314 </def-macro>
315
316 <def-macro n="f_bcond" npar="2"><!--Per mirar si el blanc conté o no format. Cal posar aquesta funció en les regles en què desaparegui alguna paraula, per tal de decidir si el blanc de la paraula eliminada s'ha d'eliminar o conservar. Si conté format cal conservar-la, si no en conté cal eliminar-la perquè no apareguin dos espais seguits. -->
317 <choose>
318 <when>
319 <test><not><equal><b pos="1"/><lit v=" "/></equal></not></test>
320 <out>
321 <b pos="1"/>
322 </out>
323 </when>
324 </choose>
325 </def-macro>
326
327 </section-def-macros>
328
329 <section-rules>
330
331 <!-- +U en verboj -->
332
333 <rule comment="REGLA: porke SN SV ( pour que tu viennes - por ke vi venu (verb subordinat en volitiu)">
334 <pattern>
335 <pattern-item n="porke"/>
336 <pattern-item n="SN"/>
337 <pattern-item n="SV"/>
338 </pattern>
339 <action>
340 <let>
341 <clip pos="3" part="temps"/>
342 <lit-tag v="imp"/>
343 </let>
344 <out>
345 <chunk>
346 <clip pos="1" part="whole"/>
347 </chunk>
348 <b pos="1"/>
349 <chunk>
350 <clip pos="2" part="whole"/>
351 </chunk>
352 <b pos="2"/>
353 <chunk>
354 <clip pos="3" part="lem"/>
355 <clip pos="3" part="tags"/>
356 <clip pos="3" part="chcontent"/>
357 </chunk>
358 </out>
359 </action>
360 </rule>
361
362 <rule comment="REGLA: SVvolition cnjsub SN SV ( je veux que tu viennes - mi volas ke vi venu (verb subordinat en volitiu)">
363 <pattern>
364 <pattern-item n="SVvolition"/>
365 <pattern-item n="cnjsub"/>
366 <pattern-item n="SN"/>
367 <pattern-item n="SV"/>
368 </pattern>
369 <action>
370 <let>
371 <clip pos="4" part="temps"/>
372 <lit-tag v="imp"/>
373 </let>
374 <out>
375 <chunk>
376 <clip pos="1" part="whole"/>
377 </chunk>
378 <b pos="1"/>
379 <chunk>
380 <clip pos="2" part="whole"/>
381 </chunk>
382 <b pos="2"/>
383 <chunk>
384 <clip pos="3" part="whole"/>
385 </chunk>
386 <b pos="3"/>
387 <chunk>
388 <clip pos="4" part="lem"/>
389 <clip pos="4" part="tags"/>
390 <clip pos="4" part="chcontent"/>
391 </chunk>
392 </out>
393 </action>
394 </rule>
395
396
397 <!-- kunordigo predikativo -->
398
399 <rule comment="REGLA: SN SVser SA (ils sont heureux - ili estas feliĉaj)">
400 <pattern>
401 <pattern-item n="SN"/>
402 <pattern-item n="ser"/>
403 <pattern-item n="SA"/>
404 </pattern>
405 <action>
406 <call-macro n="forigi_imp">
407 <with-param pos="2"/>
408 </call-macro>
409 <call-macro n="kunordigo_nbr">
410 <with-param pos="2"/>
411 <with-param pos="3"/>
412 </call-macro>
413
414 <out>
415 <chunk>
416 <clip pos="1" part="lem"/>
417 <clip pos="1" part="tags"/>
418 <clip pos="1" part="chcontent"/>
419 </chunk>
420 <b pos="1"/>
421 <chunk>
422 <clip pos="2" part="lem"/>
423 <clip pos="2" part="tags"/>
424 <clip pos="2" part="chcontent"/>
425 </chunk>
426 <b pos="2"/>
427 <chunk>
428 <clip pos="3" part="whole"/>
429 </chunk>
430 </out>
431 </action>
432 </rule>
433
434 <rule comment="REGLA: SVser SA (sont heureux - estas feliĉaj)">
435 <pattern>
436 <pattern-item n="ser"/>
437 <pattern-item n="SA"/>
438 </pattern>
439 <action>
440 <call-macro n="kunordigo_nbr">
441 <with-param pos="1"/>
442 <with-param pos="2"/>
443 </call-macro>
444
445 <out>
446 <chunk>
447 <clip pos="1" part="lem"/>
448 <clip pos="1" part="tags"/>
449 <clip pos="1" part="chcontent"/>
450 </chunk>
451 <b pos="1"/>
452 <chunk>
453 <clip pos="2" part="lem"/>
454 <clip pos="2" part="tags"/>
455 <clip pos="2" part="chcontent"/>
456 </chunk>
457 </out>
458 </action>
459 </rule>
460
461
462 <!-- ne funkcias sufiĉe kontentige (kondiĉoj devas esti pli striktaj)
463 <rule comment="REGLA: SVser PR SN KIU - SVser PR SN KE: c'est à cette date que - estas en tiu dato, ke ">
464 <pattern>
465 <pattern-item n="SVser"/>
466 <pattern-item n="pr"/>
467 <pattern-item n="SN"/>
468 <pattern-item n="kiu"/>
469 </pattern>
470 <action>
471 <out>
472 <chunk>
473 <clip pos="1" part="whole"/>
474 </chunk>
475 <b pos="1"/>
476 <chunk>
477 <clip pos="2" part="whole"/>
478 </chunk>
479 <b pos="2"/>
480 <chunk>
481 <clip pos="3" part="whole"/>
482 </chunk>
483 <b pos="3"/>
484 <chunk>
485 <get-case-from pos="4">
486 <lit v="ke"/>
487 </get-case-from>
488 <lit-tag v="cnjsub"/>
489 <lit v="{^"/>
490 <get-case-from pos="4">
491 <lit v="ke"/>
492 </get-case-from>
493 <lit-tag v="cnjsub"/>
494 <lit v="$}"/>
495 </chunk>
496 </out>
497 </action>
498 </rule>
499 -->
500
501 <!-- BLANKOJ -->
502
503 <rule comment="REGLA: forigo de blankoj antaŭ fermaj interpunkciiloj ">
504 <pattern>
505 <pattern-item n="any"/>
506 <pattern-item n="sent_preblank"/>
507 </pattern>
508 <action>
509 <out>
510 <chunk>
511 <clip pos="1" part="whole"/>
512 </chunk>
513 </out>
514 <call-macro n="f_bcond"><with-param pos="1"/><with-param pos="2"/></call-macro>
515 <out>
516 <chunk>
517 <clip pos="2" part="whole"/>
518 </chunk>
519 </out>
520 </action>
521 </rule>
522
523 <rule comment="REGLA: forigo de blankoj antaŭ fermaj interpunkciiloj ">
524 <pattern>
525 <pattern-item n="any"/>
526 <pattern-item n="sent_preblank"/>
527 <pattern-item n="sent_preblank"/>
528 </pattern>
529 <action>
530 <out>
531 <chunk>
532 <clip pos="1" part="whole"/>
533 </chunk>
534 </out>
535 <call-macro n="f_bcond"><with-param pos="1"/><with-param pos="2"/></call-macro>
536 <out>
537 <chunk>
538 <clip pos="2" part="whole"/>
539 </chunk>
540 </out>
541 <call-macro n="f_bcond"><with-param pos="2"/><with-param pos="3"/></call-macro>
542 <out>
543 <chunk>
544 <clip pos="3" part="whole"/>
545 </chunk>
546 </out>
547 </action>
548 </rule>
549
550 </section-rules>
551 </interchunk>