Hi all.
In my occasional trawl for goodies, I came across \wordright in core-spa.
It seems to try to solve a little problem I encountered a while ago, but
in current ConTeXt, it doesn't seem very happy. Reverting back to
something suggested in the code seems to make it happier. I'm still
learning the internals, so does anyone understand this enough to say why
it's a bad idea?
\starttext
\dorecurse{5}{something }
\wordright{--someone}
\dorecurse{6}{something }
\wordright{--someone}
\dorecurse{7}{something }
\wordright{--someone}
\textrule
\unprotect
\def\dowordright[#1]%
{% don't change
\groupedcommand
{\removeunwantedspaces
\hfill
\allowbreak % changed back from \hskip\zeropoint
\strut
\hfill
\quad % decent spacing
\hbox}
{\doifelse{#1}\v!right{\kern-\rightskip}{\doifsomething{#1}{\kern-#1}}%
\parfillskip\zeropoint
\par}}
\protect
\dorecurse{5}{something }
\wordright{--someone else entirely}
\dorecurse{6}{something }
\wordright{--someone else entirely}
\dorecurse{7}{something }
\wordright{--someone else entirely}
\stoptext
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Adam T. Lindsay, Computing Dept. atl(a)comp.lancs.ac.uk
Lancaster University, InfoLab21 +44(0)1524/510.514
Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-