From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/16879 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: [dev-context] Re: Bug in math accents (analyzed) Date: Mon, 01 Nov 2004 16:59:13 +0100 Message-ID: <41865D51.803@wxs.nl> References: <16720.22133.473936.610814@danton-imw.uni-bielefeld.de> <4180D4A6.8070305@wxs.nl> <20041028190105.07c7a5a1.taco@elvenkind.com> <418655A4.9060105@elvenkind.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1099324981 446 80.91.229.6 (1 Nov 2004 16:03:01 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 1 Nov 2004 16:03:01 +0000 (UTC) Cc: dev-context@ntg.nl, mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Nov 01 17:02:40 2004 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1COedk-0001UO-00 for ; Mon, 01 Nov 2004 17:02:40 +0100 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 260A112780; Mon, 1 Nov 2004 17:02:40 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 12417-02; Mon, 1 Nov 2004 17:02:39 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 88E6B127A2; Mon, 1 Nov 2004 16:59:12 +0100 (CET) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 7F5D912792; Mon, 1 Nov 2004 16:59:10 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 12312-02; Mon, 1 Nov 2004 16:59:09 +0100 (CET) Original-Received: from mailrelay02.solcon.nl (unknown [212.45.32.200]) by ronja.ntg.nl (Postfix) with ESMTP id E0B2112780; Mon, 1 Nov 2004 16:59:09 +0100 (CET) Original-Received: from server-1.pragma-net.nl (dsl-212-84-128-085.solcon.nl [212.84.128.85]) by mailrelay02.solcon.nl (8.12.11/SQL-8.12.11-5/8.12.11) with ESMTP id iA1Fx1Dj014522; Mon, 1 Nov 2004 16:59:02 +0100 Original-Received: by server-1.pragma-net.nl (Postfix, from userid 65534) id 0941918A7A; Mon, 1 Nov 2004 16:59:04 +0100 (CET) Original-Received: from [10.100.1.191] (unknown [10.100.1.191]) by server-1.pragma-net.nl (Postfix) with ESMTP id 136A11006; Mon, 1 Nov 2004 15:59:04 +0000 (UTC) User-Agent: Mozilla Thunderbird 0.6 (Windows/20040502) X-Accept-Language: en-us, en Original-To: Taco Hoekwater In-Reply-To: <418655A4.9060105@elvenkind.com> X-Virus-Scanned: ClamAV 0.80/540/Tue Oct 19 14:59:23 2004 clamav-milter version 0.80j on mailrelay02 X-Virus-Status: Clean X-Virus-Scanned: by amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 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 X-Virus-Scanned: by amavisd-new at ntg.nl Xref: main.gmane.org gmane.comp.tex.context:16879 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:16879 Taco has found the reason why \mathaccents may get dislocated in slanted or italic fonts > The problem is that your code does not set \skewchar for the \scriptfont > and \scriptscriptfont of the relevant math families. You need to make sure > you set all three of \textfont X, \scriptfont X and \scriptscriptfont X. > > This requires some minor rewriting of a few macros in font-ini.tex. > I could do that for you, but my coding style is not even remotely > similar to yours so I wager you'd rather do it yourself. ;-) > font-ini needs the following patch \appendtoks \dosetmathfamily\mrfam\textface\scriptface\scriptscriptface\c!mr\mrfallback \dosetmathfamily\mifam\textface\scriptface\scriptscriptface\c!mi\empty \dosetmathfamily\syfam\textface\scriptface\scriptscriptface\c!sy\empty \dosetmathfamily\exfam\textface\textface \textface \c!ex\empty \dosetmathfamily\mafam\textface\scriptface\scriptscriptface\c!ma\empty \dosetmathfamily\mbfam\textface\scriptface\scriptscriptface\c!mb\empty \dosetmathfamily\mcfam\textface\scriptface\scriptscriptface\c!mc\empty \dosetmathfamily\nnfam\textface\scriptface\scriptscriptface\c!nn\empty \to \mathstrategies \appendtoks \dosetskewchar\mifam\defaultskewcharmi % implemented later on \dosetskewchar\syfam\defaultskewcharsy % implemented later on \to \mathstrategies \def\dosetskewchar#1#2% {\ifx\@@fontskewchar\empty \skewchar\textfont #1#2% \skewchar\scriptfont #1#2% \skewchar\scriptscriptfont#1#2% \else \skewchar\textfont #1\@@fontskewchar \skewchar\scriptfont #1\@@fontskewchar \skewchar\scriptscriptfont#1\@@fontskewchar \fi} i'll patch the distribution Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------