From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/60183 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: Wrong upright Greek instead of Italic Date: Thu, 15 Jul 2010 01:08:41 -0400 Message-ID: References: <20100714203305.GA9621@khaled-laptop> <20100714211943.GA10109@khaled-laptop> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0771850828==" X-Trace: dough.gmane.org 1279170548 14756 80.91.229.12 (15 Jul 2010 05:09:08 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 15 Jul 2010 05:09:08 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Jul 15 07:09:06 2010 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OZGgu-0003fY-C0 for gctc-ntg-context-518@m.gmane.org; Thu, 15 Jul 2010 07:09:00 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C2696C9B8C; Thu, 15 Jul 2010 07:08:59 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id wa5V4j32FgCc; Thu, 15 Jul 2010 07:08:57 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id ED13BC9BFF; Thu, 15 Jul 2010 07:08:56 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 395E2C9BFF for ; Thu, 15 Jul 2010 07:08:55 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id SujcdJVIcVHb for ; Thu, 15 Jul 2010 07:08:43 +0200 (CEST) Original-Received: from mail-iw0-f169.google.com (mail-iw0-f169.google.com [209.85.214.169]) by balder.ntg.nl (Postfix) with ESMTP id 4A672C9B8C for ; Thu, 15 Jul 2010 07:08:42 +0200 (CEST) Original-Received: by iwn2 with SMTP id 2so713865iwn.14 for ; Wed, 14 Jul 2010 22:08:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:content-type; bh=piipAwKUQk4kb5kQ6D2jkhjxy1IPsbXmkQdtKN7kXRo=; b=Tv8akglu1S/085mrRA4W9R7g7613wjcPVcig6SGL88Lw1W/2k/xrRroZWf9vtcEQDV OuBcfnDEhpHZDiBJoZDgltiWoUJ0A8TlWGIW2swNVvA8UGhrRLDgwDUchPL449ySeKgm rYkFGe2WKlR1K6b3TRxJ/LJ0AAHdmfIvdc5/E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; b=XHamroyt479LLiZA4XsGauNR8AqxuX+3bqK4FcSSV4dXdlYADFuLf8mRPwQ0eYs1hQ HeNrNWvbBHV5iBASQNdFABqz4zhebkNb97VL6UZW6hEqnoKKTXzX3d8g4o0oPsTKWFIy bZYn8CeJcXAmeCs6pxHjj7gLGF1YD4MfpWpng= Original-Received: by 10.231.31.200 with SMTP id z8mr19439410ibc.90.1279170521855; Wed, 14 Jul 2010 22:08:41 -0700 (PDT) Original-Received: by 10.231.79.77 with HTTP; Wed, 14 Jul 2010 22:08:41 -0700 (PDT) In-Reply-To: X-Google-Sender-Auth: a44pp27okELS_WPeRe642SuIAqQ X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:60183 Archived-At: --===============0771850828== Content-Type: multipart/alternative; boundary=0022150474378ff898048b6618b3 --0022150474378ff898048b6618b3 Content-Type: text/plain; charset=ISO-8859-7 Content-Transfer-Encoding: quoted-printable On Wed, Jul 14, 2010 at 5:42 PM, Aditya Mahajan wrote: > On Thu, 15 Jul 2010, Khaled Hosny wrote: > > On Wed, Jul 14, 2010 at 05:16:14PM -0400, Aditya Mahajan wrote: >> >>> On Wed, 14 Jul 2010, Khaled Hosny wrote: >>> >>> >This gives me upright Greek, but I was expecting italic: >>> > >>> >\setupbodyfont[xits] >>> >\starttext >>> >$\mathit{=C1=C2=C3=C4=C5=C6=C7=C8=C9=CA=CB=CC=CD=CE=CF=D0=D1=D3=D4=D5= =D6=D7=D8=D9}$ >>> > >>> >$\mathbi{=C1=C2=C3=C4=C5=C6=C7=C8=C9=CA=CB=CC=CD=CE=CF=D0=D1=D3=D4=D5= =D6=D7=D8=D9}$ >>> >\stoptext >>> >>> What happens if you key in the actual unicode values (sorry no >>> ConTeXt right now)? >>> >> >> I get the correct style as typed. >> > > Then this is a bug in the mappings (and I assume that Cambria also does > not work). I will test later. Currently, \mathit does not set the attributes for greek. The italic attributes for greek are set by \mathgreekitalic and \mathgreekupright (but see below). \mathit can also set \mathgreekitalic. But I am not sure if it should. However, there is a bug in \mathgreekupright and \mathgreekialic: they set the wrong numerical values for attributes. The correct definitions are: \unexpanded\def\mathgreekupright{\attribute\mathgreekattribute22 } \unexpanded\def\mathgreekitalic {\attribute\mathgreekattribute33 } and then you can use \mathgreekitalic and \mathgreekitalic\bf instead of \mathit and \mathbi. @Hans, can you correct these definitions in math-ini.mkiv. BTW, I did not know that you could use \setupbodyfont without the \usetypescript line. Aditya --0022150474378ff898048b6618b3 Content-Type: text/html; charset=ISO-8859-7 Content-Transfer-Encoding: quoted-printable On Wed, Jul 14, 2010 at 5:42 PM, Aditya Mahajan <adityam@umich.edu> wrote:
=
On Thu, 15 Jul 2010, Khaled Hosny wrote:

On Wed, Jul 14, 2010 at 05:16:14PM -0400, Aditya Mahajan wrote:
On Wed, 14 Jul 2010, Khaled Hosny wrote:

>This gives me upright Greek, but I was expecting italic:
>
>\setupbodyfont[xits]
>\starttext
>$\mathit{=C1=C2=C3=C4=C5=C6=C7=C8=C9=CA=CB=CC=CD=CE=CF=D0=D1=D3=D4=D5= =D6=D7=D8=D9}$
>
>$\mathbi{=C1=C2=C3=C4=C5=C6=C7=C8=C9=CA=CB=CC=CD=CE=CF=D0=D1=D3=D4=D5= =D6=D7=D8=D9}$
>\stoptext

What happens if you key in the actual unicode values (sorry no
ConTeXt right now)?

I get the correct style as typed.

=A0Then this is a bug in the mappings (and I assume that Cambria = also does not work). I will test later.

Cur= rently, \mathit does not set the attributes for greek. The italic attribute= s for greek are set by \mathgreekitalic and \mathgreekupright (but see belo= w).
\mathit can also set \mathgreekitalic. But I am not sure if it should.= =A0

However, there is a bug in \mathgreekupright a= nd \mathgreekialic: they set the wrong numerical values for attributes. The= correct definitions are:

\unexpanded\def\mathgreekupright{\attribute\mathgreekat= tribute22 }
\unexpanded\def\mathgreekitalic {\attribute\mathgreekattribu= te33 }

and then you can use=A0 \mathgreekitali= c =A0and \mathgreekitalic\bf instead of \mathit and \mathbi.

@Hans, can you correct these definitions in math-ini.mk= iv.

BTW, I did not know that you could use \setupb= odyfont without the \usetypescript line.

Aditya

--0022150474378ff898048b6618b3-- --===============0771850828== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============0771850828==--