Am 23.07.2013 um 15:42 schrieb Alan Bowen
Wolfgang, Hans—many thanks to you both!
Part of the problem was that i was using \| instead of \textbar. I now have:
\setupbodyfont[antykwa-poltawskiego]
\def\test {\ifnum\lastnodetype=\gluenodecode \| \else \textbar \fi}
\setcharacterspacing[frenchpunctuation]
\starttext left\test middle \test right
\stoptext
which looks good on the page—\quad\textbar\quad puts too much space around the bar.
You can use \letterbar instead of \|. \textbar and \letterbar produce different output because \letterbar is taken from the text font which has padding on the left and right side while \textbar is taken from the math font which has no padding. When you don’t like the extra space around | I suggest to use another font which fits your taste and use \letterbar in both cases (just add some space on the left/right between word). Wolfgang