Comprehensive TeX Archive Network
Home Upload Browse

Direc­tory tex-archive/systems/omega

Dear Omegists,

Multiple direction support is now included in Omega 1.10.
The release can be found at

Here is the README file.  Real documentation will follow.


John and Yannis

Release 1.10 includes substantially improved support for multidirectional
typesetting.  It goes well beyond the support anticipated in the last
documentation.  Here is some cursory documentation en attendant that the
real documentation is prepared with lots of examples.

1. The directions

It turns out that there are 32 (!) writing directions.  They are
designated by three-letter codes.  The three letters are always T, R,
B or L, and they mean, respectively, the Top, Right, Bottom or Left
sides of the page.

The first letter (the primary direction), corresponds to the side of
the page where the first line is to be found.  The second letter (the
secondary direction), corresponds to the side of the page where the
first character of a line is to be found.  The third letter (the
tertiary direction), corresponds to the orientation of characters
within each line.

Four directions seem to satisfy the needs of unilingual typesetting
for all of the modern scripts.

TLT: Left-to-right writing.  The most commonly used writing direction.
Scripts include LGC scripts, Indic scripts, South-East-Asian scripts,
various syllabaries.

TRT: Right-to-left writing.  Scripts include Hebrew, Arabic and Syriac.

RTT: Vertical ideogram writing. Scripts include Chinese, Japanese
and Korean.

LTL: Vertical cursive writing.  Scripts include Mongolian.

However, when we start to mix scripts of different directions,
a number of interesting combinations appear.  The authors have
seen the following combinations:

RTR: English within a Japanese text.

RTL: Arabic within a Japanese text.

RBR: Arabic within a Japanese text (starts at bottom of page).

LTT: Chinese within a Mongolian text.

RTL: Mongolian within a Chinese text.

LTR: English or Russian within a Mongolian text.

2. The parameters

The following parameters are called direction parameters, and they
control the behavior of the Omega system.

\pagedir  The direction for pages (\shipout).
\bodydir  The direction for vboxes, including the main body of text.
\pardir   The direction for paragraphs.
\textdir  The direction for text and hboxes.
\mathdir  The direction for mathematics.

Direction parameters act similarly to other parameters.  For example
\bodydir RTT changes the direction of the main body of text to RTT.
Similarly, \the\mathdir gives the current direction for mathematics.
All these parameters respect groups.

3. Additional primitives

\pageheight and \pagewidth are new dimensions.  The default values
for these are for A4 pages.

\hbox, \vbox and \vtop can all take a direction parameter.  The syntax
is \hbox dir TRT ...{...}.  The direction must be the first parameter
to the box.

4. How it works

Normally, the page and body directions would be set once --- at the
beginning --- in the document.  Furthermore, in most situations they
would be the same.  However, for vertical typesetting, it is common
for the headers and footers to be horizontal.  In that case, the page
and body directions would be set to be orthogonal to each other, for
Japanese, say, \pagedir TRT\bodydir RTT.

The paragraph and text directions would also normally be the same.
However, if there are scripts of different directions within the same
paragraph, then the text direction would vary.  Since the parameter
definitions respect the groups, nesting of writing directions is 
easily done.  For example, an English insertion in a Hebrew document
would simply be {\textdir TLT\cmr10 An English insertion}.  Note that
you can get interesting effects, since paragraphs are not group

The math direction would normally be the same as the text direction.
However, real math only works properly for the left-to-right writing
directions (TLT, RTR, BRB, LBL).  Fake math (used for typesetting
tabular in LaTeX) works properly.

Note that when a box is begun, then the body, paragraph and text
directions all take the same direction as that box. This will be true
regardless of whether the direction of the box was given explicitly.

5. Limitations

Not all of the possible interactions will currently give meaningful
results.  Bidirectional support (TLT and TRT) is complete.  Some
subtleties in mixed vertical-horizontal writing still need to be
worked out.


Name Notes


Name Size Date Notes
README 4665 2000-01-31 03:28:00
cvs.tgz 18001899 2001-01-09 05:01:00
omega-doc-1.8.tar.gz 257437 1999-03-30 01:00:00
omega-lib-1.15.tgz 1196383 2000-08-13 03:31:00
torture.tex 46373 2000-02-06 04:03:00
utf8.tgz 83625 2000-08-13 03:38:00
web2c-7.3.1-omega-1.15.tgz 386994 2000-08-13 01:05:00

omega – A wide-char­ac­ter-set ex­ten­sion of TeX

A de­vel­op­ment of TeX, which deals in multi-octet Uni­code char­ac­ters, to en­able na­tive treat­ment of a wide range of lan­guages with­out chang­ing char­ac­ter-set.

Work on Omega seems, more or less, to have ceased: its im­me­di­ate suc­ces­sor was to be the aleph project (though that too has stalled). Projects de­vel­op­ing Omega (and Aleph) ideas in­clude Omega-2 and LuaTeX.

Home pagehttp://omega.en­
Li­censeGNU Gen­eral Public Li­cense
Main­tainerYan­nis Har­alam­bous
John Plaice (in­ac­tive)
Con­tained inTeXlive as omega
MikTeX as mik­tex-omega-bin-2.9
Topics Omega and pack­ages that use it
TeX (or TeX-alike) type­set­ting en­gine
Guest Book Sitemap Contact 2014-04-23 13:27 CEST