One more
[apertium.git] / apertium-sv-da / apertium-sv-da.trules-da-sv.xml
blob1cbeee302754f290a8fa743ae92bf6ecc65360ec
1 <?xml version="1.0" encoding="UTF-8"?> <!-- -*- nxml -*- -->
2 <transfer>
3 <section-def-cats>
5      <def-cat n="navn">
6           <cat-item tags="n.*"/>
7      </def-cat>
8      
9       <def-cat n="detdem">          
10           <cat-item tags="det.dem.*"/>
11       </def-cat>
12       
13   
14      <def-cat n="adj">          
15           <cat-item tags="adj.*"/>
16       </def-cat>
18      <def-cat n="adjec">          
19           <cat-item tags="adj.*"/>
20           <cat-item tags="vblex.pret.*"/>
21       </def-cat>
23       
24       
25          
26 </section-def-cats>
28 <section-def-attrs>
29      <def-attr n="a_nom">
30           <attr-item tags="n"/>
31      </def-attr>
33      <def-attr n="a_adj">
34           <attr-item tags="adj.pst"/>
35           <attr-item tags="adj.comp"/>
36           <attr-item tags="adj.sup"/>
37           <attr-item tags="adj.ssup"/>
38      </def-attr>
40      <def-attr n="a_detdem">          
41           <attr-item tags="det.dem"/>
42       </def-attr>
43           
44      <def-attr n="gen">
45           <attr-item tags="ut"/>
46           <attr-item tags="nt"/>
47           <attr-item tags="ea"/>
48      </def-attr>
49       
50        <def-attr n="persona">
51           <attr-item tags="1"/>
52           <attr-item tags="2"/>
53           <attr-item tags="3"/>
54       </def-attr>
56      <def-attr n="a_verb">
57           <attr-item tags="vblex"/>
58           <attr-item tags="vber"/>
59           <attr-item tags="vbhar"/>
60           <attr-item tags="vbmod"/>
61           <attr-item tags="vbaux"/>
62           <attr-item tags="vbs"/>
63      </def-attr>
65    
66      
67       <def-attr n="a_inf">
68           <attr-item tags="vblex.prs"/>
69           <attr-item tags="vber.prs"/>
70           <attr-item tags="vbhar.prs"/>
71           <attr-item tags="vbmod.prs"/>
72           <attr-item tags="vbaux.prs"/>
73           <attr-item tags="vbs.prs"/>
74      </def-attr>
75      <def-attr n="temps">
76           <attr-item tags="inf"/>
77           <attr-item tags="prs"/>
78           <attr-item tags="da"/>
79           <attr-item tags="part"/>
80        </def-attr>   
82      <def-attr n="a_prn">
83        <attr-item tags="prn.enc"/>
84        <attr-item tags="prn.enc.ref"/>
85      </def-attr>
87      <def-attr n="nbr">
88           <attr-item tags="sg"/>
89           <attr-item tags="pl"/>
90           <attr-item tags="sp"/>
91       </def-attr>
93       <def-attr n="cas">
94           <attr-item tags="nom"/>
95           <attr-item tags="gen"/>
96      </def-attr>
98      <def-attr n="defnes">
99           <attr-item tags="def"/>
100           <attr-item tags="indef"/>
101      </def-attr>
102     
103 </section-def-attrs>
105 <section-def-vars>
106       <def-var n="uno"/>
107       <def-var n="genero"/>
108       <def-var n="numero"/>
109       <def-var n="concDet"/>
110       <def-var n="concAdj"/>
111       <def-var n="concPrimero"/>
112       <def-var n="concSegundo"/>
113       <def-var n="concTercero"/>
114       <def-var n="interrogativa"/>
115       <def-var n="exclamativa"/>
116    
117 </section-def-vars>
120 <section-def-macros>
122   <def-macro n="f_bcond" npar="1"><!--Per mirar si el blanc conté o no format -->
123     <choose>
124       <when>
125         <test>
126           <not>
127             <equal>
128               <b pos="1"/>
129               <lit v=" "/>
130             </equal>
131           </not>
132         </test>
133         <out>
134           <b pos="1"/>
135         </out>
136       </when>               
137     </choose>
138   </def-macro>
139   
140 </section-def-macros>
142 <section-rules>
143    
146    <rule> <!-- REGLA: DETERMINANT NOM -->
147       <pattern>
148         <pattern-item n="detdem"/>
149         <pattern-item n="navn"/>
150       </pattern>
151       <action>
152           <out>    
153             <lu>        
154               <clip pos="1" side="tl" part="lem"/>
155               <clip pos="1" side="tl" part="a_detdem"/>
156               <clip pos="2" side="tl" part="gen"/>
157               <clip pos="2" side="tl" part="nbr"/>
158             </lu> 
159             <b pos="1"/>           
160             <lu>
161               <clip pos="2" side="tl" part="lem"/>
162               <clip pos="2" side="tl" part="a_nom"/>
163               <clip pos="2" side="tl" part="gen"/>
164               <clip pos="2" side="tl" part="nbr"/>
165               <lit-tag v="indef"/>
166               <clip pos="2" side="tl" part="cas"/>
167             </lu>
168          </out>       
169      </action>
170    </rule>
174    <rule> <!-- REGLA: DET ADJECTIU NOM-->
175       <pattern>
176         <pattern-item n="detdem"/>
177         <pattern-item n="adjec"/>
178         <pattern-item n="navn"/>
179         
180       </pattern>
181       <action>
182          <out>    
183             <lu>  
184               <clip pos="1" side="tl" part="whole"/>
185             </lu> 
186             <b pos="1"/>           
187             <lu>
188               <clip pos="2" side="tl" part="whole"/>
189             </lu>
190             <b pos="2"/>
191             <lu>
192               <clip pos="3" side="tl" part="lem"/>
193               <clip pos="3" side="tl" part="a_nom"/>
194               <clip pos="3" side="tl" part="gen"/>
195               <clip pos="3" side="tl" part="nbr"/>
196               <lit-tag v="indef"/>
197               <clip pos="3" side="tl" part="cas"/>
198             </lu>
199          </out>
200        
201      </action>
202    </rule>
206 </section-rules>
208 </transfer>