JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
man pages section 1: User Commands     Oracle Solaris 10 8/11 Information Library
search filter icon
search icon

Document Information

Preface

Introduction

User Commands

acctcom(1)

adb(1)

addbib(1)

admin(1)

aedplot(1B)

alias(1)

allocate(1)

amt(1)

appcert(1)

apptrace(1)

apropos(1)

ar(1)

arch(1)

as(1)

asa(1)

at(1)

atoplot(1B)

atq(1)

atrm(1)

audioconvert(1)

audioplay(1)

audiorecord(1)

auths(1)

auto_ef(1)

awk(1)

banner(1)

basename(1)

basename(1B)

batch(1)

bc(1)

bdiff(1)

bfs(1)

bg(1)

bgplot(1B)

biff(1B)

break(1)

cal(1)

calendar(1)

cancel(1)

case(1)

cat(1)

cc(1B)

cd(1)

cdc(1)

cdrw(1)

chdir(1)

checkeq(1)

checknr(1)

chgrp(1)

chkey(1)

chmod(1)

chown(1)

chown(1B)

ckdate(1)

ckgid(1)

ckint(1)

ckitem(1)

ckkeywd(1)

ckpath(1)

ckrange(1)

ckstr(1)

cksum(1)

cktime(1)

ckuid(1)

ckyorn(1)

clear(1)

cmp(1)

cocheck(1F)

cocreate(1F)

codestroy(1F)

col(1)

comb(1)

comm(1)

command(1)

compress(1)

continue(1)

coproc(1F)

coreceive(1F)

cosend(1F)

cp(1)

cpio(1)

cpp(1)

cputrack(1)

crle(1)

crontab(1)

crtplot(1B)

crypt(1)

csh(1)

csplit(1)

ct(1C)

ctags(1)

ctrun(1)

ctstat(1)

ctwatch(1)

cu(1C)

cut(1)

date(1)

dc(1)

deallocate(1)

decrypt(1)

delta(1)

deroff(1)

df(1B)

dhcpinfo(1)

diff(1)

diff3(1)

diffmk(1)

digest(1)

digestp(1)

dircmp(1)

dirname(1)

dirs(1)

dis(1)

disable(1)

dispgid(1)

dispuid(1)

dos2unix(1)

download(1)

dpost(1)

dtappsession(1)

du(1)

du(1B)

dumbplot(1B)

dump(1)

dumpcs(1)

dumpkeys(1)

echo(1)

echo(1B)

echo(1F)

ed(1)

edit(1)

egrep(1)

eject(1)

elfdump(1)

elfedit(1)

elfsign(1)

elfwrap(1)

enable(1)

encrypt(1)

enhance(1)

env(1)

eqn(1)

errange(1)

errdate(1)

errgid(1)

errint(1)

erritem(1)

error(1)

errpath(1)

errstr(1)

errtime(1)

erruid(1)

erryorn(1)

eval(1)

ex(1)

exec(1)

exit(1)

expand(1)

export(1)

exportfs(1B)

expr(1)

expr(1B)

exstr(1)

face(1)

factor(1)

false(1)

fastboot(1B)

fasthalt(1B)

fc(1)

fdformat(1)

fg(1)

fgrep(1)

file(1)

file(1B)

filep(1)

filesync(1)

filofaxp(1)

find(1)

finger(1)

fmlcut(1F)

fmlexpr(1F)

fmlgrep(1F)

fmli(1)

fmt(1)

fmtmsg(1)

fold(1)

for(1)

foreach(1)

franklinp(1)

from(1B)

ftp(1)

ftpcount(1)

ftpwho(1)

function(1)

gcore(1)

gencat(1)

geniconvtbl(1)

genlayouttbl(1)

genmsg(1)

get(1)

getconf(1)

getfacl(1)

getfrm(1F)

getitems(1F)

getlabel(1)

getopt(1)

getoptcvt(1)

getopts(1)

gettext(1)

gettxt(1)

getzonepath(1)

gigiplot(1B)

glob(1)

goto(1)

gprof(1)

graph(1)

grep(1)

groups(1)

groups(1B)

grpck(1B)

hash(1)

hashcheck(1)

hashmake(1)

hashstat(1)

head(1)

help(1)

helpdate(1)

helpgid(1)

helpint(1)

helpitem(1)

helppath(1)

helprange(1)

helpstr(1)

helptime(1)

helpuid(1)

helpyorn(1)

history(1)

hostid(1)

hostname(1)

hp7221plot(1B)

hpplot(1B)

i286(1)

i386(1)

i486(1)

i860(1)

iAPX286(1)

iconv(1)

idnconv(1)

if(1)

implot(1B)

indicator(1F)

indxbib(1)

install(1B)

ipcrm(1)

ipcs(1)

isainfo(1)

isalist(1)

jobs(1)

join(1)

jsh(1)

kbd(1)

kdestroy(1)

keylogin(1)

keylogout(1)

kill(1)

kinit(1)

klist(1)

kmdb(1)

kmfcfg(1)

kpasswd(1)

krb5-config(1)

ksh(1)

ktutil(1)

lari(1)

last(1)

lastcomm(1)

ld(1)

ld(1B)

ldap(1)

ldapadd(1)

ldapdelete(1)

ldaplist(1)

ldapmodify(1)

ldapmodrdn(1)

ldapsearch(1)

ldd(1)

ld.so.1(1)

let(1)

lex(1)

limit(1)

line(1)

lint(1B)

list_devices(1)

listusers(1)

llc2_autoconfig(1)

llc2_config(1)

llc2_stats(1)

ln(1)

ln(1B)

loadkeys(1)

locale(1)

localedef(1)

logger(1)

logger(1B)

login(1)

logname(1)

logout(1)

longline(1F)

look(1)

lookbib(1)

lorder(1)

lp(1)

lpc(1B)

lpq(1B)

lpr(1B)

lprm(1B)

lpstat(1)

lptest(1B)

ls(1)

ls(1B)

m4(1)

mac(1)

mach(1)

machid(1)

madv.so.1(1)

mail(1)

Mail(1B)

mail(1B)

mailcompat(1)

mailp(1)

mailq(1)

mailstats(1)

mailx(1)

make(1S)

man(1)

mconnect(1)

mcs(1)

mdb(1)

mesg(1)

message(1F)

mixerctl(1)

mkdir(1)

mkmsgs(1)

mkstr(1B)

mktemp(1)

moe(1)

more(1)

mp(1)

mpss.so.1(1)

msgfmt(1)

mt(1)

mv(1)

nawk(1)

nca(1)

ncab2clf(1)

ncakmod(1)

neqn(1)

newform(1)

newgrp(1)

news(1)

newsp(1)

newtask(1)

nice(1)

NIS+(1)

nis+(1)

nis(1)

niscat(1)

nischgrp(1)

nischmod(1)

nischown(1)

nischttl(1)

nisdefaults(1)

niserror(1)

nisgrep(1)

nisgrpadm(1)

nisln(1)

nisls(1)

nismatch(1)

nismkdir(1)

nisopaccess(1)

nispasswd(1)

nisrm(1)

nisrmdir(1)

nistbladm(1)

nistest(1)

nl(1)

nm(1)

nohup(1)

notify(1)

nroff(1)

od(1)

on(1)

onintr(1)

optisa(1)

pack(1)

page(1)

pagesize(1)

pargs(1)

passwd(1)

paste(1)

patch(1)

pathchk(1)

pathconv(1F)

pax(1)

pcat(1)

pcred(1)

pdp11(1)

perl(1)

pfcsh(1)

pfexec(1)

pfiles(1)

pfksh(1)

pflags(1)

pfsh(1)

pg(1)

pgrep(1)

pkginfo(1)

pkgmk(1)

pkgparam(1)

pkgproto(1)

pkgtrans(1)

pkill(1)

pktool(1)

plabel(1)

pldd(1)

plimit(1)

plot(1B)

plottoa(1B)

pmap(1)

popd(1)

postdaisy(1)

postdmd(1)

postio(1)

postmd(1)

postplot(1)

postprint(1)

postreverse(1)

posttek(1)

ppgsz(1)

ppriv(1)

pr(1)

praliases(1)

prctl(1)

preap(1)

prex(1)

print(1)

printenv(1B)

printf(1)

priocntl(1)

proc(1)

prof(1)

profiles(1)

projects(1)

prs(1)

prt(1)

prun(1)

ps(1)

ps(1B)

psig(1)

pstack(1)

pstop(1)

ptime(1)

ptree(1)

pushd(1)

pvs(1)

pwait(1)

pwd(1)

pwdx(1)

ranlib(1)

rcapstat(1)

rcp(1)

rdist(1)

read(1)

readfile(1F)

readonly(1)

red(1)

refer(1)

regcmp(1)

regex(1F)

rehash(1)

reinit(1F)

remote_shell(1)

remsh(1)

renice(1)

repeat(1)

reset(1B)

reset(1F)

return(1)

rksh(1)

rlogin(1)

rm(1)

rmail(1)

rmdel(1)

rmdir(1)

rmformat(1)

roffbib(1)

roles(1)

rpcgen(1)

rpm2cpio(1)

rsh(1)

run(1F)

runat(1)

rup(1)

rup(1C)

ruptime(1)

rusage(1B)

rusers(1)

rwho(1)

sact(1)

sag(1)

sar(1)

sccs(1)

sccs-admin(1)

sccs-cdc(1)

sccs-comb(1)

sccs-delta(1)

sccsdiff(1)

sccs-get(1)

sccs-help(1)

sccs-prs(1)

sccs-prt(1)

sccs-rmdel(1)

sccs-sact(1)

sccs-sccsdiff(1)

sccs-unget(1)

sccs-val(1)

scp(1)

script(1)

sdiff(1)

sed(1)

sed(1B)

select(1)

set(1)

set(1F)

setcolor(1F)

setenv(1)

setfacl(1)

setlabel(1)

setpgrp(1)

settime(1)

sftp(1)

sh(1)

shell(1F)

shell_builtins(1)

shift(1)

shutdown(1B)

size(1)

sleep(1)

snca(1)

snmpstatus(1)

soelim(1)

sort(1)

sortbib(1)

sotruss(1)

source(1)

sparc(1)

spell(1)

spellin(1)

spline(1)

split(1)

srchtxt(1)

ssh(1)

ssh-add(1)

ssh-agent(1)

ssh-http-proxy-connect(1)

ssh-keygen(1)

ssh-keyscan(1)

ssh-socks5-proxy-connect(1)

stop(1)

strchg(1)

strconf(1)

strings(1)

strip(1)

stty(1)

stty(1B)

sum(1)

sum(1B)

sun(1)

suspend(1)

svcprop(1)

svcs(1)

switch(1)

symorder(1)

sysV-make(1)

t300(1)

t300(1B)

t300s(1)

t300s(1B)

t4013(1B)

t4014(1)

t450(1)

t450(1B)

tabs(1)

tail(1)

talk(1)

tar(1)

tbl(1)

tcopy(1)

tee(1)

tek(1)

tek(1B)

telnet(1)

test(1)

test(1B)

test(1F)

tftp(1)

time(1)

timemanp(1)

times(1)

timesysp(1)

timex(1)

tip(1)

tnfdump(1)

tnfxtract(1)

touch(1)

touch(1B)

tplot(1)

tput(1)

tr(1)

tr(1B)

trap(1)

troff(1)

true(1)

truss(1)

tset(1B)

tsort(1)

tty(1)

type(1)

typeset(1)

u370(1)

u3b(1)

u3b15(1)

u3b2(1)

u3b5(1)

ucblinks(1B)

ul(1)

ulimit(1)

umask(1)

unalias(1)

uname(1)

uncompress(1)

unexpand(1)

unget(1)

unhash(1)

unifdef(1)

uniq(1)

units(1)

unix2dos(1)

unlimit(1)

unpack(1)

unset(1)

unset(1F)

unsetenv(1)

until(1)

uptime(1)

users(1B)

uucp(1C)

uudecode(1C)

uuencode(1C)

uuglist(1C)

uulog(1C)

uuname(1C)

uupick(1C)

uustat(1C)

uuto(1C)

uux(1C)

vacation(1)

val(1)

valdate(1)

valgid(1)

valint(1)

valpath(1)

valrange(1)

valstr(1)

valtime(1)

valuid(1)

valyorn(1)

vax(1)

vc(1)

vedit(1)

ver(1)

vgrind(1)

vi(1)

view(1)

vipw(1B)

volcancel(1)

volcheck(1)

volmissing(1)

volrmmount(1)

vplot(1B)

vsig(1F)

w(1)

wait(1)

wc(1)

what(1)

whatis(1)

whence(1)

whereis(1B)

which(1)

while(1)

who(1)

whoami(1B)

whocalls(1)

whois(1)

write(1)

xargs(1)

xgettext(1)

xstr(1)

yacc(1)

yes(1)

ypcat(1)

ypmatch(1)

yppasswd(1)

ypwhich(1)

zcat(1)

zlogin(1)

zonename(1)

genlayouttbl

- generate layout table for complex text layout

Synopsis

genlayouttbl [-o outfile] [infile]

Description

The genlayouttbl utility accepts a locale's layout definition in a flat text file and writes a binary layout table file that can be used in the complex text layout of the locale.

Options

The following option is supported:

-o outfile

Writes output binary layout table to the outfile.

Operands

The following operand is supported:

infile

A path name of an input file. If no input file is specified, genlayouttbl reads from the standard input stream.

OUTPUT AND SYMBOLIC LINKS

If no outfile is specified, genlayouttbl writes output to the standard output stream.

The generated output file must be moved to the following directory prior to the use at the system and the file name should be layout.dat:

/usr/lib/locale/locale/LO_LTYPE/layout.dat

The locale should also have a symbolic link, /usr/lib/locale/locale/LO_LTYPE/locale.layout.so.1, to the 32-bit Universal Multiscript Layout Engine (UMLE), /usr/lib/locale/common/LO_LTYPE/umle.layout.so.1.

For proper 64-bit platform operations, the locale should also have a symbolic link, as for instance, in 64-bit SPARC platform, /usr/lib/locale/locale/LO_LTYPE/sparcv9/locale.layout.so.1, to the 64-bit UMLE, /usr/lib/locale/common/LO_LTYPE/sparcv9/umle.layout.so.1.

The locale is the locale that you want to provide and to use the layout functionality you defined.

INPUT FILE FORMAT

A layout definition file to genlayouttbl contains three different sections of definitions:

For appropriate complex text layout support, all three sections need to be defined in the layout definition file.

The Lexical Conventions

The following lexical conventions are used in the layout definition:

NAME

A string of characters that consists of printable ASCII characters. It includes DECIMAL and HEXADECIMAL also. Examples: test, a1_src, b32, 123.

HEXADECIMAL_BYTE

Two-digit hexadecimal number. The number starts with a hexadecimal digit followed by another hexadecimal digit. Examples: e0, E1, a7, fe.

HEXADECIMAL

A hexadecimal number. The hexadecimal representation consists of an escape character, '0' followed by the constant 'x' or 'X' and one or more hexadecimal digits. Examples: 0x0, 0x1, 0x1a, 0xA, 0x1b3.

DECIMAL

A decimal number, represented by one or more decimal digits. Examples: 0, 123, 2165.

Each comment must start with '#'. The comment ends at the end of the line.

The following keywords are reserved:

    active_directional, active_shape_editing, AL,
    ALGORITHM_BASIC, ALGORITHM_IMPLICIT, AN, BN, check_mode,
    context, CONTEXT_LTR, CONTEXT_RTL, CS, EN, END, ES, ET, FALSE,
    FILE_CODE_REPRESENTATION, implicit_algorithm, keep, L,
    LAYOUT_ATTRIBUTES, LAYOUT_BIDI_CHAR_TYPE_DATA,
    LAYOUT_SHAPE_DATA, LRE, LRO, MODE_EDIT, MODE_STREAM, NSM,
    national_numerals, numerals, NUMERALS_CONTEXTUAL,
    NUMERALS_NATIONAL, NUMERALS_NOMINAL, ON, orientation,
    ORIENTATION_CONTEXTUAL, ORIENTATION_LTR, ORIENTATION_RTL,
    ORIENTATION_TTBLR, ORIENTATION_TTBRL, PDF,
    PROCESS_CODE_REPRESENTATION, PS, R, repeat*, repeat+, RLE, RLO, S,
    shape_charset, shape_charset_size, shape_context_size, swapping,
    SWAPPING_NO, swapping_pairs, SWAPPING_YES, TEXT_EXPLICIT,
    TEXT_IMPLICIT, TEXT_NOMINAL, TEXT_SHAPED, text_shaping, TEXT_VISUAL,
    TRUE, type_of_text, WS

Additionally, the following symbols are also reserved as tokens:

    (    )    [    ]    ,    :    ;    ...    =    ->    +

Layout Attribute Definition

The layout attribute definition section defines the layout attributes and their associated values.

The definition starts with a keyword, LAYOUT_ATTRIBUTES, and ends with END LAYOUT_ATTRIBUTES:

LAYOUT_ATTRIBUTES

    # Layout attributes here.
    :
    :

END LAYOUT_ATTRIBUTES

There are a total of eight layout attribute value trios that can be defined in this section:

Additionally, there are five layout attribute value pairs that also can be defined in this section:

Each attribute value trio will have an attribute name, an attribute value for the input buffer, and an attribute value for the output buffer, as in the following example:

    # Orientation layout attribute value trio. The input and output
    # attribute values are separated by a colon and the left one
    # is the input attribute value:
    orientation         ORIENTATION_LTR:ORIENTATION_LTR

Each attribute value pair will have an attribute name and an associated attribute value, as in the following example:

    # Shape charset attribute value pair:
    shape_charset       ISO8859-6

The orientation value trio defines the global directional text orientation. The possible values are:

ORIENTATION_LTR

Left-to-right horizontal rows that progress from top to bottom.

ORIENTATION_RTL

Right-to-left horizontal rows that progress from top to bottom.

ORIENTATION_TTBRL

Top-to-bottom vertical columns that progress from right to left.

ORIENTATION_TTBLR

Top-to-bottom vertical columns that progress from left to right.

ORIENTATION_CONTEXTUAL

The global orientation is set according to the direction of the first significant (strong) character. If there are no strong characters in the text and the attribute is set to this value, the global orientation of the text is set according to the value of the attribute context. This value is meaningful only for bidirectional text.

If no value or value trio is defined, the default is ORIENTATION_LTR.

The context value trio is meaningful only if the attribute orientation is set to ORIENTATION_CONTEXTUAL. It defines what orientation is assumed when no strong character appears in the text. The possible values are:

CONTEXT_LTR

In the absence of characters with strong directionality in the text, orientation is assumed to be left-to-right rows progressing from top to bottom.

CONTEXT_RTL

In the absence of characters with strong directionality in the text, orientation is assumed to be right-to-left rows progressing from top to bottom.

If no value or value trio is specified, the default is CONTEXT_LTR.

The type_of_text value trio specifies the ordering of the directional text. The possible values are:

TEXT_VISUAL

Code elements are provided in visually ordered segments, which can be rendered without any segment inversion.

TEXT_IMPLICIT

Code elements are provided in logically ordered segments. Logically ordered means that the order in which the characters are provided is the same as the order in which the characters are pronounced when reading the presented text or the order in which characters would be entered from a keyboard.

TEXT_EXPLICIT

Code elements are provided in logically ordered segments with a set of embedded controls. Some examples of such embedded controls from ISO/IEC 10646-1 are:

LEFT-TO-RIGHT EMBEDDING (LRE)
RIGHT-TO-LEFT EMBEDDING (RLE)
RIGHT-TO-LEFT OVERRIDE (RLO)
LEFT-TO-RIGHT OVERRIDE (LRO)
POP DIRECTIONAL FORMAT (PDF)

If no value or value trio is specified, the default is TEXT_IMPLICIT.

The implicit_algorithm value trio specifies the type of bidirectional implicit algorithm used in reordering and shaping of directional or context-dependent text. The possible values are:

ALGORITHM_IMPLICIT

Directional code elements will be reordered using an implementation-defined implicit algorithm.

ALGORITHM_BASIC

Directional code elements will be reordered using a basic implicit algorithm defined in the Unicode standard.

Even though we allow two different values for the implicit_algorithm, since the Solaris implementation-defined implicit algorithm is based on the Unicode standard, there is no difference in behavior whether you choose ALGORITHM_IMPLICIT or ALGORITHM_BASIC for this attribute.

The default value is ALGORITHM_IMPLICIT.

The swapping value trio specifies whether symmetric swapping is applied to the text. The possible values are:

SWAPPING_YES

The text conforms to symmetric swapping.

SWAPPING_NO

The text does not conform to symmetric swapping.

If no value or value trio is specified, the default is SWAPPING_NO.

The numerals value trio specifies the shaping of numerals. The possible values are:

NUMERALS_NOMINAL

Nominal shaping of numerals using the Arabic numbers of the portable character set (in Solaris, ASCII digits).

NUMERALS_NATIONAL

National shaping of numerals based on the script of the locale. For instance, Thai digits in the Thai locale.

NUMERALS_CONTEXTUAL

Contextual shaping of numerals depending on the context script of surrounding text, such as Hindi numbers in Arabic text and Arabic numbers otherwise.

If no value or value trio is specified, the default is NUMERALS_NOMINAL.

The text_shaping value trio specifies the shaping; that is, choosing (or composing) the correct shape of the input or output text. The possible values are:

TEXT_SHAPED

The text has presentation form shapes.

TEXT_NOMINAL

The text is in basic form.

If no value or value trio is specified, the default is TEXT_NOMINAL for input and TEXT_SHAPED for output.

The shape_context_size value trio specifies the size of the context (surrounding code elements) that must be accounted for when performing active shape editing. If not defined, the default value 0 is used for the number of surrounding code elements at both front and rear:

    # The shape_context_size for both front and rear surrounding code
    # elements are all zero:
    shape_context_size  0:0

The front and rear attribute values are separated by a colon, with the front value to the left of the colon.

The active_directional value pair specifies whether the current locale requires (bi-)directional processing. The possible values are:

TRUE

Requires (bi-)directional processing.

FALSE

Does not require (bi-)directional processing.

The active_shape_editing value pair specifies whether the current locale requires context-dependent shaping for presentation. The possible values are:

TRUE

Requires context-dependent shaping.

FALSE

Does not require context-dependent shaping.

The shape_charset value pair specifies the current locale's shape charset on which the complex text layout is based. There are two different kinds of shape charset values that can be specified:

For a single shape charset, it can be defined by using NAME as defined in the Lexical Convention section above. For multiple shape charsets, however, it should follow the syntax given below in extended BNF form:

            multiple_shape_charset
                                : charset_list
                                ;

            charset_list        : charset
                                | charset_list ';' charset
                                ;

            charset             : charset_name '=' charset_id
                                ;

            charset_name        : NAME
                                ;

            charset_id          : HEXADECIMAL_BYTE
                                ;

For instance, the following is a valid multiple shape charsets value for the shape_charset attribute:

    # Multi-shape charsets:
    shape_charset       tis620.2533=e4;iso8859-8=e5;iso8859-6=e6

The shape_charset must be specified.

The shape_charset_size value pair specifies the encoding size of the current shape_charset. The valid value is a positive integer from 1 to 4. If the multiple shape charsets value is defined for the shape_charset attribute, the shape_charset_size must be 4.

The shape_charset_size must be specified.

The check_mode value pair specifies the level of checking of the elements in the input buffer for shaping and reordering purposes. The possible values are:

MODE_STREAM

The string in the input buffer is expected to have valid combinations of characters or character elements.

MODE_EDIT

The shaping of input text may vary depending on locale-specific validation or assumption.

When no value or value pair is not specified, the default value is MODE_STREAM.

Bidirectional Data And Character Type Data Definition

This section defines the bidirectional and other character types that will be used in the Unicode Bidirectional Algorithm and the shaping algorithm part of the UMLE.

The definition starts with a keyword LAYOUT_BIDI_CHAR_TYPE_DATA and ends with END LAYOUT_BIDI_CHAR_TYPE_DATA:

    LAYOUT_BIDI_CHAR_TYPE_DATA

            # Layout bidi definitions here.
            :
            :

    END LAYOUT_BIDI_CHAR_TYPE_DATA

The bidirectional data and character type data definition should be defined for the two different kinds of text shape forms, TEXT_SHAPED and TEXT_NOMINAL, depending on the text_shaping attribute value and also for the two different kinds of text representations, file code representation and process code representation (that is, wide character representation):

    LAYOUT_BIDI_CHAR_TYPE_DATA

        FILE_CODE_REPRESENTATION
            TEXT_SHAPED

                # TEXT_SHAPED bidi and character type data
                # definition in file code representation here.
                :
                :

            END TEXT_SHAPED

            TEXT_NOMINAL

                # TEXT_NOMINAL bidi and character type data
                # definition in file code representation here.
                :
                :

             END TEXT_NOMINAL
         END FILE_CODE_REPRESENTATION
              
         PROCESS_CODE_REPRESENTATION
             TEXT_SHAPED

                 # TEXT_SHAPED bidi and character type data
                 # definition in process code representation here.
                 :
                 :

             END TEXT_SHAPED

             TEXT_NOMINAL

                 # TEXT_NOMINAL bidi and character type data
                 # definition in process code representation here.
                 :
                 :

             END TEXT_NOMINAL
         END PROCESS_CODE_REPRESENTATION

     END LAYOUT_BIDI_CHAR_TYPE_DATA

Each bidi and character type data definition can have the following definitions:

There are nineteen different bidirectional data types that can be defined, as in the following table:

Keyword
Category
Description
L
Strong
Left-to-right
LRE
Strong
Left-to-right embedding
LRO
Strong
Left-to-right override
R
Strong
Right-to-left
AL
Strong
Right-to-left
RLE
Strong
Right-to-left embedding
RLO
Strong
Right-to-left override
PDF
Weak
Pop directional format
EN
Weak
European number
ES
Weak
European number separator
ET
Weak
European number terminator
AN
Weak
Arabic number
CS
Weak
Common number separator
PS
Separator
Paragraph separator
S
Separator
Segment separator
WS
Neutral
White space
ON
Neutral
Other neutrals
NSM
Weak
Non-spacing mark
BN
Weak
Boundary neutral

If not defined in this section, the characters belong to the other neutrals type, ON.

Each keyword list above will be accompanied by one or more HEXADECIMAL ranges of characters that belong to the bidirectional character type. The syntax is as follows:

    bidi_char_type      : bidi_keyword ':' range_list
                        ;

    bidi_keyword        : 'L'
                        | 'LRE'
                        | 'LRO'
                        | 'R'
                        | 'AL'
                        | 'RLE'
                        | 'RLO'
                        | 'PDF'
                        | 'EN'
                        | 'ES'
                        | 'ET'
                        | 'AN'
                        | 'CS'
                        | 'PS'
                        | 'S'
                        | 'WS'
                        | 'ON'
                        | 'NSM'
                        | 'BN'
                        ;

    range_list          : range
                        | range_list ',' range
                        ;

    range               : HEXADECIMAL
                        | HEXADECIMAL '...' HEXADECIMAL
                        ;

For example:

    # Bidi character type definitions:
    L:  0x26, 0x41...0x5a, 0xc380...0xc396, 0xe285a0...0xe28682
    WS: 0x20, 0xc2a0, 0xe28080...0xe28086

The swapping_pairs specifies the list of swappable characters if SWAPPING_YES is specified as a value at the swapping value trio. The syntax of the swapping_pairs is as follows:

    swapping_pair_list  : swapping_keyword ':' swap_pair_list
                        ;
    swapping_keyword    : 'swapping_pairs'
                        ;

    swap_pair_list      : swap_pair
                        | swap_pair_list ',' swap_pair
                        ;

    swap_pair           : '(' HEXADECIMAL ',' HEXADECIMAL ')'

For example:

    # Swapping pair definitions:
    swapping_pairs:     (0x28, 0x29), (0x7b, 0x7d)

The national_numerals specifies the list of national digits that can be converted as the numerals value trio specifies. The syntax of the national_numerals is as follows:

    numerals_list       : numerals_keyword ':'
                         numerals_list ';' contextual_range_list
                        ;

    numerals_keyword    : 'national_numerals'
                        ;

    numerals_list       : '(' zero ',' one ',' two ',' three ','
                          four ',' five ',' six ',' seven ','
                          eight ',' nine ')'

    zero                : HEXADECIMAL
                        ;

    one                 : HEXADECIMAL
                        ;

    two                 : HEXADECIMAL
                        ;

    three               : HEXADECIMAL
                        ;

    four                : HEXADECIMAL
                        ;

    five                : HEXADECIMAL
                        ;

    six                 : HEXADECIMAL
                        ;

    seven               : HEXADECIMAL
                        ;

    eight               : HEXADECIMAL
                        ;

    nine                : HEXADECIMAL
                        ;

    contextual_range_list
                        : contextual_range
                        | contextual_range_list ',' contextual_range
                        ;

    contextual_range    : HEXADECIMAL
                        | HEXADECIMAL '...' HEXADECIMAL
                        :

For instance:

    # National numerals definition. The national number that will
    # replace Arabic number 0 to 9 is 0, 0x41, 0x42, and so on.
    # The contextual surrounding characters are 0x20 to 0x40 and
    # 0x50 to 0x7f:
    national_numerals:
        (0x0, 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49)
        ; 0x20...0x40, 0x50...0x7f

Unless NUMERALS_CONTEXTUAL is the value of the numerals attribute, the contextual range list definition is meaningless.

Shaping Data Definition

The shaping data definition section defines the context-dependent shaping rules that will be used in the shaping algorithm of the UMLE.

The definition starts with a keyword, LAYOUT_SHAPE_DATA, and ends with END LAYOUT_SHAPE_DATA:

    LAYOUT_SHAPE_DATA

        # Layout shaping data definitions here.
        :
        :

    END LAYOUT_SHAPE_DATA

The shaping data definition should be defined for the two different kinds of text shape forms, TEXT_SHAPED and TEXT_NOMINAL, depending on the text_shaping attribute value and also for the two different kinds of text representations, file code representation and process code representation (that is, wide character representation:

    LAYOUT_SHAPE_DATA

        FILE_CODE_REPRESENTATION
            TEXT_SHAPED

                # TEXT_SHAPED shaping data definition in file code
                # representation here.
                :
                :

            END TEXT_SHAPED

            TEXT_NOMINAL

                # TEXT_NOMINAL shaping data definition in file code
                # representation here.
                :
                :

            END TEXT_NOMINAL
        END FILE_CODE_REPRESENTATION

        PROCESS_CODE_REPRESENTATION
            TEXT_SHAPED

                # TEXT_SHAPED shaping data definition in process code
                # representation here.
                :
                :

            END TEXT_SHAPED

            TEXT_NOMINAL

                # TEXT_NOMINAL shaping data definition in process
                # code representation here.
                :
                :

            END TEXT_NOMINAL
        END PROCESS_CODE_REPRESENTATION

    END LAYOUT_SHAPE_DATA

Each shaping data definition consists of one or more of the shaping sequence definitions. Each shaping sequence definition is a representation of a series of state transitions triggered by an input character and the current state at each transition.

The syntax of the shaping sequence definition is as follows:

    shaping_sequence    : initial_state '+' input '->' next_state_list
                        ;

    initial_state       : '()'
                        ;

    input               : HEXADECIMAL
                        ;

    next_state_list     : next_state
                        | next_state_list '+' input '->' next_state
                        | '(' next_state_list '+' input ')' 'repeat+'
                        | '(' next_state_list '+' input ')' 'repeat*'
                        ;

    next_state          : '(' out_buffer ',' in2out ',' out2in ','
                                property ')'
                        ;

    out_buffer          : '[' out_char_list ']'
                        ;

    out_char_list       : HEXADECIMAL
                        | '(' HEXADECIMAL ')' 'repeat+'
                        | out_char_list ';' HEXADECIMAL
                        ;

    in2out              : '[' i2o_list ']'
                        ;

    i2o_list            : DECIMAL
                        | '(' DECIMAL ')' 'repeat+'
                        | i2o_list ';' DECIMAL
                        ;

    out2in              : '[' o2i_list ']'
                        ;

    o2i_list            : DECIMAL
                        | '(' DECIMAL ')' 'repeat+'
                        | o2i_list ';' DECIMAL
                        ;

    property            : '[' prop_list ']'
                        ;

    prop_list           : HEXADECIMAL
                        | '(' HEXADECIMAL ')' 'repeat+'
                        | prop_list ';' HEXADECIMAL
                        ;

For example, the following shaping sequences can be defined:

    # A simple shaping sequence:
    () + 0x21 ->
        ( [0x0021], [0], [0;0], [0x80] ) + 0x22 ->
        ( [0x0021;0x0022], [0;1], [0;0;1;1], [0x80;0x80] ) + 0xc2a0 ->
        ( [0x0021;0x0022;0xe030], [0;1;2], [0;0;1;1;2;2],
          [0x80;0x80;0x80] )

    # A repeating shaping sequence:
    () + 0x21 ->
        (
            ( [0x0021], [0], [0;0], [0x80] ) + 0x22 ->
            ( [0x0021;0x0022], [0;1], [0;0;1;1], [0x80;0x80] ) + 0xc2a2
        ) repeat+

The first example shows a shaping sequence such that if 0x21, 0x22, and 0xc2a0 are the input buffer contents, it will be converted into an output buffer containing 0x0021, 0x0022, and 0xe030; an input to the output buffer containing 0, 1, and 2; an output to the input buffer containing 0, 0, 1, 1, 2, and 2; and a property buffer containing 0x80, 0x80, and 0x80.

The second example shows a repeating shaping sequence where, if the first input code element is 0x21, then the second and third input code elements are 0x22 and 0xc2a2, respectively.

Exit Status

The following exit values are returned:

0

No errors occurred and the output file was successfully created.

1

Command line options are not correctly used or unknown command line option specified.

2

Invalid input or output file specified.

3

The layout definitions not correctly defined.

4

No more system resource error.

6

Internal error.

Files

/usr/lib/locale/common/LO_LTYPE/umle.layout.so.1

The Universal Multiscript Layout Engine for 32-bit platforms.

/usr/lib/locale/common/LO_LTYPE/sparcv9/umle.layout.so.1

The Universal Multiscript Layout Engine for 64-bit SPARC platform.

/usr/lib/locale/common/LO_LTYPE/ia64/umle.layout.so.1

The Universal Multiscript Layout Engine for 64-bit Intel platform.

/usr/lib/locale/locale/LO_LTYPE/layout.dat

The binary layout table file for the locale.

Attributes

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Availability
SUNWglt
Interface Stability
Obsolete

See Also

m_create_layout(3LAYOUT), m_destroy_layout(3LAYOUT), m_getvalues_layout(3LAYOUT), m_setvalues_layout(3LAYOUT), m_transform_layout(3LAYOUT), m_wtransform_layout(3LAYOUT), attributes(5), environ(5)

International Language Environments Guide

Unicode Technical Report #9: The Bidirectional Algorithm from http://www.unicode.org/unicode/reports/

Notes

This utility might not be included in a future release.