[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Hyphen causes extra space
From: |
Valeriy E. Ushakov |
Subject: |
Re: Hyphen causes extra space |
Date: |
Mon, 28 Dec 1998 22:33:40 +0300 |
On Mon, Dec 21, 1998 at 08:11:26AM +0100, Dominikus Herzberg wrote:
> there is still a problem with the usage of hyphens, see example below.
> The hyphen in 'Informationstechnik-' causes an extra space at the very
> beginning of the next line (using Lout 3.12):
There are two possible fixes to this. z36.c:1070 reads
/* if a - ended the run, hyphenate there only */
if( key[stop] == CH_HYPHEN )
This could be changed to either:
/* if a - ended the run, hyphenate there only */
if( key[stop] == CH_HYPHEN && key[stop+1] != '\0' )
or to
/* if a - ended the run, hyphenate there only */
if( key[stop] == CH_HYPHEN )
{ if( key[stop+1] == '\0' )
continue;
The former will cause Lout to hyphenate words that ends with hyphen
(in Dominikus' example "nik-" from "Informationstechnik-" is moved on
to the next line). The latter will cause Lout to treat the word as
unhyphenable (huh?).
Hope that helps.
Season greetings to everyone.
SY, Uwe
--
address@hidden | Zu Grunde kommen
http://www.ptc.spbu.ru/~uwe/ | Ist zu Grunde gehen