Ignore messy topic diffs

This commit is contained in:
Juhani Krekelä 2018-09-29 07:34:50 +03:00
parent bb50d6701c
commit 91b37f0937
1 changed files with 4 additions and 2 deletions

View File

@ -16,6 +16,8 @@ sed -E '/^(..:..) -!- ([^ ]+).*has left \#[^ ]* \[[^]]*\]$/d' |
sed -E 's,^(..:..) -!- ([^ ]+) is now known as ([^ ]+)$,<meta>\1 \2 became \3</meta>,' |
# Speak day changes specially
sed -E 's,^ --- (Day changed .*)$,<meta>\1</meta>,' |
# Remove minicat topic diffs
sed -E '/^(..:..) \&lt\;.minicat\&gt\; .?\(diff\).*/d' |
# Speak timestaps and nicks specially
sed -E 's,^(..:..) \&lt\;.?([^& ]+)\&gt\;,<meta>\1 \2</meta>,' |
sed -E 's,^(..:..) \* ([^ ]+),<meta>\1 action \2</meta>,' |
@ -31,8 +33,8 @@ sed -E 's,(https?|gopher)://[^ )>]+,<meta> \1 URL</meta>,g' |
# Handle some common emoticons
sed -E 's,\^_\^,<meta>happy eyes emoticon</meta>,g' |
sed -E 's,\\o\/,<meta>arms in air emoticon</meta>,g' |
sed -E 's,o\/,<meta>arm in air emoticon</meta>,g' |
sed -E 's,\\o,<meta>arm in air emoticon</meta>,g' |
sed -E 's,\bo\/,<meta>arm in air emoticon</meta>,g' |
sed -E 's,\\o\b,<meta>arm in air emoticon</meta>,g' |
sed -E 's,\:\),<meta>smiling emoticon</meta>,g' |
sed -E 's,\(\:,<meta>reversed smiling emoticon</meta>,g' |
sed -E 's,\:\(,<meta>sad emoticon</meta>,g' |