From: MORO, Shigeki Date: Tue, 7 Oct 2003 15:18:57 +0000 (+0000) Subject: add the description on CHISE_REG X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=57b913508461713993f88bf7bec4f1e995d34c02;p=www%2Fchise.git add the description on CHISE_REG --- diff --git a/perl/index.html.ja.iso-2022-jp b/perl/index.html.ja.iso-2022-jp index 452306b..0926c62 100644 --- a/perl/index.html.ja.iso-2022-jp +++ b/perl/index.html.ja.iso-2022-jp @@ -30,29 +30,39 @@ CHISE $BJ8;z%G!<%?%Y!<%9!J8=>u$G$O(B XEmacs CHISE $BMQ$N(B Berkeley DB $BHGJ8;z%G!<%?%Y!<%9!K$r(B Perl $B$+$i%"%/%;%9$9$k%b%8%e!<%k$r(B $B3+H/$7$F$$$^$9!#(B + $B8=:_!"(BCHISE.pm $B$H(B CHISE_REG.pm $B$N(B + 2$B%b%8%e!<%k$,$"$j$^$9!#(B

-

NAME

+ +

CHISE.pm

+ +

NAME

CHISE

-

SYNOPSIS

+

SYNOPSIS

use CHISE;
-
-my $s1 = CHISE->new(ideograph_daikanwa => 6942); # $B!V;z!W(B
-print $s1->strokes, "\n"; # $B2h?t$rI=<((B
-
-my $s2 = CHISE->new(shinjigen_2 => 1777); # $B!V;z!W(B
-print $s2->compare($s1) * 100, "%\n"; # $s1$B$H(B$s2$B$rHf3S$7$F0lCWN($rI=<((B
-
-# $B2h?t(B15$B!"$A2?JW(B9($B$K$s$Y$s(B)$B$N4A;z$r?7$?$K:n$k(B
-my $s3 = CHISE->define_char(strokes => 15, radical => 9);
-
- -

METHOD

+my $s1 = CHISE->define_char(strokes => 12, radical => 9); +my $s2 = CHISE->define_char(strokes => 12, radical => 9, +ideograph_daikanwa => 694); +my $c = $s1->compare($s2); +if ($c == $CHISE::EXCLUSIVE) { +print "$BGSB>E*(B\n"; +} elsif ($c == $CHISE::HAVE_INTERSECTION) { +print "$B6&DLItJ,$"$j(B\n"; +} elsif ($c == $CHISE::PROPER_SUBSET) { +print "$B40A4ItJ,=89g(B\n"; +} elsif ($c == $CHISE::PROPER_SUPERSET) { +print "$B40A4>e0L=89g(B\n"; +} elsif ($c == $CHISE::EQSET) { +print "$B40A40lCW(B\n"; +} + +

METHOD

new($BB0@-L>(B=>$BCM(B)
@@ -70,19 +80,36 @@ my $s3 = CHISE->define_char(strokes => 15, radical => 9);
$BJ8;z%*%V%8%'%/%H$NB0@-$I$&$7$rHf3S$7$F!"$=$N=E$J$j6q9g$rJV$9!#(B
+

CHISE_REG.pm

+ +

NAME

+ +

+ CHISE_REG +

+ +

SYNOPSIS

+ +
#!/usr/bin/perl -w
+use CHISE_REG;
+use utf8;
+
+if ('$B;3@n(B' =~ /(.)\same_total-strokes_1/) {
+  print STDERR "matched!\n";
+} else {
+  print STDERR "unmatched...\n";
+}
+

TO DO

  • IDS$B$,$i$_(B
  • -
  • $B=89g1i;;$,$i$_(B