File: apertium-af-nl.post-nl.t1x

package info (click to toggle)
apertium-af-nl 0.2.0~r58256-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 5,516 kB
  • sloc: xml: 255; makefile: 117; sh: 111
file content (60 lines) | stat: -rw-r--r-- 1,427 bytes parent folder | download | duplicates (2)
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
<?xml version="1.0"?>
<transfer>
  <section-def-cats>
    <def-cat n="punct">
      <cat-item lemma="," tags="cm"/>
      <cat-item lemma="." tags="sent"/>
      <cat-item lemma=";" tags="sent"/>
      <cat-item lemma=":" tags="sent"/>
    </def-cat>

    <def-cat n="any">
      <cat-item tags=""/>        <!-- unknown words -->
      <cat-item tags="*"/>
    </def-cat>

  </section-def-cats>

  <section-def-attrs>
    <def-attr n="a_punct">
      <attr-item tags="sent"/>
      <attr-item tags="cm"/>
    </def-attr>
  </section-def-attrs>

  <section-def-vars>
    <def-var n="last_punct"/>
  </section-def-vars>

  <section-rules>
    <rule>
      <pattern>
        <pattern-item n="any"/>
        <pattern-item n="punct"/>
      </pattern>
      <action>
        <choose>
          <when>
            <test>
              <equal>
                <b pos="1"/>
                <lit v=" "/>
              </equal>
            </test>
            <out>
              <lu><clip pos="1" side="tl" part="whole"/></lu>
              <lu><clip pos="2" side="tl" part="whole"/></lu>
            </out>
          </when>
          <otherwise>
            <out>
              <lu><clip pos="1" side="tl" part="whole"/></lu>
              <b pos="1"/>
              <lu><clip pos="2" side="tl" part="whole"/></lu>
            </out>
          </otherwise>
        </choose>
      </action>
    </rule>
  </section-rules>
</transfer>