[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Right to left

From: Lonnell L Peters
Subject: Re: Right to left
Date: Wed, 2 Feb 2000 13:57:09 -0500 (EST)

Thank you for the info, but I don't quite need something that complicated.
The fonts I'm using are already set up for right-to-left formatting
(they're Hebrew/Aramaic and Arabic fonts). The only thing I really need to
do is reverse the string that I want to typeset. What I've done is write
an external program that takes a file, and reverses all of the strings in
the file (delimited by newlines). Using this, I can then easily typeset
whole lines (or just words) in right to left.

Lonnell Peters

On Tue, 1 Feb 2000, Valeriy E. Ushakov wrote:

> On Mon, Jan 31, 2000 at 04:17:47PM -0500, Lonnell L Peters wrote:
> > Is there a way to render boxes right to left instead of right to left? I
> > really only need it for small sections of text (ie. a word at once), but
> > if it is possible to typeset a whole page like this, that would be great.
> No, Lout currently has no support for RTL formatting.  For word at a
> time, though, you can perhaps emulate it by combining two mirroring
> transformations.  That's a hack, but that should work.
> First you tweak the default font matrix of your font to mirror the
> glyphs.  You tweak the AFM file to have positive WX values (I don't
> think Lout can cope with negative WX).  You then wrap the word in
> @Graphics that breaks out of surrounding gsave and installs mirrored
> CTM, taking care, of course, to grestore it away afterwards.
> That's how I would do it, anyway.
> PS: That sounds interesting.  Can you please send me a pfa/afm for
> your font (of course if the font can be legally distributed) and a few
> sample words to play with (preferrably along with reference images ;-).
> I will be away from my office tomorrow, but look at the problem when I
> have time later this week. 
> SY, Uwe
> -- 
> address@hidden                         |       Zu Grunde kommen
> http://www.ptc.spbu.ru/~uwe/            |       Ist zu Grunde gehen

reply via email to

[Prev in Thread] Current Thread [Next in Thread]