/[pub]/suikawiki/script/lib/SuikaWiki/Plugin/TextRotate.wps
Suika

Contents of /suikawiki/script/lib/SuikaWiki/Plugin/TextRotate.wps

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Tue Dec 10 07:27:38 2002 UTC (22 years, 8 months ago) by wakaba
Branch: MAIN
Changes since 1.1: +1 -1 lines
*** empty log message ***

1 wakaba 1.1 Name:
2     TextRotate
3     FullName:
4 wakaba 1.2 Rotation (Juliuce encryption) of string
5 wakaba 1.1 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::tr (\$s, $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  
Google Analytics is used in this page; Cookies are used. 忍者AdMax is used in this page; Cookies are used. Privacy policy.