* How to invoke Unicode symbols?
@ 2011-01-09 15:57 Vyatcheslav Yatskovsky
2011-01-09 16:15 ` Wolfgang Schuster
0 siblings, 1 reply; 9+ messages in thread
From: Vyatcheslav Yatskovsky @ 2011-01-09 15:57 UTC (permalink / raw)
To: ntg-context
Hi,
How to invoke pre-defined Unicode symbols?
E.g., in "symb-uni.tex" I see
\startsymbolset[Unicode Musical] % 0x2600: Requires UnicodeRegular26
\definesymbol[QuarterNote][\USymbChar{38}{105}] % QUARTER NOTE
\definesymbol[EighthNote][\USymbChar{38}{106}] % EIGHTH NOTE
...
\symbol[QuarterNote] gives me words "QuarterNote", and \QuarterNote is
an invalid sequence.
P.S. http://wiki.contextgarden.net/Reference/en/symbol is empty :(
--
Best Regards,
Vyatcheslav Yatskovsky
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: How to invoke Unicode symbols?
2011-01-09 15:57 How to invoke Unicode symbols? Vyatcheslav Yatskovsky
@ 2011-01-09 16:15 ` Wolfgang Schuster
0 siblings, 0 replies; 9+ messages in thread
From: Wolfgang Schuster @ 2011-01-09 16:15 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 303 bytes --]
Am 09.01.2011 um 16:57 schrieb Vyatcheslav Yatskovsky:
> Hi,
>
> How to invoke pre-defined Unicode symbols?
Use a font with the symbols.
\starttext
Symbols: \definedfont[file:Symbola sa 2]♩♪
\stoptext
You can download the font here: http://users.teilar.gr/~g1951d/
Wolfgang
[-- Attachment #1.2: Type: text/html, Size: 715 bytes --]
[-- Attachment #2: Type: text/plain, Size: 486 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: How to invoke Unicode symbols?
2011-01-16 3:51 ` Vyatcheslav Yatskovsky
@ 2011-01-16 15:25 ` Hans Hagen
0 siblings, 0 replies; 9+ messages in thread
From: Hans Hagen @ 2011-01-16 15:25 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Vyatcheslav Yatskovsky
On 16-1-2011 4:51, Vyatcheslav Yatskovsky wrote:
> Is \fontchar a hack or 'official' command? If the latter, it deserves to
> be wikified.
it's an official low level command and will stay
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
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: How to invoke Unicode symbols?
[not found] <mailman.371.1294900960.4223.ntg-context@ntg.nl>
@ 2011-01-16 3:51 ` Vyatcheslav Yatskovsky
2011-01-16 15:25 ` Hans Hagen
0 siblings, 1 reply; 9+ messages in thread
From: Vyatcheslav Yatskovsky @ 2011-01-16 3:51 UTC (permalink / raw)
To: ntg-context
>> The following example does not work, while the font (Symbola) is found.
> Works here. Can you try it with a clean installation!
Works, indeed!
Thanks a lot, as always! )
Is \fontchar a hack or 'official' command? If the latter, it deserves to
be wikified.
--
Best Regards,
Vyatcheslav Yatskovsky
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: How to invoke Unicode symbols?
2011-01-12 22:24 ` Vyatcheslav Yatskovsky
@ 2011-01-12 22:39 ` Wolfgang Schuster
0 siblings, 0 replies; 9+ messages in thread
From: Wolfgang Schuster @ 2011-01-12 22:39 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 12.01.2011 um 23:24 schrieb Vyatcheslav Yatskovsky:
> Hi!
>
> I'm back again with my question. I really want to get Unicode 'Quarter Note' symbol, either from standard or custom font.
>
> The following example does not work, while the font (Symbola) is found.
Works here. Can you try it with a clean installation!
Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: How to invoke Unicode symbols?
[not found] <mailman.366.1294863134.4223.ntg-context@ntg.nl>
@ 2011-01-12 22:24 ` Vyatcheslav Yatskovsky
2011-01-12 22:39 ` Wolfgang Schuster
0 siblings, 1 reply; 9+ messages in thread
From: Vyatcheslav Yatskovsky @ 2011-01-12 22:24 UTC (permalink / raw)
To: ntg-context
[-- Attachment #1: Type: text/plain, Size: 887 bytes --]
Hi!
I'm back again with my question. I really want to get Unicode 'Quarter
Note' symbol, either from standard or custom font.
The following example does not work, while the font (Symbola) is found.
I probably did not define something, but I don't know what.
\starttext
\startfont[file:Symbola602 sa 2]
\fontchar{notequarter}
\fontchar{musicalnote}
\fontchar{musicalnotedbl}
\fontchar{sixteenthnotedbl}
\stopfont
\stoptext
! LuaTeX error
...tminimal/texmf-context/tex/context/base/cldf-com.lua:58: attempt to
call global 'format' (a nil value)
stack traceback:
...tminimal/texmf-context/tex/context/base/cldf-com.lua:58: in function
'char'
...tminimal/texmf-context/tex/context/base/font-ctx.lua:830: in
function 'char'
<main ctx instance>:1: in main chunk.
\fontchar #1->\ctxlua {fonts.char("#1")}
l.4 \fontchar{notequarter}
?
Please, help me.
Regards,
Vyatcheslav
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: fontchar.tex --]
[-- Type: text/x-tex; name="fontchar.tex", Size: 174 bytes --]
\starttext
\startfont[file:Symbola602 sa 2]
\fontchar{notequarter}
\fontchar{musicalnote}
\fontchar{musicalnotedbl}
\fontchar{sixteenthnotedbl}
\stopfont
\stoptext
[-- Attachment #3: Type: text/plain, Size: 486 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: How to invoke Unicode symbols?
[not found] <mailman.292.1294598792.4223.ntg-context@ntg.nl>
@ 2011-01-09 21:05 ` Vyatcheslav Yatskovsky
0 siblings, 0 replies; 9+ messages in thread
From: Vyatcheslav Yatskovsky @ 2011-01-09 21:05 UTC (permalink / raw)
To: ntg-context
On 09.01.2011 20:46, ntg-context-request@ntg.nl wrote:
> \starttext
> \startfont[file:Symbola sa 2]
> \fontchar{notequarter}
> \fontchar{musicalnote}
> \fontchar{musicalnotedbl}
> \fontchar{sixteenthnotedbl}
> \stopfont
> \stoptext
>
> You can define symbols for them.
\startfont[file:Symbola602 sa 2]
\fontchar{notequarter}
\fontchar{musicalnote}
\fontchar{musicalnotedbl}
\fontchar{sixteenthnotedbl}
\stopfont
! LuaTeX error
...tminimal/texmf-context/tex/context/base/cldf-com.lua:58: attempt to
call global 'format' (a nil value)
stack traceback:
...tminimal/texmf-context/tex/context/base/cldf-com.lua:58: in function
'char'
...tminimal/texmf-context/tex/context/base/font-ctx.lua:830: in
function 'char'
<main ctx instance>:1: in main chunk.
\fontchar #1->\ctxlua {fonts.char("#1")}
l.27 \fontchar{notequarter}
Looks like I don't know how to use it. :(
--
Best Regards,
Vyatcheslav Yatskovsky
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: How to invoke Unicode symbols?
2011-01-09 18:14 ` Vyatcheslav Yatskovsky
@ 2011-01-09 18:46 ` Wolfgang Schuster
0 siblings, 0 replies; 9+ messages in thread
From: Wolfgang Schuster @ 2011-01-09 18:46 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 09.01.2011 um 19:14 schrieb Vyatcheslav Yatskovsky:
> I can easily get ♪ just by copy-pasting, but I cannot get ♩ ! Even when the font is specified. When I paste ♩ symbol into TeXWorks, it disappears. That's why I want how to call it by name.
\starttext
\startfont[file:Symbola sa 2]
\fontchar{notequarter}
\fontchar{musicalnote}
\fontchar{musicalnotedbl}
\fontchar{sixteenthnotedbl}
\stopfont
\stoptext
You can define symbols for them.
Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: How to invoke Unicode symbols?
[not found] <mailman.290.1294590830.4223.ntg-context@ntg.nl>
@ 2011-01-09 18:14 ` Vyatcheslav Yatskovsky
2011-01-09 18:46 ` Wolfgang Schuster
0 siblings, 1 reply; 9+ messages in thread
From: Vyatcheslav Yatskovsky @ 2011-01-09 18:14 UTC (permalink / raw)
To: ntg-context
On 09.01.2011 18:33, ntg-context-request@ntg.nl wrote:
> Use a font with the symbols.
>
> \starttext
> Symbols: \definedfont[file:Symbola sa 2]♩♪
> \stoptext
>
> You can download the font here: http://users.teilar.gr/~g1951d/
> <http://users.teilar.gr/%7Eg1951d/>
>
> Wolfgang
Thank you, but...
I can easily get ♪ just by copy-pasting, but I cannot get ♩ ! Even when
the font is specified. When I paste ♩ symbol into TeXWorks, it
disappears. That's why I want how to call it by name.
--
Best Regards,
Vyatcheslav Yatskovsky
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2011-01-16 15:25 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-09 15:57 How to invoke Unicode symbols? Vyatcheslav Yatskovsky
2011-01-09 16:15 ` Wolfgang Schuster
[not found] <mailman.290.1294590830.4223.ntg-context@ntg.nl>
2011-01-09 18:14 ` Vyatcheslav Yatskovsky
2011-01-09 18:46 ` Wolfgang Schuster
[not found] <mailman.292.1294598792.4223.ntg-context@ntg.nl>
2011-01-09 21:05 ` Vyatcheslav Yatskovsky
[not found] <mailman.366.1294863134.4223.ntg-context@ntg.nl>
2011-01-12 22:24 ` Vyatcheslav Yatskovsky
2011-01-12 22:39 ` Wolfgang Schuster
[not found] <mailman.371.1294900960.4223.ntg-context@ntg.nl>
2011-01-16 3:51 ` Vyatcheslav Yatskovsky
2011-01-16 15:25 ` Hans Hagen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).