diff --git a/bin/create-dictionary-markdown b/bin/create-dictionary-markdown index 51d9b6c..9bf6d0a 100755 --- a/bin/create-dictionary-markdown +++ b/bin/create-dictionary-markdown @@ -171,11 +171,13 @@ sub process_word { # Start by formatting the word. my $slug = $word; + $slug =~ s/[áàā]/a/g; $slug =~ s/[éèē]/e/g; $slug =~ s/[íìī]/i/g; $slug =~ s/[óòō]/o/g; $slug =~ s/[úùū]/u/g; + $slug =~ s/[\s-]+/-/g; print $DICT "[$word]($bs/$slug$EXT):"; print $SYB "[$word]($slug$EXT):";