X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/0c9d5cd332b3a9124f75926de5094c90b353e238..ffb77a24b04bf95317563abe88e1f49797883741:/charset.plp diff --git a/charset.plp b/charset.plp index 7f19bc1..6300622 100644 --- a/charset.plp +++ b/charset.plp @@ -147,11 +147,11 @@ sub tabinput { eval { $charset->{setup}->(\%row) } or Alert("Incomplete setup of $input", $@); } + $row{endpoint} ||= 0xFF; if ($row{set}) {} elsif ($row{set} = Encode::resolve_alias($input)) { $row{offset} = delete $row{startpoint}; - $row{endpoint} ||= 0xFF; if ($row{set} eq 'MacHebrew' or $row{set} eq 'MacThai') { # array of possibly multiple characters per code point $row{table} = [ @@ -178,6 +178,12 @@ sub tabinput { while (my ($offset, $sub) = each %{$replace}) { $offset -= $row{offset}; + if (ref $row{table} eq 'ARRAY') { + $row{table}->[$offset] = $sub + if $offset >= 0 and $offset <= $row{endpoint}; + next; + } + my $length = length $sub; if ($offset < 0) {