Acme-Tategaki
view release on metacpan or search on metacpan
# =========================================================================
# THIS FILE IS AUTOMATICALLY GENERATED BY MINILLA.
# DO NOT EDIT DIRECTLY.
# =========================================================================
use 5.008_001;
use strict;
use warnings;
use utf8;
use Module::Build;
use File::Basename;
use File::Spec;
use CPAN::Meta;
use CPAN::Meta::Prereqs;
my %args = (
license => 'perl',
dynamic_config => 0,
# NAME
Acme::Tategaki - This Module makes a text vertically.
# SYNOPSIS
$ perl -MAcme::Tategaki -MEncode -e 'print encode_utf8 tategaki(decode_utf8 "ãåã¯ããã§ã«ãæ»ãã§ããã"), "\n";'
æ»ãããã
ããã§ãå
ã§ãã«ãã¯
ããï¸ãï¸
ããããã
ï¸ãããã
$ perl -MAcme::Tategaki -MEncode -e 'print encode_utf8 tategaki_one_line(decode_utf8 "ãåã¯ããã§ã«ãæ»ãã§ããã"), "\n";'
ã
å
ã¯
ï¸
ã
ã§
ã«
ï¸
æ»
ã
bin/tategaki view on Meta::CPAN
#!perl
use strict;
use warnings;
use 5.008001;
use utf8;
use Acme::Tategaki;
use Encode::Locale;
binmode STDOUT => ':encoding(console_out)';
Encode::Locale::decode_argv;
unless (scalar @ARGV) {
print "Usage: \$ tategaki ãåã¯ããã§ã«ãæ»ãã§ããã\n";
exit 1;
bin/tategaki_one_line view on Meta::CPAN
#!perl
use strict;
use warnings;
use 5.008001;
use utf8;
use Acme::Tategaki;
use Encode::Locale;
binmode STDOUT => ':encoding(console_out)';
Encode::Locale::decode_argv;
unless (scalar @ARGV) {
print "Usage: \$ tategaki_one_line ãåã¯ããã§ã«ãæ»ãã§ããã\n";
exit 1;
lib/Acme/Tategaki.pm view on Meta::CPAN
package Acme::Tategaki;
use 5.008005;
use strict;
use warnings;
use utf8;
use Array::Transpose::Ragged qw/transpose_ragged/;
use Encode qw/encode_utf8 decode_utf8/;
use Data::Dump qw/dump/;
use parent 'Exporter';
our @EXPORT = qw( tategaki tategaki_one_line);
our $VERSION = "0.12";
my @punc = qw(ã ã ï¼ ï¼);
sub tategaki_one_line {
lib/Acme/Tategaki.pm view on Meta::CPAN
$_ =~ s/>/⨠/g;
$_ =~ s/ã/â§ /g;
$_ =~ s/ã/⨠/g;
}
# print dump @text;
return join "\n", @text;
}
if ( __FILE__ eq $0 ) {
print encode_utf8(tategaki decode_utf8 'ãåã¯ããã§ã«ãæ»ãã§ããã'), "\n";
print encode_utf8(tategaki_one_line decode_utf8 'ãåã¯ããã§ã«ãæ»ãã§ããã');
}
1;
__END__
=encoding utf-8
=head1 NAME
Acme::Tategaki - This Module makes a text vertically.
=head1 SYNOPSIS
$ perl -MAcme::Tategaki -MEncode -e 'print encode_utf8 tategaki(decode_utf8 "ãåã¯ããã§ã«ãæ»ãã§ããã"), "\n";'
æ»ãããã
ããã§ãå
ã§ãã«ãã¯
ããï¸ãï¸
ããããã
ï¸ãããã
$ perl -MAcme::Tategaki -MEncode -e 'print encode_utf8 tategaki_one_line(decode_utf8 "ãåã¯ããã§ã«ãæ»ãã§ããã"), "\n";'
ã
å
ã¯
ï¸
ã
ã§
ã«
ï¸
æ»
ã
t/01_tategaki.t view on Meta::CPAN
use strict;
use Test::Base::Less;
use Acme::Tategaki;
use Encode;
use utf8;
filters {
input => [ qw/chomp/ ],
expected => [ qw/chomp/ ],
};
for my $block (blocks) {
is( tategaki(map {decode_utf8 $_} $block->input), decode_utf8 $block->expected );
}
done_testing;
__DATA__
===
--- input
ã»ãããµããã»ãâ
--- expected
ã»ããµãã»
t/02_tategaki_one_line.t view on Meta::CPAN
use strict;
use Test::Base::Less;
use Acme::Tategaki;
use Encode;
use utf8;
filters {
input => [ qw/chomp/ ],
expected => [ qw/chomp/ ],
};
for my $block (blocks) {
is( tategaki_one_line(map {decode_utf8 $_} $block->input), decode_utf8 $block->expected );
}
done_testing;
__DATA__
===
--- input
ã»ãããµããã»ãâ
--- expected
ã»
( run in 1.477 second using v1.01-cache-2.11-cpan-49f99fa48dc )