![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
Renaud AUBIN wrote:
Hans Hagen a écrit :
but why do you need defs at all
Hans
Because if I don't use this def, I don't obtain correct spacing (i.e. no space between the word and { ;, :, !, ? } ) !
Considering this sample:
\setupoutput[pdftex]
\enableregime[il9] \useencoding[ffr] \mainlanguage[fr]
\starttext Essai: est-ce que la ponctuation est correcte?
Essai : est-ce que la ponctuation est correcte?
Essai : est-ce que la ponctuation est correcte ?
Peut-être bien que oui ! Peut-être que non! \stoptext
The output returns:
Essai: est-ce que la ponctuation est correcte?
Essai: est-ce que la ponctuation est correcte?
Essai: est-ce que la ponctuation est correcte?
Peut-être bien que oui! Peut-être que non! change this in enco-ffr: (\empty -> \currentmainlanguage)
\startlanguagespecifics[\s!fr] \definetextmodediscretionary : {\removeunwantedspaces\prewordbreak\kern\hspaceamount\currentmainlanguage{:}:} \definetextmodediscretionary ; {\removeunwantedspaces\prewordbreak\kern\hspaceamount\currentmainlanguage{;};} \definetextmodediscretionary ? {\removeunwantedspaces\prewordbreak\kern\hspaceamount\currentmainlanguage{?}?} \definetextmodediscretionary ! {\removeunwantedspaces\prewordbreak\kern\hspaceamount\currentmainlanguage{!}!} \stoplanguagespecifics (btw, this feature will be replaces in due time by pdftex's pre/post character kerning features) ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------