Re: [NTG-context] diameter symbol in ConTeXt?

2013-09-21 Thread Marco Patzer
On 2013–09–21 Xan wrote:

 \diameter produces a diameter symbol. What is the equivalent in ConTeXt?

  ⌀ or \varnothing

Have a look at char-def.lua for a list of context names for various
glyphs. It might make sense to enable the fonts.missing tracker.
Then ConTeXt warns you that a particular glyph is not available.

  \enabletrackers [fonts.missing]

 Is there any compilation of symbols avaliable in ConTeXt?

Not that I'm aware of. In ConTeXt you have easy access to all
characters of any font¹. Either input the character directly if it's
present in the current font or you can create a symbol:

\definefontsynonym
  [minion]
  [name:minionproregular]

\definesymbol
  [leaf]
  [\getnamedglyphdirect
{minion}
{bullet.010}]

\starttext
  Foo \symbol[leaf] Bar
\stoptext

Marco

¹ http://tex.stackexchange.com/a/87563/5245


signature.asc
Description: Digital signature
___
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
___

Re: [NTG-context] diameter symbol in ConTeXt?

2013-09-21 Thread Aditya Mahajan

On Sat, 21 Sep 2013, Marco Patzer wrote:


Is there any compilation of symbols avaliable in ConTeXt?


Not that I'm aware of. In ConTeXt you have easy access to all
characters of any font¹. Either input the character directly if it's
present in the current font or you can create a symbol:


Or send a pull request for missing csnames in char-def.lua.

Aditya___
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
___

Re: [NTG-context] diameter symbol in ConTeXt?

2013-09-21 Thread Xan
 On 2013–09–21 Xan wrote:
 
  \diameter produces a diameter symbol. What is the equivalent in ConTeXt?
 
   ⌀ or \varnothing


Really varnothing is not the same as diameter (see the reference of LaTeX I 
posted before)

 
 Have a look at char-def.lua for a list of context names for various
 glyphs. It might make sense to enable the fonts.missing tracker.
 Then ConTeXt warns you that a particular glyph is not available.
 
   \enabletrackers [fonts.missing]
 
  Is there any compilation of symbols avaliable in ConTeXt?
 
 Not that I'm aware of. In ConTeXt you have easy access to all
 characters of any font¹. Either input the character directly if it's
 present in the current font or you can create a symbol:
 
 \definefontsynonym
   [minion]
   [name:minionproregular]
 
 \definesymbol
   [leaf]
   [\getnamedglyphdirect
 {minion}
 {bullet.010}]
 
 \starttext
   Foo \symbol[leaf] Bar
 \stoptext
 
 Marco
 



How can I define symbol with unicode equivalent? \diameter really is U+2300 I 
think.

Thanks,
Xan.
___
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
___

Re: [NTG-context] diameter symbol in ConTeXt?

2013-09-21 Thread Marco Patzer
On 2013–09–21 Xan wrote:

  On 2013–09–21 Xan wrote:
  
   \diameter produces a diameter symbol. What is the equivalent in ConTeXt?
  
⌀ or \varnothing
 
 
 Really varnothing is not the same as diameter (see the reference of LaTeX I 
 posted before)

  \def\diameter{\char2300}

 How can I define symbol with unicode equivalent?

  \definesymbol [diameter] [⌀]

 \diameter really is U+2300 I think.

Diameter is U+2300, indeed. And that's exactly what I wrote in my
previous mail ⌀ or \varnothing.

Marco


signature.asc
Description: Digital signature
___
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
___

Re: [NTG-context] diameter symbol in ConTeXt?

2013-09-21 Thread Xan
  Really varnothing is not the same as diameter (see the reference of LaTeX I 
  posted before)
 
   \def\diameter{\char2300}
 


This (\char2300) is really what I want.

Sorry if I don't understand you.

Xan.
___
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
___


Re: [NTG-context] diameter symbol in ConTeXt?

2013-09-21 Thread Aditya Mahajan

On Sat, 21 Sep 2013, Marco Patzer wrote:


On 2013–09–21 Xan wrote:


\diameter really is U+2300 I think.


Diameter is U+2300, indeed. And that's exactly what I wrote in my
previous mail ⌀ or \varnothing.


Hans, could you add the following to char-def.lua

 [0x2300]={
  category=so,
  description=DIAMETER SIGN,
  direction=on,
  linebreak=al,
  mathspec={
   { class=ord, name=varnothing },
   { class=ord, name=diameter },
  },
  unicodeslot=0x2300,
 },


Aditya___
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
___

Re: [NTG-context] diameter symbol in ConTeXt?

2013-09-21 Thread Wolfgang Schuster

Am 21.09.2013 um 18:25 schrieb Marco Patzer li...@homerow.info:

 On 2013–09–21 Xan wrote:
 
 On 2013–09–21 Xan wrote:
 
 \diameter produces a diameter symbol. What is the equivalent in ConTeXt?
 
  ⌀ or \varnothing
 
 
 Really varnothing is not the same as diameter (see the reference of LaTeX I 
 posted before)
 
  \def\diameter{\char2300}


Add a space or \relax after the number to prevent TeX from reading the next 
character
in the input which can result in the wrong output (see output for \one).

\defineexpandable\one  {\char41}
\defineexpandable\two  {\char41 }
\defineexpandable\three{\char41\relax}
\defineexpandable\four {\utfchar{41}}

\setupbodyfont[cambria]

\starttext
1: \one   3\par
2: \two   3\par
3: \three 3\par
4: \four  3
\stoptext

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
___

Re: [NTG-context] diameter symbol in ConTeXt?

2013-09-21 Thread Hans Hagen

On 9/21/2013 5:14 PM, Marco Patzer wrote:

On 2013–09–21 Xan wrote:


\diameter produces a diameter symbol. What is the equivalent in ConTeXt?


   ⌀ or \varnothing

Have a look at char-def.lua for a list of context names for various
glyphs. It might make sense to enable the fonts.missing tracker.
Then ConTeXt warns you that a particular glyph is not available.

   \enabletrackers [fonts.missing]


Is there any compilation of symbols avaliable in ConTeXt?


there are several styles for that: s-math-* for either single fonts or 
comparing font coverage


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
___