Hi, I was hoping you would accept this patch to typo-tal.lua: index a67cd0a..100d95d 100644 --- a/tex/texmf-context/tex/context/base/mkiv/typo-tal.lua +++ b/tex/texmf-context/tex/context/base/mkiv/typo-tal.lua @@ -278,7 +278,7 @@ function characteralign.handler(originalhead,where) if char then local font = getfont(current) -- local unicode = unicodes[font][char] - local unicode = fontcharacters[font][char].unicode or char -- ignore tables + local unicode = (fontcharacters[font][char] and fontcharacters[font][char].unicode or char) -- ignore tables if not unicode then -- no unicode so forget about it elseif unicode == separator then -- This permits using certain special characters like the Unicode word joiner as the alignment character in a natural table. Without the patch ConTeXt aborts with an error: ... typo-tal.lua:281: attempt to index field '?' (a nil value) Thank you! Best regards, Brian Here is a simple example that aborts without the patch: \edef\mywordjoiner{\normalUchar"2060} \starttext \bTABLE \setupTABLE[c][1][aligncharacter=yes,alignmentcharacter={\mywordjoiner},align=middle] \bTABLEbody \bTR \bTD 1\mywordjoiner.234 \eTD \bTD 1\mywordjoiner.234 \eTD \eTR \bTR \bTD 123\mywordjoiner.4 \eTD \bTD 123\mywordjoiner.4 \eTD \eTR \eTABLEbody \eTABLE \stoptext
participants (1)
-
Brian R. Landy