[NTG-context] bug in current beta?

Hans Hagen pragma at wxs.nl
Tue Feb 3 21:31:32 CET 2015


On 2/3/2015 8:55 PM, Pablo Rodriguez wrote:
> Dear list,
>
> beta from 2015.01.30 15:28 isn’t able to hyphenate the second word in
> this sample (also beta from 2014.11.26 21:43 doesn’t hyphenate it):
>
>      \mainlanguage[es]
>      \setuplanguage[es][patterns={es, agr}]
>      \setupdirections[bidi=on,method=two]
>      \definefontfamily[mainface][rm][FreeSerif]
>      \setupbodyfont[mainface]
>      \starttext
>      \hsize\zeropoint
>      hola χαλεπὰ {\agr χαλεπὰ}
>      \stoptext
>
> Beta from 2014.07.14 19:25 hypehantes all three words.
>
> I’m afraid this may be a bug. Could someone else confirm it?

more a side effect of a speedup in language switching (assuming no 
change in patterns after enabling a language)

you can put this in cont-new.mkiv

\unprotect

\appendtoks
 
\global\expandafter\let\csname\??languagenumbers\currentlanguage\endcsname\undefined
\to \everysetuplanguage

\protect

actually, a \mainlanguage after \setuplanguage would work in your case

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------


More information about the ntg-context mailing list