Re: [dev-context] mathpairs

2017-08-06 Thread Aditya Mahajan

Hi,

I tested with the latest beta and everything works well.

Can you also add a virtual character for --. Then I can add the mappings 
for


-->, <--.

Others that can be mapped are

::, ::=, -:

for which I am attaching a patch file.

Aditya--- char-def.lua	2017-08-06 17:36:02.0 -0400
+++ /opt/context-minimals/tex/texmf-context/tex/context/base/mkiv/char-def.lua	2017-08-06 17:44:52.0 -0400
@@ -64474,6 +64474,7 @@
   description="PROPORTION",
   direction="on",
   linebreak="ai",
+  mathpair={ 0x3A, 0x3A },
   mathclass="relation",
   mathname="squaredots",
   unicodeslot=0x2237,
@@ -64494,6 +64495,7 @@
   direction="on",
   linebreak="al",
   mathclass="relation",
+  mathpair={ 0x2212, 0x3A },
   mathname="minuscolon",
   unicodeslot=0x2239,
  },
@@ -81323,6 +81325,7 @@
   direction="on",
   linebreak="al",
   mathclass="relation",
+  mathpair={ 0x2237, 0x2D },
   mathname="coloncolonequals",
   specials={ "compat", 0x3A, 0x3A, 0x3D },
   unicodeslot=0x2A74,


test.pdf
Description: Adobe PDF document


test.tex
Description: TeX document
___
dev-context mailing list
dev-context@ntg.nl
https://mailman.ntg.nl/mailman/listinfo/dev-context


Re: [dev-context] mathpairs

2017-08-06 Thread Aditya Mahajan

On Sun, 6 Aug 2017, Hans Hagen wrote:


On 8/5/2017 6:53 AM, Aditya Mahajan wrote:

On Sat, 5 Aug 2017, Aditya Mahajan wrote:


:=  \colonequals
=:  \equalscolon


BTW, should we remove the definitions of \colonequals, \equalcolons, and 
\minuscolon from math-def.mkiv?

i'll comment them ... how about the others ..


Thanks.

\coloncolonequals can also be commented (it is 0x2A74). We can also 
create a mathpair for this.


* :: (0x3A, 0x3A) -> 0x2237
* ::- (0x2237, 0x2D) -> 0x2A74.

i can make them into virtual characters if needed .. or do they need to 
be added to unicode (given that we have proof of usage, in that case we 
can ask barbara)


I don't see the usage of other \colon... symbols (at least in my sub-field 
of mathematics). For consistency with others, we can convert them into 
virtual characters.


Aditya
___
dev-context mailing list
dev-context@ntg.nl
https://mailman.ntg.nl/mailman/listinfo/dev-context


Re: [dev-context] mathpairs

2017-08-06 Thread Hans Hagen

On 8/5/2017 6:53 AM, Aditya Mahajan wrote:

On Sat, 5 Aug 2017, Aditya Mahajan wrote:


:=  \colonequals
=:  \equalscolon


BTW, should we remove the definitions of \colonequals, \equalcolons, and 
\minuscolon from math-def.mkiv?
i'll comment them ... how about the others .. i can make them into 
virtual characters if needed .. or do they need to be added to unicode 
(given that we have proof of usage, in that case we can ask barbara)


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
dev-context mailing list
dev-context@ntg.nl
https://mailman.ntg.nl/mailman/listinfo/dev-context


Re: [dev-context] mathpairs

2017-08-04 Thread Aditya Mahajan

On Sat, 5 Aug 2017, Aditya Mahajan wrote:


:=  \colonequals
=:  \equalscolon


BTW, should we remove the definitions of \colonequals, \equalcolons, and 
\minuscolon from math-def.mkiv?


Aditya
___
dev-context mailing list
dev-context@ntg.nl
https://mailman.ntg.nl/mailman/listinfo/dev-context