summaryrefslogtreecommitdiff
path: root/localmarkdown2sms
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2010-09-28 11:25:40 +0200
committerJonas Smedegaard <dr@jones.dk>2010-09-28 11:25:40 +0200
commit8e660b525ca6663644acedfbf139c6d76eace546 (patch)
tree5602a9caec60ec7e1fd75f939fd1407de591903f /localmarkdown2sms
parent3b41cf4d203767f6d4dd235c9f060db7e5eaa512 (diff)
Hardcode strip a-grave from keyword.
Diffstat (limited to 'localmarkdown2sms')
-rwxr-xr-xlocalmarkdown2sms4
1 files changed, 4 insertions, 0 deletions
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);