FreeBSD Manual Pages
transtab -- 8-bit Character Encoding Converter Generator V1.13
1997-06-14
transtab
Function
transtab is a program that reads two Character Encoding
Descriptions
Files and creates a converter program source or just a
table or a
binary translation table file.
Type
(External) tool
Format
transtab src_code dst_code tab_name {-c|-t|-u|-b|-n} {-d}
All parameters in {} are optional.
Positional parameters:
src_code the name of the source Encoding De-
scription File
dst_code the name of the destination Encoding
Description File
tab_name this is the filename prefix for the
converter source
optional switches (can be positioned "anywhere")
-c create complete ANSI-C program source
<tab_name>.tab, <tab_name>.c and
<tab_name>.h
-t create table file <tab_name>.tab only
for #include in C programs
-u create table file <tab_name>.uni only
this is Unicode A Format used by uni-
code.org
-b create table binary file <tab_name>.xlt
used by transce8
-n create no file
-d dumps tables read (for debugging) to
stdout
Note
Default is "-c". Only one of "-c", "-t", "-b" and "-n" is
allowed.
Example
# create a converter from ISO 8859-1 to Codepage 850
transtab iso8859.1 cp850 iso1x850
# create only the conversion table from Codepage 852 to
ISO 8859-2
transtab cp852 iso8895.2 852xiso2 -t
Author/Copyright
Copyright (c) 1993-1997 by kosta@kostis.net (Kosta
Kostis)
This program may be used free of charge at your own risk.
Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=transtab&sektion=1&manpath=FreeBSD+Ports+15.0>
