lout-users
[Top][All Lists]
Advanced

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

"~" (unbreakable space) bug


From: Valeriy E. Ushakov
Subject: "~" (unbreakable space) bug
Date: Mon, 25 Nov 1996 01:34:02 +0300 (MSK)

It occurs to me that there's a bug in the definition of the "~"
symbol. I came to this conclusion after I had formatted some of my old
documents with new lout using the definition of "~" supplied in dl
package. Lout had happily broke lines at the spots clerly marked as
unbreakable with "~".

The user guide states (doc/user/bas_par2, use vt220 at home so no
PostScript, sorry):

    If you have a few words that must be kept together on one line,
    the recommended way is to separate them by an "~" symbol:

The definition of "~" in dl is:

        def "~"  left x right y { x &1s y }

The expert guide states (in doc/expert/pre_conc):

    Lout breaks paragraphs into lines automatically as required, by
    converting some of the "&" symbols into "//1vx". Gaps of length 0
    (other than hyphenation gaps) are not eligible for this conversion.

The fix is very simple. My own definition of "~" that I've been using
all that time just packs a concatenation of its two arguments into
@OneRow, that ensures that line can't be broken between x and y.

        def "~"  left x right y { @OneRow { x &1s y } }


Best regards!

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]