lout-users
[Top][All Lists]
Advanced

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

Punctuation spacing


From: Ludovic Courtès
Subject: Punctuation spacing
Date: Wed, 05 Apr 2006 09:50:42 +0200
User-agent: Gnus/5.110004 (No Gnus v0.4) Emacs/21.4 (gnu/linux)

Hi,

I have a set of definitions that I use to enforce correct spacing around
punctuation marks, such as:

  def ";" left word
  {
    @CurrLang @Case
    {
      # Half a space before, one space after
      French @Yield { word |0.5s ";" }
      else   @Yield { word ";"  }
    }
  }

The problem with this definition is that it precludes hyphenation of its
left parameter.  Moreover, the object returned by `;' is as large as its
(non-hyphened) left parameter plus spacing and semi-colon.  Therefore,
it sometimes yields paragraphs whose inter-object spacing is too large.

Is there a way to work around this problem?  I'm not sure macros would
do the trick --- and macros are bad anyway.  ;-)

Thanks,
Ludovic.


reply via email to

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