NAME
Char::KOI8R - Source code filter for KOI8-R script (Imitation JPerl)
SYNOPSIS
In your script:
use Char::KOI8R; # CPAN formal style
or
use KOI8R; # 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.
This software treats KOI8-R 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/KOI8R.pm --- source code filter for KOI8-R script
Char/Ekoi8r.pm --- run-time routines for Char/KOI8R.pm
KOI8R.pm --- alias of Char/KOI8R.pm
Ekoi8r.pm --- alias of Char/Ekoi8r.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>.
KOI8-R (2011.07.24 12:41:00 JST). In Wikipedia: The Free Encyclopedia.
Retrieved from
http://en.wikipedia.org/wiki/KOI8-R
KOI8-R is an 8-bit character encoding, designed to cover Russian, which
uses the Cyrillic alphabet. It also happens to cover Bulgarian, but is
not used since CP1251 is accepted. A derivative encoding is KOI8-U, which
adds Ukrainian characters. The original KOI-8 encoding was designed by
Soviet authorities in 1974. KOI8 remains much more commonly used than
ISO 8859-5, which never really caught on. Another common Cyrillic character
encoding is Windows-1251. The usage of these older code pages is being
replaced with Unicode as a more common way to represent Cyrillic together
with other non-Latin languages.
In Microsoft Windows, KOI8-R is assigned the code page number 20866.
In IBM, KOI8-R is assigned code page 878.
In Russian, KOI8 stands for Kod Obmena Informatsiey, 8 bit which means
"Code for Information Exchange, 8 bit".
The KOI8 character sets have the property that the Russian Cyrillic letters
are in pseudo-Roman order rather than the natural Cyrillic alphabetical
order as in ISO 8859-5. Although this may seem unnatural, it has the useful
property that if the 8th bit is stripped, the text is partially readable
in ASCII and may convert to syntactically correct KOI7.
* 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|*|*|*|*|*|*|*|*|*|*|*|*|*|*|*|*|
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
3|*|*|*|*|*|*|*|*|*|*|*|*|*|*|*|*|
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
4|*|*|*|*|*|*|*|*|*|*|*|*|*|*|*|*|
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
5|*|*|*|*|*|*|*|*|*|*|*|*|*|*|*|*|
+-+-+-+-+-+-+-+-+-+-+-+-+-+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