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 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276
|
<?xml version="1.0"?>
<transfer>
<section-def-cats>
<def-cat n="nom">
<cat-item tags="n"/>
</def-cat>
<def-cat n="martxan_joan">
<cat-item lemma="martxan joan" tags="vbsint.*"/>
</def-cat>
<def-cat n="vbsint">
<cat-item tags="vbsint"/>
</def-cat>
<def-cat n="ez">
<cat-item lemma="ez" tags="adv"/>
</def-cat>
<def-cat n="a">
<cat-item lemma="a" tags="det.art.*"/>
</def-cat>
<def-cat n="oso">
<cat-item lemma="oso" tags="preadv"/>
</def-cat>
<def-cat n="izan">
<cat-item lemma="izan" tags="vbsint.*"/>
</def-cat>
<def-cat n="edin">
<cat-item lemma="edin" tags="vbsint.*"/>
</def-cat>
<def-cat n="ba">
<cat-item lemma="ba" tags="cnjsub"/>
</def-cat>
<def-cat n="nola">
<cat-item lemma="nola" tags="adv.itg"/>
</def-cat>
<def-cat n="punt">
<cat-item lemma="." tags="sent"/>
</def-cat>
</section-def-cats>
<section-def-attrs>
<def-attr n="nbr">
<attr-item tags="sp"/>
<attr-item tags="sg"/>
<attr-item tags="pl"/>
</def-attr>
<def-attr n="norinork">
<attr-item tags="NI_HK"/>
<attr-item tags="NI_HU"/>
<attr-item tags="NI_NI"/>
<attr-item tags="NI_ZK"/>
<attr-item tags="NI_GU"/>
<attr-item tags="NI_ZU"/>
<attr-item tags="NI_HI"/>
<attr-item tags="NK_HK"/>
<attr-item tags="NK_HU"/>
<attr-item tags="NK_NI"/>
<attr-item tags="NK_ZK"/>
<attr-item tags="NK_GU"/>
<attr-item tags="NK_ZU"/>
<attr-item tags="NK_HI"/>
</def-attr>
</section-def-attrs>
<section-def-vars>
<def-var n="numero"/>
</section-def-vars>
<section-def-macros>
<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. -->
<choose>
<when>
<test>
<not>
<equal>
<b pos="1"/>
<lit v=" "/>
</equal>
</not>
</test>
<out>
<b pos="1"/>
</out>
</when>
</choose>
</def-macro>
<def-macro n="nori_to_nork" npar="1">
<choose>
<when>
<test>
<equal>
<clip pos="1" side="sl" part="norinork"/>
<lit-tag v="NI_HK"/>
</equal>
</test>
<let>
<clip pos="1" side="tl" part="norinork"/>
<lit-tag v="NK_HK"/>
</let>
</when>
<when>
<test>
<equal>
<clip pos="1" side="sl" part="norinork"/>
<lit-tag v="NI_HU"/>
</equal>
</test>
<let>
<clip pos="1" side="tl" part="norinork"/>
<lit-tag v="NK_HU"/>
</let>
</when>
<when>
<test>
<equal>
<clip pos="1" side="sl" part="norinork"/>
<lit-tag v="NI_NI"/>
</equal>
</test>
<let>
<clip pos="1" side="tl" part="norinork"/>
<lit-tag v="NK_NI"/>
</let>
</when>
<when>
<test>
<equal>
<clip pos="1" side="sl" part="norinork"/>
<lit-tag v="NI_ZK"/>
</equal>
</test>
<let>
<clip pos="1" side="tl" part="norinork"/>
<lit-tag v="NK_ZK"/>
</let>
</when>
<when>
<test>
<equal>
<clip pos="1" side="sl" part="norinork"/>
<lit-tag v="NI_GU"/>
</equal>
</test>
<let>
<clip pos="1" side="tl" part="norinork"/>
<lit-tag v="NK_GU"/>
</let>
</when>
<when>
<test>
<equal>
<clip pos="1" side="sl" part="norinork"/>
<lit-tag v="NI_ZU"/>
</equal>
</test>
<let>
<clip pos="1" side="tl" part="norinork"/>
<lit-tag v="NK_ZU"/>
</let>
</when>
<when>
<test>
<equal>
<clip pos="1" side="sl" part="norinork"/>
<lit-tag v="NI_HI"/>
</equal>
</test>
<let>
<clip pos="1" side="tl" part="norinork"/>
<lit-tag v="NK_HI"/>
</let>
</when>
</choose>
</def-macro>
</section-def-macros>
<section-rules>
<rule>
<pattern>
<pattern-item n="ez"/>
<pattern-item n="izan"/>
<pattern-item n="oso"/>
<pattern-item n="nom"/>
<pattern-item n="a"/>
</pattern>
<action>
<let>
<clip pos="2" side="tl" part="lem"/>
<lit v="izan__have"/>
</let>
<let>
<clip pos="3" side="tl" part="lem"/>
<lit v="oso__any"/>
</let>
<out>
<lu>
<clip pos="1" side="tl" part="whole"/>
</lu>
<b pos="1"/>
<lu>
<clip pos="2" side="tl" part="whole"/>
</lu>
<b pos="2"/>
<lu>
<clip pos="3" side="tl" part="whole"/>
</lu>
<b pos="3"/>
<lu>
<clip pos="4" side="tl" part="whole"/>
</lu>
<b pos="4"/>
<lu>
<clip pos="5" side="tl" part="whole"/>
</lu>
</out>
</action>
</rule>
<rule>
<pattern>
<pattern-item n="ba"/>
<pattern-item n="edin"/>
<pattern-item n="nola"/>
</pattern>
<action>
<call-macro n="nori_to_nork">
<with-param pos="2"/>
</call-macro>
<let>
<clip pos="2" side="tl" part="lem"/>
<lit v="jakin"/>
</let>
<out>
<lu>
<clip pos="1" side="tl" part="whole"/>
</lu>
<b pos="1"/>
<lu>
<clip pos="2" side="tl" part="whole"/>
</lu>
<b pos="2"/>
<lu>
<clip pos="3" side="tl" part="whole"/>
</lu>
</out>
</action>
</rule>
<rule>
<pattern>
<pattern-item n="martxan_joan"/>
<pattern-item n="nom"/>
</pattern>
<action>
<choose>
<when>
<test>
<equal>
<clip pos="2" side="sl" part="lem"/>
<lit v="tren"/>
</equal>
</test>
<let>
<clip pos="1" side="tl" part="lem"/>
<lit v="martxan joan__move"/>
</let>
</when>
</choose>
<out>
<lu>
<clip pos="1" side="tl" part="whole"/>
</lu>
<b pos="1"/>
<lu>
<clip pos="2" side="tl" part="whole"/>
</lu>
</out>
</action>
</rule>
</section-rules>
</transfer>
|