On 6/16/2014 11:51 PM, Brian Landy wrote:
Hi, I was testing the latest beta (2014.06.15) and noticed I am getting incorrect output using natural tables with alignment characters. I produced a small example that demonstrates the problem, and attached output created with the version I'm testing (bad.pdf) and my prior version (good.pdf, ConTeXt 2013.06.10). You can see in the bad file that ConTeXt doesn't properly align on the "-" and it introduces spurious spaces.
i assume you haven't updated in a while as this is not something last beta specific the alignment code has been redone some time ago (the general mechanism is more clever now) and it was mostly made for aligning numbers (not so much for your case as - is seen as minus) anyhow, i made it work a bit better with tables (extra pass needed) \starttext \enabletrackers[typesetters.characteralign] \bgroup \setupTABLE[column][1][aligncharacter=yes,alignmentcharacter={,}] \bTABLE \bTR \bTD 1,2 \eTD \bTD 1,2 \eTD \bTD xxx \eTD \eTR \bTR \bTD - 1,2 \eTD \bTD -1,2 \eTD \bTD xxx \eTD \eTR \bTR \bTD -1,2 \eTD \bTD -1,2 \eTD \bTD xxx \eTD \eTR \bTR \bTD 11,2 \eTD \bTD 11,2 \eTD \bTD xxx \eTD \eTR \bTR \bTD 11,224 \eTD \bTD 11,22 \eTD \bTD xxx \eTD \eTR \eTABLE \egroup \bgroup \setupTABLE[column][1][aligncharacter=yes,alignmentcharacter={-}] \setupTABLE[column][2][aligncharacter=yes,alignmentcharacter={\endash}] \bTABLE \bTR \bTD 1-2 \eTD \bTD 1\endash2 \eTD\bTD xxx \eTD \eTR \bTR \bTD 1-2 \eTD \bTD 1\endash2 \eTD\bTD xxx \eTD \eTR \bTR \bTD 1-2 \eTD \bTD 1\endash2 \eTD\bTD xxx \eTD \eTR \bTR \bTD 11-2 \eTD \bTD 11\endash2 \eTD\bTD xxx \eTD \eTR \bTR \bTD 11-22 + \eTD \bTD 11\endash22 + \eTD\bTD xxx \eTD \eTR \eTABLE \egroup \stoptext the next beta can handle this 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 -----------------------------------------------------------------