summaryrefslogtreecommitdiff
path: root/de-sgm
blob: 3b3a8e0078f74e2cbbfb1558416e23ed310f2d18 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

egrep -v -i "^[[:space:]]*(<\?xml.*\?>|</?(mteval|doc|srcset|refset|translator|reviewer)[^>]*>)[[:space:]]*$" \
  | egrep -v -i "^[[:space:]]*<(url|description|keywords|talkid|title|translator|reviewer)[^>]*>.*</(url|description|keywords|talkid|title|translator|reviewer)>[[:space:]]*$" \
  | sed "s|<seg[^>]*>\s*||" \
  | sed "s|\s*</seg>\s*$||" \
  | egrep -v -i "^[[:space:]]*<p>[[:space:]]*$|^[[:space:]]*</p>[[:space:]]*$" \
  | sed "s|<speaker>\s*||" \
  | sed "s|\s*</speaker>\s*$||" \
  | sed "s|\s*<hl>\s*$||" \
  | sed "s|\s*</hl>\s*$||"