sub name { return $_[0]->{name}; }
+sub needs_lines { 1 }
+
sub decode
{
my ($obj,$str,$chk) = @_;
sub iso_euc{
my $r_str = shift;
- $$r_str =~ s/$RE{'2022_KR'}//gox; # remove the designator
+ $$r_str =~ s/$RE{'2022_KR'}//gox; # remove the designator
$$r_str =~ s{ # replace chars. in GL
\x0e # between SO(\x0e) and SI(\x0f)
([^\x0f]*) # with chars. in GR
\x0f
}
{
- my $out= $1;
+ my $out= $1;
$out =~ tr/\x21-\x7e/\xa1-\xfe/;
$out;
}geox;
sub euc_iso{
my $r_str = shift;
- substr($$r_str,0,0)=$ESC{'2022_KR'}; # put the designator at the beg.
+ substr($$r_str,0,0)=$ESC{'2022_KR'}; # put the designator at the beg.
$$r_str =~ s{ # move KS X 1001 chars. in GR to GL
($RE{EUC_C}+) # and enclose them with SO and SI
}{