git.shiar.nl
/
sheet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
common: bump version to 1.11
[sheet.git]
/
keyboard.plp
diff --git
a/keyboard.plp
b/keyboard.plp
index 1ad932462261c95f2360079d18be299e9cba822a..8060fa605b30cd542b780773a8e2184ce7fbbdbe 100644
(file)
--- a/
keyboard.plp
+++ b/
keyboard.plp
@@
-2,7
+2,7
@@
Html({
title => 'keyboard cheat sheet',
Html({
title => 'keyboard cheat sheet',
- version => '1.
0
',
+ version => '1.
1
',
stylesheet => [qw( light dark circus mono red )],
keys => 1,
});
stylesheet => [qw( light dark circus mono red )],
keys => 1,
});
@@
-15,6
+15,7
@@
Html({
<:
use Shiar_Sheet::Keyboard 2.07;
use Unicode::Normalize qw( NFKD );
<:
use Shiar_Sheet::Keyboard 2.07;
use Unicode::Normalize qw( NFKD );
+use Text::Unidecode qw( unidecode );
my @usintrows = (
[ 'a' .. 'z'],
my @usintrows = (
[ 'a' .. 'z'],
@@
-38,9
+39,10
@@
my $keys = Shiar_Sheet::Keyboard->new({
my $class = (
!defined $row[2] || $row[0] eq $row[2] ? 1 # identical
: NFKD($row[2]) =~ $row[0] ? 2 # decomposed equivalent
my $class = (
!defined $row[2] || $row[0] eq $row[2] ? 1 # identical
: NFKD($row[2]) =~ $row[0] ? 2 # decomposed equivalent
- : $row[2] =~ /^\p{Latin}/ ? 3 # latin script
- : $row[2] =~ /^\p{Mn}/ ? 5 # combining accent
- : 4
+ : $row[2] =~ /^\p{Latin}/ ? 4 # latin script
+ : unidecode($row[2]) =~ /^\W*\Q$row[0]/ ? 5 # transliterated
+ : $row[2] =~ /^\p{Mn}/ ? 8 # combining accent
+ : 7
);
$row[0] => "g$class"
} @usint
);
$row[0] => "g$class"
} @usint
@@
-54,9
+56,9
@@
my $keys = Shiar_Sheet::Keyboard->new({
flag => {
g1 => ['unaltered'],
g2 => ['accented'],
flag => {
g1 => ['unaltered'],
g2 => ['accented'],
- g
3
=> ['latin'],
- g
4
=> ['other'],
- g
5
=> ['combining'],
+ g
4
=> ['latin'],
+ g
7
=> ['other'],
+ g
8
=> ['combining'],
},
});
$keys->map($get{map}) or undef $get{map};
},
});
$keys->map($get{map}) or undef $get{map};