From: Mischa POSLAWSKY Date: Mon, 6 Jun 2022 16:54:35 +0000 (+0200) Subject: word: localised browser hyphenation instead of poor poc X-Git-Tag: v1.14~68 X-Git-Url: http://git.shiar.nl/sheet.git/commitdiff_plain/73efa77e17e78f6af24c05855873529f1c204b8f word: localised browser hyphenation instead of poor poc --- diff --git a/base.css b/base.css index 31429aa..34a0efe 100644 --- a/base.css +++ b/base.css @@ -722,6 +722,7 @@ figure img { .gallery figure { overflow: hidden; box-sizing: border-box; + hyphens: auto; } .gallery figcaption > small { display: inline-block; diff --git a/word.plp b/word.plp index a3be917..909c6fd 100644 --- 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{\( ([^/]+) \)}{$1}x; $name .= " ($_)" for @morenames;