/[suikacvs]/perl/charclass/lib/Char/Normalize/FullwidthHalfwidth.pm
Suika

Contents of /perl/charclass/lib/Char/Normalize/FullwidthHalfwidth.pm

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Mon Nov 24 04:25:10 2008 UTC (17 years, 8 months ago) by wakaba
Branch: MAIN
CVS Tags: HEAD
++ ChangeLog	24 Nov 2008 04:24:23 -0000
2008-11-24  Wakaba  <wakaba@suika.fam.cx>

	* mkcommitfeed.pl: New script (copied from Harusame).

	* cvscommit.sh: New script (copied from Harusame).

	* Makefile.PL: Version changed to 2.0.

++ charclass/lib/Char/ChangeLog	24 Nov 2008 01:52:26 -0000
2008-11-24  Wakaba  <wakaba@suika.fam.cx>

	* Normalize/: New directory.

++ charclass/lib/Char/Normalize/ChangeLog	24 Nov 2008 04:20:30 -0000
2008-11-24  Wakaba  <wakaba@suika.fam.cx>

	* FullwidthHalfwidth.pod: New documentation.

	* FullwidthHalfwidth.pm: New module (content from SuikaWiki4
	sw.cgi).

	* ChangeLog: New file.

1 wakaba 1.1 package Char::Normalize::FullwidthHalfwidth;
2     use strict;
3     use utf8;
4    
5     our $VERSION=do{my @r=(q$Revision: 1.31 $=~/\d+/g);sprintf "%d."."%02d" x $#r,@r};
6    
7     use Exporter;
8     push our @ISA, 'Exporter';
9    
10     our @EXPORT_OK = qw/normalize_width/;
11    
12     sub normalize_width ($) {
13     my $sref = shift;
14     $$sref =~ tr{\x{3000}\x{FF01}-\x{FF5E}\x{FF61}-\x{FF9F}\x{FFE0}-\x{FFE6}}
15     { !-~。「」、・ヲァィゥェォャュョッーアイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワン\x{3099}\x{309A}\xA2\xA3\xAC\xAF\xA6\xA5\x{20A9}};
16     return $sref;
17     } # normalize
18    
19     =head1 LICENSE
20    
21     Copyright 2008 Wakaba <[email protected]>
22    
23     This program is free software; you can redistribute it and/or
24     modify it under the same terms as Perl itself.
25    
26     =cut
27    
28     1;
29     ## $Date: 2008/10/21 07:51:59 $

[email protected]
ViewVC Help
Powered by ViewVC 1.1.24