[NTG-context] \lgroup in mkIV

Aditya Mahajan adityam at umich.edu
Sun Jan 9 04:24:01 CET 2011


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
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: char-def.diff
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20110108/c190a4cc/attachment-0001.ksh>


More information about the ntg-context mailing list