Difference between revisions of "RTL"

From Wiki
Jump to navigation Jump to search
(Started a page for RTL issues)
 
(Basic usage of setupalign)
Line 1: Line 1:
 
Here we collect several tips and tricks for dealing with right-to-left (RTL) texts as well as BiDi (bidirectional) texts.  The large number of hooks in different commands makes it possible to use CONTEXT's support for such documents.  However, there are limitations and/or bugs, as well.
 
Here we collect several tips and tricks for dealing with right-to-left (RTL) texts as well as BiDi (bidirectional) texts.  The large number of hooks in different commands makes it possible to use CONTEXT's support for such documents.  However, there are limitations and/or bugs, as well.
 +
 +
== Basics ==
 +
Use {{cmd|setupalign}} to change the text direction to RTL.
 +
<context source=yes mode=mkiv text="This produces:">
 +
% mode=mkiv
 +
\setupalign[r2l]
 +
\starttext
 +
\input knuth
 +
\stoptext
 +
</context>

Revision as of 04:08, 27 January 2016

Here we collect several tips and tricks for dealing with right-to-left (RTL) texts as well as BiDi (bidirectional) texts. The large number of hooks in different commands makes it possible to use CONTEXT's support for such documents. However, there are limitations and/or bugs, as well.

Basics

Use \setupalign to change the text direction to RTL.

% mode=mkiv
\setupalign[r2l]
\starttext
\input knuth
\stoptext

This produces: