From e2b6bd0fc9938586edb09d745cbfc0855c4f456e Mon Sep 17 00:00:00 2001 From: "D. Moonfire" Date: Sat, 27 Oct 2018 00:05:13 -0500 Subject: [PATCH] fix: fixing the slug for multi-word entries --- bin/create-dictionary-markdown | 2 ++ 1 file changed, 2 insertions(+) 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):";