[Top][All Lists]
[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.
- Punctuation spacing,
Ludovic Courtès <=
- Re: Punctuation spacing, Jeff Kingston, 2006/04/05
- Re: Punctuation spacing, Jeff Kingston, 2006/04/06
- Re: Punctuation spacing, Jeff Kingston, 2006/04/10
- Re: Punctuation spacing, Jeff Kingston, 2006/04/11
- Re: Punctuation spacing, Jeff Kingston, 2006/04/19
- Re: Punctuation spacing, Jeff Kingston, 2006/04/19