debian man page for language::intercal::charset::hollerith

Query: language::intercal::charset::hollerith

OS: debian

Section: 3pm

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

INTERCAL::Charset::Hollerith(3pm)			User Contributed Perl Documentation			 INTERCAL::Charset::Hollerith(3pm)

NAME
Charset::Hollerith - allows to use Hollerith string constants in ASCII programs (and v.v.)
SYNOPSIS
use Charset::Hollerith qw(hollerith2ascii); my $a = hollerith2ascii "(Hollerith text)";
DESCRIPTION
Charset::Hollerith defines functions to convert between a subset of ASCII and a subset of nonstandard Hollerith (since there isn't such a thing as a standard Hollerith we defined our own variant which is guaranteed to be incompatible with all versions of Hollerith used by IBM hardware - however, for each character code we have used the code used by some (but not all) IBM card reader, if the code exists in Hol- lerith at all, or we have made one up in some logical way (such as overpunching) if no IBM hardware had that particular character. The two functions hollerith2ascii and ascii2hollerith are exportable but not exported by default. They do the obvious thing to their argu- ment.
HOLLERITH CHARACTER TABLE
A Hollerith string is a sequence of 12-bit characters; they are encoded as two ASCII characters, containing 6 bits each: the first charac- ter contains punches 12, 0, 2, 4, 6, 8 and the second character contains punches 11, 1, 3, 5, 7, 9; interleaving the two characters gives the original 12 bits. To make the characters printable on ASCII terminals, bit 7 is always set to 0, and bit 6 is set to the complement of bit 5. These two bits are ignored when reading Hollerith cards. Some Hollerith characters (produced by overpunching) can be converted to sequences of ASCII characters; ascii2hollerith will correctly recognise the sequences. The following punched cards document the encoding of characters (the last three symbols at the end nongraphic symbols in ASCII; the previ- ous two symbols correspond to multicharacter sequences): ' !"#$%&()*+,-./:;<=>?@[]^_`{|}~cY0123456789 12 * * * * * * * * * * 12 11 * * * * ** ** * * * 11 0 * * * * **** * * *** 0 1 * * * 1 2 * * * * * 2 3 ** * * * * 3 4 *** * * ** * * * * 4 5 * * * * * * 5 6 * * ** * * 6 7 * *** * * 7 8 * ******** * * ******* * * * * * 8 9 * * * 9 ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrs 12 ********* ********* 12 11 ********* ********* 11 0 ********* * * 0 1 * * ** ** * 1 2 * * * ** ** * 2 3 * * * ** ** 3 4 * * * ** ** 4 5 * * * ** ** 5 6 * * * ** ** 6 7 * * * ** ** 7 8 * * * ** ** 8 9 * * * * * 9 tuvwxyz [] ". NL CR HT 12 * * * 12 11 * 11 0 ******* * * 0 1 * * * 1 2 * * * * 2 3 ** * * * * 3 4 ** * * * * 4 5 ** * * * 5 6 ** * * * 6 7 ** * * * * * 7 8 ** * * * * 8 9 * * * * 9 PLEASE NOTE that versions of CLC-INTERCAL before 1.-94.-2 had a bug which caused a rabbit to be represented as 12-3-2-8 instead of 12-3-7-8. Cards punched with such older versions, and containing rabbits, will need to be copied with one of the rabbit holes moved from row 2 to row 7.
COPYRIGHT
This module is part of CLC-INTERCAL. Copyright (C) 2000, 2002, 2006, 2007 Claudio Calvelli, all rights reserved See the files README and COPYING in the distribution for information.
SEE ALSO
A qualified psychiatrist. perl v5.8.8 2008-03-29 INTERCAL::Charset::Hollerith(3pm)
Related Man Pages
theft-server(1p) - debian
ick(1) - redhat
marc::charset(3pm) - debian
marc::charset::table(3pm) - debian
mime::charset(3pm) - debian
Similar Topics in the Unix Linux Community
How to tell SED to emit output in 8-bit ASCII only?
IBM's Defense Against SCO's Copyright Infringement Claims - The Memorandum, Part 1, as text
IBM's Defense Against SCO's Copyright Infringement Claims Continues - Part 2, as text
Removing these non-ASCII characters from a file
Strange error on 285 IBM intellistation