lilypond-devel
[Top][All Lists]
Advanced

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

Re: How to set text-direction


From: Han-Wen Nienhuys
Subject: Re: How to set text-direction
Date: Mon, 22 May 2006 14:02:11 +0200
User-agent: Thunderbird 1.5.0.2 (X11/20060501)

Cameron Horsburgh schreef:
On Mon, May 22, 2006 at 12:10:23PM +0200, Han-Wen Nienhuys wrote:
Cameron Horsburgh schreef:
Hi folks,

I'm trying to write the documentation for the newish feature whereby the direction of text scripts can be changed. From the 2.8 NEWS:

The order of words in \markup commands may now be reversed by setting the text-direction property. This is useful for Right-to-Left languages like Hebrew.

Unfortunately I can't figure out how to do it. Any clues?
see the regtest file for text-direction


Nope--can't see it there. The onlything I can see in the regtest is 
markup-bidi-pango.ly, which seems to cheat a little bit!

I've grepped through CVS and the only likely things I can find are in 
define-grob-properties.scm and define-markup-commands.scm. Unfortunately I'm 
not able to glean from those how it should be done.

Try this:

\markup {
\override #(cons 'text-direction LEFT) \wordwrap { hello this will be reversed } }

--

Han-Wen Nienhuys - address@hidden - http://www.xs4all.nl/~hanwen

LilyPond Software Design
 -- Code for Music Notation
http://www.lilypond-design.com





reply via email to

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