X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/887c3bf51abe9f83b4892c48437a7947ebb7fa5d..77ac3d52d89913a79cca834d882c54a58c15a488:/Shiar_Sheet/FormatChar.pm diff --git a/Shiar_Sheet/FormatChar.pm b/Shiar_Sheet/FormatChar.pm index 71dadfe..c93a48a 100644 --- a/Shiar_Sheet/FormatChar.pm +++ b/Shiar_Sheet/FormatChar.pm @@ -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) = @_; @@ -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'; } @@ -136,7 +136,7 @@ sub cell { if ($input =~ /[ -~]/) { push @class, 'l5', 'u-ascii'; # ascii } - elsif ($input =~ /^\p{in=6.0}+$/) { + elsif ($input =~ /^\p{in=6.0}+$/ and $input !~ /\p{Co}/) { push @class, 'l2'; # in unicode 6.0 } else {