keyboard/altgr: unicode description in unshifted title
[sheet.git] / Shiar_Sheet / FormatChar.pm
index c0a4cb0b6032ddf36bd181a0d78a85f8f6c7d1cb..72d2e3dcadd0bc76072d004bd6562ead297fd288 100644 (file)
@@ -10,7 +10,7 @@ use PLP::Functions 'EscapeHTML';
 
 our $VERSION = '1.08';
 
-our $uc = do 'unicode-char.inc.pl';
+our $uc = do 'data/unicode-char.inc.pl';
 
 sub new {
        my ($class) = @_;
@@ -34,7 +34,7 @@ sub glyph_html {
        my ($class, $name, $mnem, $entity, $string) = @$info;
 
        my $cell = EscapeHTML($string || $char);
-       my $title = sprintf 'U+%04X%s', $codepoint, !!$name && " ($name)";
+       my $title = sprintf 'U+%04X%s', $codepoint, !!$name && " $name";
 
        $cell = "<span>$cell</span>" if $class and $class =~ /\bZs\b/;
        $cell = '&nbsp;' if $cell eq '';
@@ -86,7 +86,7 @@ sub cell {
                if ($self->{style} eq 'univer') {
                        if ($input =~ /\p{age=unassigned}/) {
                                # check include for assignments after unicode 6.0 (perl v5.14)
-                               state $agemap = do 'unicode-age.inc.pl';
+                               state $agemap = do 'data/unicode-age.inc.pl';
                                my $version = $agemap->{$codepoint};
                                push @class, $version ? 'l2' : 'l1';
                        }