On Sat, 8 Jan 2011, Khaled Hosny wrote:

On Sat, Jan 08, 2011 at 12:52:38PM -0500, Aditya Mahajan wrote:
On Sat, 8 Jan 2011, Daniel Schopper wrote:

Hi,
are the delimiters \lgroup and \rgroup supported in MkIV?
This

\starttext
$$\bigg\lgroup\dots\bigg\rgroup$$
\stoptext

is ok in MkII (ConTeXt ver: 2011.01.06) but when compiled with
MkIV (ConTeXt ver: 2010.07.30 11:35 and ver: 2010.07.30 11:35) the
delimiters are not shown. (By the way, the same holds true for
\rmoustache and \lmoustache.)

Am I missing something?

No. The math mappings of virtual fonts are incomplete. The symbols
should work correctly with unicode math fonts like cambria, asana,
and xits. But, it appears that lgroup and rgroup are missing from
xits (Khaled?)

There are, but context is looking for the wring character; it is looking
for U+3014 (which I think is a CJK bracket and does not look like
\lgroup either) while it should be looking for U+27EE (whose Unicode
annotation precisely says "lgroup"):

\setupbodyfont[xits]
\starttext
$$\bigg\lgroup\dots\bigg\rgroup$$
\def\lgroup{\Udelimiter "4 "0 "27EE}
\def\rgroup{\Udelimiter "4 "0 "27EF}
$$\bigg\lgroup\dots\bigg\rgroup$$
\stoptext

It was not extensible though, the version in git now grow, but starts
with a relatively large size, check and tell me if it should be smaller.

Looks OK to me, but I am not really an expert on the shapes of the symbols. Can you also make lmoustache and rmoustache extensible?

Hans, I am attaching the patch for char-def.lua that corrects the location of lgroup and rgroup. I still do not know how to fix this for lm virtual math font.

Aditya
diff --git a/char-def.lua b/char-def.lua
index c496b4a..515f932 100644
--- a/char-def.lua
+++ b/char-def.lua
@@ -63379,6 +63379,46 @@ characters.data={
   mirror=0x27EA,
   unicodeslot=0x27EB,
  },
+ [0x27EC]={
+  category="ps",
+  cjkwd="na",
+  description="MATHEMATICAL LEFT WHITE TORTOISE SHELL BRACKET",
+  direction="on",
+  linebreak="op",
+  mirror=0x27ED,
+  unicodeslot=0x27EC,
+ },
+ [0x27ED]={
+  category="pe",
+  cjkwd="na",
+  description="MATHEMATICAL RIGHT WHITE TORTOISE SHELL BRACKET",
+  direction="on",
+  linebreak="cl",
+  mirror=0x27EC,
+  unicodeslot=0x27ED,
+ },
+ [0x27EE]={
+  category="ps",
+  cjkwd="na",
+  description="MATHEMATICAL LEFT FLATTENED PARENTHESIS",
+  direction="on",
+  linebreak="op",
+  mathclass="open",
+  mathname="lgroup",
+  mirror=0x27EF,
+  unicodeslot=0x27EE,
+ },
+ [0x27EF]={
+  category="pe",
+  cjkwd="na",
+  description="MATHEMATICAL RIGHT FLATTENED PARENTHESIS",
+  direction="on",
+  linebreak="cl",
+  mathclass="close",
+  mathname="rgroup",
+  mirror=0x27EE,
+  unicodeslot=0x27EF,
+ },
  [0x27F0]={
   category="sm",
   description="UPWARDS QUADRUPLE ARROW",
@@ -75694,8 +75734,6 @@ characters.data={
   direction="on",
   linebreak="op",
   mirror=0x3015,
-  mathclass="open",
-  mathname="lgroup",
   unicodeslot=0x3014,
  },
  [0x3015]={
@@ -75705,8 +75743,6 @@ characters.data={
   direction="on",
   linebreak="cl",
   mirror=0x3014,
-  mathclass="close",
-  mathname="rgroup",
   unicodeslot=0x3015,
  },
  [0x3016]={
___________________________________________________________________________________
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
___________________________________________________________________________________

Reply via email to