Re: [NTG-context] Question about spacing of some math symbols

2012-02-25 Thread Khaled Hosny
On Fri, Feb 24, 2012 at 10:19:20AM +0100, Hans Hagen wrote:
 On 23-2-2012 21:16, Aditya Mahajan wrote:
 On Thu, 23 Feb 2012, Khaled Hosny wrote:
 
 Hi all,
 
 While testing some XITS symbols, I was wondering about the spacing of
 the following symbols:
 
 \setupbodyfont[xits]
 
 \starttext
 $$a  b$$ # reference
 $$a ⨼ b$$
 $$a ⨽ b$$
 $$a ⪝ b$$
 $$a ⪞ b$$
 $$a ⪬ b$$
 $$a ⪭ b$$
 \stoptext
 
 Not sure about the first two, but I think the rest should be mathrel
 
 I agree.
 
 (additionally, does anyone knows a definite Unicode reference for such
 proprieties?)
 
 I usually use the ams symbol list (as implemented by the unicode-math
 package) as reference.
 
 When (years ago) I wrote the math ml parsers I used those
 xits/ams/whatever lists but they had inconsistencies (no surprise as
 there are so many smbols) .. so whatever change we do, I'd rather
 not copy blindly but consider carefully; some symbols have multiple
 usage and we can support that. Now, as long as we use names that's
 no big deal, but when characters are used directly there can be
 conflicting interests with respect to defaults. For that I'd like to
 introduce the option to set a 'domain' or whatever it's called which
 will adapt the spacing category automatically
 
 btw ... did you ever look at:
 
 http://www.openmath.org/cdnames.html

I'll leave that to Aditya; the math expert :)

Regards,
 Khaled
___
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] Question about spacing of some math symbols

2012-02-25 Thread Otared Kavian
Hi Khaled,

As far as I know, the signs 
less than: 
greater than: 
similar or less than: ⪝
similar or greater than: ⪞
less than or equal: ⪬
greater or equal: ⪭
(and there are othersigns of the same category)
should be treated in the same way, as with = or \equiv, since they are 
mathematical relations. On the other hand
interior product: ⨼
right hand interior product: ⨽
should be treated as +, \times, or \wedge, since they are binary operations.

Best regards: OK
%%% sample-xits.tex
\setupbodyfont[xits]

\starttext

These signs should have exactly the same spacing around them:
$$a = b$$
$$a \equiv b$$
$$a  b$$
$$a ⪝ b$$
$$a ⪞ b$$
$$a ⪬ b$$
$$a ⪭ b$$
These signs should have exactly the same spacing around them:
$$a ⨼ b$$
$$a ⨽ b$$
$$a \wedge b$$
$$a \times b$$
$$a + b$$
\stoptext
%%% end sample-xits.tex


sample-xits.pdf
Description: Adobe PDF document

On 23 févr. 2012, at 21:12, Khaled Hosny wrote:

 Hi all,
 
 While testing some XITS symbols, I was wondering about the spacing of
 the following symbols:
 
 \setupbodyfont[xits]
 
 \starttext
 $$a  b$$ # reference
 $$a ⨼ b$$
 $$a ⨽ b$$
 $$a ⪝ b$$
 $$a ⪞ b$$
 $$a ⪬ b$$
 $$a ⪭ b$$
 \stoptext
 
 Not sure about the first two, but I think the rest should be mathrel
 (additionally, does anyone knows a definite Unicode reference for such
 proprieties?)
 
 Regards,
 Khaled
 test.textest.pdf___
 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
 ___

___
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] Question about spacing of some math symbols

2012-02-25 Thread Khaled Hosny
On Fri, Feb 24, 2012 at 10:19:20AM +0100, Hans Hagen wrote:
 some symbols have multiple usage and we can support that.

BTW, what can always use \mathbin{}, \mathrel{} etc. to override the
default spacing if needed, so we should just choose a sensible default.

Regards,
 Khaled
___
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] Question about spacing of some math symbols

2012-02-24 Thread Hans Hagen

On 23-2-2012 21:16, Aditya Mahajan wrote:

On Thu, 23 Feb 2012, Khaled Hosny wrote:


Hi all,

While testing some XITS symbols, I was wondering about the spacing of
the following symbols:

\setupbodyfont[xits]

\starttext
$$a  b$$ # reference
$$a ⨼ b$$
$$a ⨽ b$$
$$a ⪝ b$$
$$a ⪞ b$$
$$a ⪬ b$$
$$a ⪭ b$$
\stoptext

Not sure about the first two, but I think the rest should be mathrel


I agree.


(additionally, does anyone knows a definite Unicode reference for such
proprieties?)


I usually use the ams symbol list (as implemented by the unicode-math
package) as reference.


When (years ago) I wrote the math ml parsers I used those 
xits/ams/whatever lists but they had inconsistencies (no surprise as 
there are so many smbols) .. so whatever change we do, I'd rather not 
copy blindly but consider carefully; some symbols have multiple usage 
and we can support that. Now, as long as we use names that's no big 
deal, but when characters are used directly there can be conflicting 
interests with respect to defaults. For that I'd like to introduce the 
option to set a 'domain' or whatever it's called which will adapt the 
spacing category automatically


btw ... did you ever look at:

http://www.openmath.org/cdnames.html


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

Re: [NTG-context] Question about spacing of some math symbols

2012-02-23 Thread Aditya Mahajan

On Thu, 23 Feb 2012, Khaled Hosny wrote:


Hi all,

While testing some XITS symbols, I was wondering about the spacing of
the following symbols:

\setupbodyfont[xits]

\starttext
$$a  b$$ # reference
$$a ⨼ b$$
$$a ⨽ b$$
$$a ⪝ b$$
$$a ⪞ b$$
$$a ⪬ b$$
$$a ⪭ b$$
\stoptext

Not sure about the first two, but I think the rest should be mathrel


I agree.


(additionally, does anyone knows a definite Unicode reference for such
proprieties?)


I usually use the ams symbol list (as implemented by the unicode-math 
package) as reference.


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
___