Improve quoting detection
This commit is contained in:
parent
91b37f0937
commit
20334b0557
|
@ -19,13 +19,13 @@ sed -E 's,^ --- (Day changed .*)$,<meta>\1</meta>,' |
|
||||||
# Remove minicat topic diffs
|
# Remove minicat topic diffs
|
||||||
sed -E '/^(..:..) \<\;.minicat\>\; .?\(diff\).*/d' |
|
sed -E '/^(..:..) \<\;.minicat\>\; .?\(diff\).*/d' |
|
||||||
# Speak timestaps and nicks specially
|
# Speak timestaps and nicks specially
|
||||||
sed -E 's,^(..:..) \<\;.?([^& ]+)\>\;,<meta>\1 \2</meta>,' |
|
sed -E 's,^(..:..) \<\;[+@ ]?([^& ]+)\>\;,<meta>\1 \2</meta>,' |
|
||||||
sed -E 's,^(..:..) \* ([^ ]+),<meta>\1 action \2</meta>,' |
|
sed -E 's,^(..:..) \* ([^ ]+),<meta>\1 action \2</meta>,' |
|
||||||
|
|
||||||
# Handle "<-" and "←" answers
|
# Handle "<-" and "←" answers
|
||||||
sed -E 's,\<-|←,<meta>answer</meta>,' |
|
sed -E 's,\<-|←,<meta>answer</meta>,' |
|
||||||
# Handle someone quoting another person
|
# Handle someone quoting another person
|
||||||
sed -E 's,\<\;.?([^& ]+)\>\;,<meta>quoting \1</meta>,g' |
|
sed -E 's,\<\;[+@ ]?([^& :]+)\>\;,<meta>quoting \1</meta>,g' |
|
||||||
sed -E 's,\* ([^ ]+),<meta>quoting action \1</meta>,g' |
|
sed -E 's,\* ([^ ]+),<meta>quoting action \1</meta>,g' |
|
||||||
# Handle URLs
|
# Handle URLs
|
||||||
sed -E 's,(https?|gopher)://[^ )>]+,<meta> \1 URL</meta>,g' |
|
sed -E 's,(https?|gopher)://[^ )>]+,<meta> \1 URL</meta>,g' |
|
||||||
|
|
Loading…
Reference in New Issue