NAME
Char::Windows1252 - Source code filter for Windows-1252 script (Imitation JPerl)
SYNOPSIS
In your script:
use Char::Windows1252; # CPAN formal style
or
use Windows1252; # casual style
At command prompt:
perl yourscript.pl wild* *card and '*quote*' on MSWin32
DESCRIPTION
This software is "JPerl on the Modern Perl" written by Perl.
To our regret, the Sjis software family cannot treat Windows-1252 up to now.
This software can supplement those weak points. We can write the script
in Windows-1252 again.
This software treats Windows-1252 directly. Therefore, there is not UTF8 flag.
INSTALLATION BY MAKE (for UNIX like system)
To install this software by make, type the following:
perl Makefile.PL
make
make test
make install
Rename and install strict.pm_ of this distribution to strict.pm if your system
doesn't have strict.pm.
INSTALLATION WITHOUT MAKE (for DOS like system)
To install this software without make, type the following:
perl pMakefile.PL --- pMakefile.PL makes "pmake.bat" only, and ...
pmake.bat
pmake.bat test
pmake.bat install --- install to current using Perl
Rename and install strict.pm_ of this distribution to strict.pm if your system
doesn't have strict.pm.
pmake.bat dist --- make distribution package
pmake.bat ptar.bat --- make perl script "ptar.bat"
PROGRAM COMPOSITION
Char/Windows1252.pm --- source code filter for Windows-1252 script
Char/Ewindows1252.pm --- run-time routines for Char/Windows1252.pm
Windows1252.pm --- alias of Char/Windows1252.pm
Ewindows1252.pm --- alias of Char/Ewindows1252.pm
perl5.bat --- find and run perl5 without %PATH% settings
perl55.bat --- find and run perl5.5 without %PATH% settings
perl56.bat --- find and run perl5.6 without %PATH% settings
perl58.bat --- find and run perl5.8 without %PATH% settings
perl510.bat --- find and run perl5.10 without %PATH% settings
perl512.bat --- find and run perl5.12 without %PATH% settings
perl514.bat --- find and run perl5.14 without %PATH% settings
perl516.bat --- find and run perl5.16 without %PATH% settings
perl64.bat --- find and run perl64 without %PATH% settings
perl64512.bat --- find and run perl5.12 (x64) without %PATH% settings
perl64514.bat --- find and run perl5.14 (x64) without %PATH% settings
perl64516.bat --- find and run perl5.16 (x64) without %PATH% settings
aperl58.bat --- find and run ActivePerl 5.8 without %PATH% settings
aperl510.bat --- find and run ActivePerl 5.10 without %PATH% settings
aperl512.bat --- find and run ActivePerl 5.12 without %PATH% settings
aperl514.bat --- find and run ActivePerl 5.14 without %PATH% settings
aperl516.bat --- find and run ActivePerl 5.16 without %PATH% settings
aperl64512.bat --- find and run ActivePerl 5.12 (x64) without %PATH% settings
aperl64514.bat --- find and run ActivePerl 5.14 (x64) without %PATH% settings
aperl64516.bat --- find and run ActivePerl 5.16 (x64) without %PATH% settings
sperl58.bat --- find and run Strawberry Perl 5.8 without %PATH% settings
sperl510.bat --- find and run Strawberry Perl 5.10 without %PATH% settings
sperl512.bat --- find and run Strawberry Perl 5.12 without %PATH% settings
sperl514.bat --- find and run Strawberry Perl 5.14 without %PATH% settings
sperl516.bat --- find and run Strawberry Perl 5.16 without %PATH% settings
sperl64512.bat --- find and run Strawberry Perl 5.12 (x64) without %PATH% settings
sperl64514.bat --- find and run Strawberry Perl 5.14 (x64) without %PATH% settings
sperl64516.bat --- find and run Strawberry Perl 5.16 (x64) without %PATH% settings
strict.pm_ --- dummy strict.pm
warnings.pm_ --- poor warnings.pm
warnings/register.pm_ --- poor warnings/register.pm
feature.pm_ --- dummy feature.pm
DEPENDENCIES
This software requires perl5.00503 or later.
LICENSE AND COPYRIGHT
This software is free software; you can redistribute it and/or
modify it under the same terms as Perl itself. See perlartistic.
This software is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
MAINTAINER
This project was originated by INABA Hitoshi <ina@cpan.org>.
ABOUT Windows-1252
Windows-1252 (2011.05.08 19:45:00 JST). In Wikipedia: The Free Encyclopedia.
Retrieved from
http://en.wikipedia.org/wiki/Windows-1252
Windows-1252 or CP-1252 is a character encoding of the Latin alphabet, used by
default in the legacy components of Microsoft Windows in English and some other
Western languages. It is one version within the group of Windows code pages.
In LaTeX packages, it is referred to as ansinew.
The encoding is a superset of ISO 8859-1, but differs from the IANA's ISO-8859-1
by using displayable characters rather than control characters in the 0x80 to
0x9F range. It is known to Windows by the code page number 1252, and by the
IANA-approved name "windows-1252". This code page also contains all the printable
characters that are in ISO 8859-15 (though some are mapped to different code
points).
It is very common to mislabel Windows-1252 text data with the charset label
ISO-8859-1. Many web browsers and e-mail clients treat the MIME charset
ISO-8859-1 as Windows-1252 characters in order to accommodate such mislabeling
but it is not standard behaviour and care should be taken to avoid generating
these characters in ISO-8859-1 labeled content. However, the draft HTML 5
specification requires that documents advertised as ISO-8859-1 actually be
parsed with the Windows-1252 encoding.
Historically, the term "ANSI code page" (ACP) is used in Windows to refer to
various code pages considered as native. The intention was that most of these
would be ANSI standards such as ISO-8859-1. Even though Windows-1252 was the
first and by far most popular code page named so in Microsoft Windows parlance,
the code page has never been an ANSI standard. Microsoft now states that "The
term ANSI as used to signify Windows code pages is a historical reference, but
is nowadays a misnomer that continues to persist in the Windows community."
* ALGORITHM #1
When the character is taken out of the octet string, it is necessary to
distinguish a single octet character and the multiple octet character.
The distinction is done only by first octet.
Single octet code is:
0x00-0xFF
See also code table:
Single octet code
0 1 2 3 4 5 6 7 8 9 A B C D E F
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
0|*|*|*|*|*|*|*|*|*|*|*|*|*|*|*|*| 0x00-0xFF
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
1|*|*|*|*|*|*|*|*|*|*|*|*|*|*|*|*|
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
2|*|*|*|*|*|*|*|*|*|*|*|*|*|*|*|*|
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
3|*|*|*|*|*|*|*|*|*|*|*|*|*|*|*|*|
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
4|*|*|*|*|*|*|*|*|*|*|*|*|*|*|*|*|
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
5|*|*|*|*|*|*|*|*|*|*|*|*|*|*|*|*|
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
6|*|*|*|*|*|*|*|*|*|*|*|*|*|*|*|*|
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
7|*|*|*|*|*|*|*|*|*|*|*|*|*|*|*|*|
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
8|*|*|*|*|*|*|*|*|*|*|*|*|*|*|*|*|
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
9|*|*|*|*|*|*|*|*|*|*|*|*|*|*|*|*|
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
A|*|*|*|*|*|*|*|*|*|*|*|*|*|*|*|*|
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
B|*|*|*|*|*|*|*|*|*|*|*|*|*|*|*|*|
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
C|*|*|*|*|*|*|*|*|*|*|*|*|*|*|*|*|
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
D|*|*|*|*|*|*|*|*|*|*|*|*|*|*|*|*|
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
E|*|*|*|*|*|*|*|*|*|*|*|*|*|*|*|*|
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
F|*|*|*|*|*|*|*|*|*|*|*|*|*|*|*|*|
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
* ALGORITHM #2
Against algorithm.1, when the range of the character by tr/// is specified, only the
following character codes are effective.
Single octet code is:
0x00-0xFF
See also code table:
Single octet code
0 1 2 3 4 5 6 7 8 9 A B C D E F
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
0|*|*|*|*|*|*|*|*|*|*|*|*|*|*|*|*| 0x00-0xFF
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
1|*|*|*|*|*|*|*|*|*|*|*|*|*|*|*|*|
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
2|*|*|*|*|*|*|*|*|*|*|*|*|*|*|*|*|
+-+-+-+-+-+-+-+-+-+-+-+-+-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