s/\r// 1,5s/^#.*// /^##.*/d s/<<\(Anchor\|TableOfContents\)(.*)>>//g s/{{{#!.*//g s/\({{{\|}}}\|~[-+]\|[-+]~\)//g ### Drop links ### s/\[\+\(wiki\|http\|https\|irc\|ftp\):[^]]\+\]\+//g s/\[\+[\[\:"][^]]\+]\+//g s,http://[^ ]*,,g s/[^!]\([A-Z][a-z0-9]\+\)\{2,\}//g s/{{\(attachement\|inline\):[^}]\+}}/$$attachement/g s/\(attachement\|inline\):[^ ]\+/$$attachement/g ### Variable words s/\(Sid\|Squeeze\|Lenny\|Etch\|Sarge\|Woody\|Potato\|Unstable\|Testing\|OldStable\|Old-Stable\|Stable\)/$$DIST/gI s/[0-9]\.[0-9]\+[^ ]*/$$VERSION/g ### Drop format ### s/^=* \(.*\) =*$/\1/ s/'[']\+//g s/~-\(.*\)-~/\1/g s/^[[:blank:]]*[\$#%]\+// # normalise lists s/^\s*\([0-9]\+\.\|\*\)\s*/ * /g #  drop smileys s,\(\|{\(i\|ok\|OK\|X\|!\|\*\|x\|o\|O\)}\|[;\:]-\?[(|)]\|(\(\.\/\|!\))\|/!\\\|X-(\),,g s/||<[^>]*>/||/g s/||/\r/g /^-\{4,\}/d ### Dummy lines ### s/Tra\(nslation\|duction\)\((s)\|s\)\?:\?// s/([[:blank:];,]*)//g sX^[[:blank:];,\./\*]*$XX s/[[:blank:][:punct:]]\+$//g s/^\([[:blank:]\*]*\(see also\|see\|and\|or\|links\?\|[[:punct:]]\)\)\+$//I #Drop empty lines #/^[[:blank:]]*$/d s/\r/\n/g