NAME

chrtbl - create character classification and upper <-> lower conversion tables

SYNOPSIS

chrtbl [-o ofile] ifile

DESCRIPTION

chrtbl creates character classification and upper <-> lower conversion tables for single byte files. The chrtbl command is modelled after the Solaris/SVR4 command. The input file is similar and contains a keyword per line followed by characters or ranges. Valid keywords are:

LC_CTYPEfilename
Set the filename for the character classification output.

LC_NUMERICfilename
Set the filename for the numeric formatting output.

isupperbegin-char[ - end-char]
Set the attribute of the specified characters range(s) to be upper case.

islowerbegin-char[ - end-char]
Set the attribute of the specified characters range(s) to be lower case.

isdigitbegin-char[ - end-char]
Set the attribute of the specified characters range(s) to be numeric.

isspacebegin-char[ - end-char]
Set the attribute of the specified characters range(s) to be space.

ispunctbegin-char[ - end-char]
Set the attribute of the specified characters range(s) to be punctuation.

iscntrlbegin-char[ - end-char]
Set the attribute of the specified characters range(s) to be control.

isxdigitbegin-char[ - end-char]
Set the attribute of the specified characters range(s) to be hexadecimal digits.

isblankbegin-char[ - end-char]
Set the attribute of the specified characters range(s) to be blank.

ul<upper-char lower-char> ...
Specify a case correspondence between upper and lower char.

cswidthn1,s1:n2,s2:n3,s3
Specify the character set byte width (n1,n2,n3) and the screen width(s1,s2,s3) for the 3 character sets.

decimal_pointchar
Specify the decimal point numeric formatting character.

thousands_sepchar
Specify the thousands separator numeric formatting character.

Available options

-o ofile
Print the conversion tables in a human readable (C source) form.

SEE ALSO

setlocale(3)

BUGS

Preliminary support of LC_NUMERIC is present, but not currently fully implemented. No support for wide character locales. Support for alternate localized character sets and numeric formatting is currently not implemented.