diff options
author | Patrick Simianer <patrick@lilt.com> | 2020-02-03 15:23:47 +0000 |
---|---|---|
committer | Patrick Simianer <patrick@lilt.com> | 2020-02-03 15:23:47 +0000 |
commit | 53c3d328dbe9a56b54f6d7dc51491ecf92081fef (patch) | |
tree | 7fecbeed405f4be607c4b6e13e99c2f837305c60 | |
parent | a8b1a9e3923c315a1ade856b0610f92489611cd5 (diff) |
de-sgm
-rwxr-xr-x | de-sgm | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -1,7 +1,10 @@ #!/bin/sh - egrep -v "^[[:space:]]*(<\?xml.*\?>|</?(mteval|doc|srcset|refset|translator|reviewer)[^>]*>)[[:space:]]*$" \ | egrep -v "^[[:space:]]*<(url|description|keywords|talkid|title|translator|reviewer)[^>]*>.*</(url|description|keywords|talkid|title|translator|reviewer)>[[:space:]]*$" \ - | sed "s|<seg[^>]*>\s*||" | sed "s|\s*</seg>$||" | egrep -v "^[[:space:]]*<p>[[:space:]]*$|^[[:space:]]*</p>[[:space:]]*$" + | sed "s|<seg[^>]*>\s*||" \ + | sed "s|\s*</seg>\s*$||" \ + | egrep -v "^[[:space:]]*<p>[[:space:]]*$|^[[:space:]]*</p>[[:space:]]*$" \ + | sed "s|<speaker>\s*||" \ + | sed "s|\s*</speaker>\s*$||" |