Acme-Unicodify
view release on metacpan or search on metacpan
* Updated copyright information only
0.006 - April 23, 2016
* Squashed some remaining bugs by rewriting the file library
functions to use File::Slurper instead of trying to set UTF8
encodings on the file handles.
0.005 - April 23, 2016
* Changes made should have no impact on actual functionality, just the
ability to cleanly pass test suite
* [Test suite] "use utf8" wasn't properly using UTF8 to read heredocs
on Strawberry Perl (Windows). Removed "use utf8"
0.004 - April 10, 2016
* [Test suite] Replace File::Slurp with File::Slurper (more compatible
with UTF8)
0.003 - July 11, 2015
* Make sure packages contained version number
0.002 - June 28, 2015
* Correct minimum version of Perl required
}
},
"runtime" : {
"requires" : {
"Carp" : "0",
"File::Slurper" : "0.008",
"Unicode::Normalize" : "0",
"autodie" : "0",
"perl" : "v5.22.0",
"strict" : "0",
"utf8" : "0",
"warnings" : "0"
}
},
"test" : {
"recommends" : {
"CPAN::Meta" : "2.120900"
},
"requires" : {
"Encode" : "0",
"ExtUtils::MakeMaker" : "0",
Acme::Unicodify:
file: lib/Acme/Unicodify.pm
version: '1.202110'
requires:
Carp: '0'
File::Slurper: '0.008'
Unicode::Normalize: '0'
autodie: '0'
perl: v5.22.0
strict: '0'
utf8: '0'
warnings: '0'
resources:
bugtracker: https://github.com/jmaslak/Acme-Unicodify/issues
repository: git://github.com/jmaslak/Acme-Unicodify.git
version: '1.202110'
x_contributor_covenant:
version: 0.02
x_generated_by_perl: v5.30.2
x_serialization_backend: 'YAML::Tiny version 1.73'
x_spdx_expression: 'Artistic-1.0-Perl OR GPL-1.0-or-later'
Makefile.PL view on Meta::CPAN
"DISTNAME" => "Acme-Unicodify",
"LICENSE" => "perl",
"MIN_PERL_VERSION" => "5.022000",
"NAME" => "Acme::Unicodify",
"PREREQ_PM" => {
"Carp" => 0,
"File::Slurper" => "0.008",
"Unicode::Normalize" => 0,
"autodie" => 0,
"strict" => 0,
"utf8" => 0,
"warnings" => 0
},
"TEST_REQUIRES" => {
"Encode" => 0,
"ExtUtils::MakeMaker" => 0,
"File::Spec" => 0,
"File::Temp" => 0,
"Test::More" => 0,
"Test::UseAllModules" => "0.17"
},
Makefile.PL view on Meta::CPAN
"Encode" => 0,
"ExtUtils::MakeMaker" => 0,
"File::Slurper" => "0.008",
"File::Spec" => 0,
"File::Temp" => 0,
"Test::More" => 0,
"Test::UseAllModules" => "0.17",
"Unicode::Normalize" => 0,
"autodie" => 0,
"strict" => 0,
"utf8" => 0,
"warnings" => 0
);
unless ( eval { ExtUtils::MakeMaker->VERSION(6.63_03) } ) {
delete $WriteMakefileArgs{TEST_REQUIRES};
delete $WriteMakefileArgs{BUILD_REQUIRES};
$WriteMakefileArgs{PREREQ_PM} = \%FallbackPrereqs;
}
version 0.008
# SYNOPSIS
my $translate = Acme::Unicodify->new();
$foo = $translate->to_unicode('Hello, World');
$bar = $translate->back_to_ascii($unified_string);
file_to_unicode('/tmp/infile', '/tmp/outfile');
file_back_to_ascii('/tmp/infile', '/tmp/outfile');
# DESCRIPTION
This is intended to translate basic 7 bit ASCII into characters
that use several Unicode features, such as accent marks and
non-Latin characters. While this can be used just for fun, a
better use perhaps is to use it as part of a test suite, to
allow you to easily pass in Unicode and determine if your system
handles Unicode without corrupting the text.
Basic ASCII leters are translated into Unicode "look alikes", while
any character (Unicode or not) is passed through unchanged.
## back\_to\_ascii($str)
Takes an input string that has perhaps previously been produced
by `to_unicode` and translates the look-alike characters back
into 7 bit ASCII. Any other characters (Unicode or ASCII) are
passed through unchanged.
## file\_to\_unicode($infile, $outfile)
This method reads the file with the named passed as the first
argument, and produces a new output file with the name passed
as the second argument.
The routine will call `to_unicode` on the contents of the file.
Note this will overwrite existing files and it assumes the input
and output files are in UTF-8 encoding (or plain ASCII in the
case that no codepoints >127 are used).
This also assumes that there is sufficient memory to slurp the
entire contents of the file into memory.
## file\_back\_to\_ascii($infile, $outfile)
This method reads the file with the named passed as the first
argument, and produces a new output file with the name passed
as the second argument.
The routine will call `back_to_ascii` on the contents of the file.
Note this will overwrite existing files and it assumes the input
and output files are in UTF-8 encoding (or plain ASCII in the
case that no codepoints >127 are used).
version 1.202110
=head1 SYNOPSIS
my $translate = Acme::Unicodify->new();
$foo = $translate->to_unicode('Hello, World');
$bar = $translate->back_to_ascii($unified_string);
file_to_unicode('/tmp/infile', '/tmp/outfile');
file_back_to_ascii('/tmp/infile', '/tmp/outfile');
=head1 DESCRIPTION
This is intended to translate basic 7 bit ASCII into characters
that use several Unicode features, such as accent marks and
non-Latin characters. While this can be used just for fun, a
better use perhaps is to use it as part of a test suite, to
allow you to easily pass in Unicode and determine if your system
handles Unicode without corrupting the text.
Basic ASCII leters are translated into Unicode "look alikes", while
any character (Unicode or not) is passed through unchanged.
=head2 back_to_ascii($str)
Takes an input string that has perhaps previously been produced
by C<to_unicode> and translates the look-alike characters back
into 7 bit ASCII. Any other characters (Unicode or ASCII) are
passed through unchanged.
=head2 file_to_unicode($infile, $outfile)
This method reads the file with the named passed as the first
argument, and produces a new output file with the name passed
as the second argument.
The routine will call C<to_unicode> on the contents of the file.
Note this will overwrite existing files and it assumes the input
and output files are in UTF-8 encoding (or plain ASCII in the
case that no codepoints >127 are used).
This also assumes that there is sufficient memory to slurp the
entire contents of the file into memory.
=head2 file_back_to_ascii($infile, $outfile)
This method reads the file with the named passed as the first
argument, and produces a new output file with the name passed
as the second argument.
The routine will call C<back_to_ascii> on the contents of the file.
Note this will overwrite existing files and it assumes the input
and output files are in UTF-8 encoding (or plain ASCII in the
case that no codepoints >127 are used).
lib/Acme/Unicodify.pm view on Meta::CPAN
#
# Copyright (C) 2015 Joelle Maslak
# All Rights Reserved - See License
#
package Acme::Unicodify;
# ABSTRACT: Convert ASCII text into look-somewhat-alike unicode
$Acme::Unicodify::VERSION = '1.202110';
use utf8;
use v5.22;
use strict;
use warnings;
use File::Slurper 0.008 qw(read_text write_text);
use autodie;
lib/Acme/Unicodify.pm view on Meta::CPAN
version 1.202110
=head1 SYNOPSIS
my $translate = Acme::Unicodify->new();
$foo = $translate->to_unicode('Hello, World');
$bar = $translate->back_to_ascii($unified_string);
file_to_unicode('/tmp/infile', '/tmp/outfile');
file_back_to_ascii('/tmp/infile', '/tmp/outfile');
=head1 DESCRIPTION
This is intended to translate basic 7 bit ASCII into characters
that use several Unicode features, such as accent marks and
non-Latin characters. While this can be used just for fun, a
better use perhaps is to use it as part of a test suite, to
allow you to easily pass in Unicode and determine if your system
handles Unicode without corrupting the text.
lib/Acme/Unicodify.pm view on Meta::CPAN
Basic ASCII leters are translated into Unicode "look alikes", while
any character (Unicode or not) is passed through unchanged.
=head2 back_to_ascii($str)
Takes an input string that has perhaps previously been produced
by C<to_unicode> and translates the look-alike characters back
into 7 bit ASCII. Any other characters (Unicode or ASCII) are
passed through unchanged.
=head2 file_to_unicode($infile, $outfile)
This method reads the file with the named passed as the first
argument, and produces a new output file with the name passed
as the second argument.
The routine will call C<to_unicode> on the contents of the file.
Note this will overwrite existing files and it assumes the input
and output files are in UTF-8 encoding (or plain ASCII in the
case that no codepoints >127 are used).
This also assumes that there is sufficient memory to slurp the
entire contents of the file into memory.
=head2 file_back_to_ascii($infile, $outfile)
This method reads the file with the named passed as the first
argument, and produces a new output file with the name passed
as the second argument.
The routine will call C<back_to_ascii> on the contents of the file.
Note this will overwrite existing files and it assumes the input
and output files are in UTF-8 encoding (or plain ASCII in the
case that no codepoints >127 are used).
t/00-report-prereqs.dd view on Meta::CPAN
}
},
'runtime' => {
'requires' => {
'Carp' => '0',
'File::Slurper' => '0.008',
'Unicode::Normalize' => '0',
'autodie' => '0',
'perl' => 'v5.22.0',
'strict' => '0',
'utf8' => '0',
'warnings' => '0'
}
},
'test' => {
'recommends' => {
'CPAN::Meta' => '2.120900'
},
'requires' => {
'Encode' => '0',
'ExtUtils::MakeMaker' => '0',
( run in 0.293 second using v1.01-cache-2.11-cpan-4d50c553e7e )