/[pub]/suikawiki/script/misc/plugins/TextRotate.wps
Suika

Contents of /suikawiki/script/misc/plugins/TextRotate.wps

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Sat May 10 04:28:25 2003 UTC (22 years ago) by wakaba
Branch: MAIN
Branch point for: branch-suikawiki-1
New

1 wakaba 1.1 Name:
2     TextRotate
3     FullName:
4     Rotation (Juliuce encryption) of string
5     URI:
6     IW:SuikaWiki:ROT13
7     Initialize:
8     sub ten25 ($) {
9     my $s = shift;
10     my $tr_f = q{あいうえおかきくけこさしすせそたちつてとなにぬねの}
11     .q{はひふへほまみむめもやゝゆ〜よらりるれろわゐんゑを}
12     .q{アイウエオカキクケコサシスセソタチツテトナニヌネノ}
13     .q{ハヒフヘホマミムメモヤヽユーヨラリルレロワヰンヱヲ};
14     my $tr_t = q{はひふへほまみむめもやゝゆ〜よらりるれろわゐんゑを}
15     .q{あいうえおかきくけこさしすせそたちつてとなにぬねの}
16     .q{ハヒフヘホマミムメモヤヽユーヨラリルレロワヰンヱヲ}
17     .q{アイウエオカキクケコサシスセソタチツテトナニヌネノ};
18     Jcode->new (\$s, 'euc')->tr ($tr_f => $tr_t);
19     $s;
20     }
21     sub rot13 ($) {
22     my $s = shift;
23     $s =~ tr/A-Za-z/N-ZA-Mn-za-m/;
24     $s;
25     }
26    
27     {
28     Name:
29     wikiform_template/rot
30     FullName:
31     Rot 13 and ten 25
32     Format:
33     $r = $p->{text} || $o->{argv}->{'wikiform__'.$p->{source}};
34     $r = rot13 ($r) unless $p->{rot13} && !$p->{rot13};
35     $r = ten25 ($r) unless $p->{ten25} && !$p->{ten25};
36     }
37    

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24