Hi Hans, I encountered a nasty problem when I tried to make symbols for the Libertinus keyboard font. Whenever I tried to make a table with all symbols in the font ConTeXt stops with a error message. %%%% begin example \definefontsynonym [LibertinusKeyboard] [file:libertinuskeyboardregular.otf] \startsymbolset [libertinus-keyboard] [font=LibertinusKeyboard] % Libertinus Keyboard Regular \stopsymbolset \starttext \showsymbolset [libertinus-keyboard] \stoptext %%%% end example The error message is caused by two symbols in the font, the first is "bar" and the second is "dollar". The reason for this is that ConTeXt uses \tochar to auto create symbols in the font but \tochar set special catcodes for some letters. As can be seen in the example below "dollar" has catcode 3 and "bar" has catcode "13". %%%% begin example \starttext x\tochar{n:bar}|x \tochar{n:dollar}x$ \stoptext %%%% end example Wolfgang
On 3/9/2020 9:38 PM, Wolfgang Schuster wrote:
As can be seen in the example below "dollar" has catcode 3 and "bar" has catcode "13".
%%%% begin example \starttext
x\tochar{n:bar}|x
\tochar{n:dollar}x$
\stoptext %%%% end example ok, i'll send you somethign to test
Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
participants (2)
-
Hans Hagen
-
Wolfgang Schuster