ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Question about spacing of some math symbols
@ 2012-02-23 20:12 Khaled Hosny
  2012-02-23 20:16 ` Aditya Mahajan
  2012-02-25 12:18 ` Otared Kavian
  0 siblings, 2 replies; 6+ messages in thread
From: Khaled Hosny @ 2012-02-23 20:12 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: text/plain, Size: 436 bytes --]

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

[-- Attachment #2: test.tex --]
[-- Type: text/x-tex, Size: 136 bytes --]

\setupbodyfont[xits]

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

[-- Attachment #3: test.pdf --]
[-- Type: application/pdf, Size: 6458 bytes --]

[-- Attachment #4: Type: text/plain, Size: 485 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] 6+ messages in thread

* Re: Question about spacing of some math symbols
  2012-02-23 20:12 Question about spacing of some math symbols Khaled Hosny
@ 2012-02-23 20:16 ` Aditya Mahajan
  2012-02-24  9:19   ` Hans Hagen
  2012-02-25 12:18 ` Otared Kavian
  1 sibling, 1 reply; 6+ messages in thread
From: Aditya Mahajan @ 2012-02-23 20:16 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: TEXT/PLAIN, Size: 615 bytes --]

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

[-- Attachment #2: Type: text/plain, Size: 485 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] 6+ messages in thread

* Re: Question about spacing of some math symbols
  2012-02-23 20:16 ` Aditya Mahajan
@ 2012-02-24  9:19   ` Hans Hagen
  2012-02-25 10:39     ` Khaled Hosny
  2012-02-25 16:29     ` Khaled Hosny
  0 siblings, 2 replies; 6+ messages in thread
From: Hans Hagen @ 2012-02-24  9:19 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Question about spacing of some math symbols
  2012-02-24  9:19   ` Hans Hagen
@ 2012-02-25 10:39     ` Khaled Hosny
  2012-02-25 16:29     ` Khaled Hosny
  1 sibling, 0 replies; 6+ messages in thread
From: Khaled Hosny @ 2012-02-25 10:39 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Question about spacing of some math symbols
  2012-02-23 20:12 Question about spacing of some math symbols Khaled Hosny
  2012-02-23 20:16 ` Aditya Mahajan
@ 2012-02-25 12:18 ` Otared Kavian
  1 sibling, 0 replies; 6+ messages in thread
From: Otared Kavian @ 2012-02-25 12:18 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: text/plain, Size: 887 bytes --]

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

[-- Attachment #2: sample-xits.pdf --]
[-- Type: application/pdf, Size: 9298 bytes --]

[-- Attachment #3: Type: text/plain, Size: 1067 bytes --]


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.tex><test.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
> ___________________________________________________________________________________


[-- Attachment #4: Type: text/plain, Size: 485 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] 6+ messages in thread

* Re: Question about spacing of some math symbols
  2012-02-24  9:19   ` Hans Hagen
  2012-02-25 10:39     ` Khaled Hosny
@ 2012-02-25 16:29     ` Khaled Hosny
  1 sibling, 0 replies; 6+ messages in thread
From: Khaled Hosny @ 2012-02-25 16:29 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-02-25 16:29 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-23 20:12 Question about spacing of some math symbols Khaled Hosny
2012-02-23 20:16 ` Aditya Mahajan
2012-02-24  9:19   ` Hans Hagen
2012-02-25 10:39     ` Khaled Hosny
2012-02-25 16:29     ` Khaled Hosny
2012-02-25 12:18 ` Otared Kavian

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).