\symbol (ConTeXt vs. LateX)
Hi all, how can I print the corresponding character if I know its ordinal value? (In LaTeX, there is a command \symbol{number} but in ConTeXt this command has different meaning.) Thanks in advance, Best wishes, Tomáš Hála
Tomas Hala schrieb am 16.02.19 um 15:25:
Hi all,
how can I print the corresponding character if I know its ordinal value?
You can use the \tochar{...} command. font-ini.mkiv: %D The \type {\tochar} commmand takes a specification: %D %D \starttabulate[|l|l|l|] %D \NC e \NC entity \NC e:eacute \NC \NR %D \NC x \NC hexadecimal unicode \NC x:013D \NC \NR %D \NC d \NC decimal unicode \NC d:123 \NC \NR %D \NC s \NC hexadecimal index (slot) \NC s:210D \NC \NR %D \NC i \NC decimal index \NC i:456 \NC \NR %D \NC n \NC name \NC n:eight \NC \NR %D \NC c \NC name \NC c:x \NC \NR %D \NC u \NC unicode descriptions \NC u:dog \NC \NR %D \NC a \NC all (also descriptions) \NC a:rewind \NC \NR %D \stoptabulate Wolfgang
Thank you, Wolgang, that's it. Tomáš Sat, Feb 16, 2019 ve 03:31:47PM +0100 Wolfgang Schuster napsal(a): # # # Tomas Hala schrieb am 16.02.19 um 15:25: # >Hi all, # > # >how can I print the corresponding character if I know its ordinal value? # # You can use the \tochar{...} command. # # font-ini.mkiv: # # %D The \type {\tochar} commmand takes a specification: # %D # %D \starttabulate[|l|l|l|] # %D \NC e \NC entity \NC e:eacute \NC \NR # %D \NC x \NC hexadecimal unicode \NC x:013D \NC \NR # %D \NC d \NC decimal unicode \NC d:123 \NC \NR # %D \NC s \NC hexadecimal index (slot) \NC s:210D \NC \NR # %D \NC i \NC decimal index \NC i:456 \NC \NR # %D \NC n \NC name \NC n:eight \NC \NR # %D \NC c \NC name \NC c:x \NC \NR # %D \NC u \NC unicode descriptions \NC u:dog \NC \NR # %D \NC a \NC all (also descriptions) \NC a:rewind \NC \NR # %D \stoptabulate # # Wolfgang
participants (2)
-
Tomas Hala
-
Wolfgang Schuster