word: localised browser hyphenation instead of poor poc
[sheet.git] / word.plp
index a3be917e1fcbe1eda518bccd21a04e623c9713f5..909c6fdaf7da57e7120ed323cf8a5d07e14b284e 100644 (file)
--- a/word.plp
+++ b/word.plp
@@ -30,6 +30,7 @@ my $limit = $get{v} // (exists $get{v} ? 5 : 3);
 Html({
        title => 'words cheat sheet',
        version => '1.0',
+       lang => $lang,
        description => "Visual words",
        keywords => [qw'
                language
@@ -78,7 +79,6 @@ my $table = Data($wordlistbase);
 sub showimg {
        my ($id, $name) = @_;
        my ($imgname) = $name =~ m{^([^/]+)};
-       $name =~ s/\w{4} [^aoeuiyc\W] [rl]?+ \K (?= [^aoeuiy\W] [rl]? [aoeuiy] \w)/­/gx;
        ($name, my @morenames) = split m{/}, $name;
        $name =~ s{\( ([^/]+) \)}{<small>$1</small>}x;
        $name .= " <small>($_)</small>" for @morenames;