fix: fixing the slug for multi-word entries
This commit is contained in:
parent
feeaf97daf
commit
e2b6bd0fc9
1 changed files with 2 additions and 0 deletions
|
@ -171,11 +171,13 @@ sub process_word
|
||||||
{
|
{
|
||||||
# Start by formatting the word.
|
# Start by formatting the word.
|
||||||
my $slug = $word;
|
my $slug = $word;
|
||||||
|
|
||||||
$slug =~ s/[áàā]/a/g;
|
$slug =~ s/[áàā]/a/g;
|
||||||
$slug =~ s/[éèē]/e/g;
|
$slug =~ s/[éèē]/e/g;
|
||||||
$slug =~ s/[íìī]/i/g;
|
$slug =~ s/[íìī]/i/g;
|
||||||
$slug =~ s/[óòō]/o/g;
|
$slug =~ s/[óòō]/o/g;
|
||||||
$slug =~ s/[úùū]/u/g;
|
$slug =~ s/[úùū]/u/g;
|
||||||
|
$slug =~ s/[\s-]+/-/g;
|
||||||
|
|
||||||
print $DICT "[$word]($bs/$slug$EXT):";
|
print $DICT "[$word]($bs/$slug$EXT):";
|
||||||
print $SYB "[$word]($slug$EXT):";
|
print $SYB "[$word]($slug$EXT):";
|
||||||
|
|
Loading…
Reference in a new issue