From 2ae2bda278bc0f654cd20307e97fa6772f0c1e89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juhani=20Krekel=C3=A4?= Date: Sat, 29 Sep 2018 13:09:55 +0300 Subject: [PATCH] =?UTF-8?q?=E2=80=9C=E2=80=9D=C2=AB=C2=BB=E2=80=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- speak-logs.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/speak-logs.sh b/speak-logs.sh index 821c93f..818d346 100644 --- a/speak-logs.sh +++ b/speak-logs.sh @@ -29,6 +29,8 @@ sed -E 's,\<\;[+@ ]?([^& :]+)\>\;,quoting \1,g' | sed -E 's,\* ([^ ]+),quoting action \1,g' | # Handle URLs sed -E 's,(https?|gopher)://[^ )>]+, \1 URL,g' | +# Handle 'fancy' quotes +sed -E 's,«|“,left quote,g;s,»|”|„,right quote,g' | # Handle some common emoticons sed -E 's,\^_\^,happy eyes emoticon,g' | @@ -50,7 +52,7 @@ sed -E 's,$,,' | sed -E 's,,,g;s,,,g' | # Speak -espeak --stdin --stdout --punct='"“”' -m | +espeak --stdin --stdout --punct='"' -m | # Convert to mp3 ffmpeg -i /dev/stdin -f mp3 "$2"