From 8e660b525ca6663644acedfbf139c6d76eace546 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Tue, 28 Sep 2010 11:25:40 +0200 Subject: Hardcode strip a-grave from keyword. --- localmarkdown2sms | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'localmarkdown2sms') diff --git a/localmarkdown2sms b/localmarkdown2sms index 86b0f6d..5df5964 100755 --- a/localmarkdown2sms +++ b/localmarkdown2sms @@ -86,6 +86,10 @@ if ($stripprefix) { $key = transliterate($key); # use only first chunk of word chars as keyword $key =~ s/^(\S+).*?$/$1/; +# strip problematic chars from keyword +# FIXME: strip as part of transliterate function instead +# TODO: Maintain language-specific lists instead (á is specific to Hungary) +$key =~ tr/à/a/; if ($debug) { Log::Log4perl->easy_init($DEBUG); -- cgit v1.2.3