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@comp.lancs.ac.uk Lancaster University, InfoLab21 +44(0)1524/510.514 Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Hi Adam
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
i've forgotten the border case -)
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?
not tonight, so let's revert is indeed Hans ----------------------------------------------------------------- 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 -----------------------------------------------------------------
participants (2)
-
Adam Lindsay
-
Hans Hagen