From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/25368 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: \uchar and italics question Date: Thu, 19 Jan 2006 10:43:17 +0100 Message-ID: <43CF5F35.2020103@wxs.nl> References: <0CF2F7B4-CF66-4F9C-97BA-C76E727CD56A@zonnet.nl> <6faad9f00601180410x23782c97h70a01b9734d08ce7@mail.gmail.com> <43CE4F18.9070205@wxs.nl> <5F9D5692-2B66-467D-B9D7-A56925B29158@zonnet.nl> <43CECEBD.7030404@wxs.nl> <38818B77-53E9-4526-8D24-8759360B515D@zonnet.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1137663817 11475 80.91.229.2 (19 Jan 2006 09:43:37 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 19 Jan 2006 09:43:37 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Thu Jan 19 10:43:31 2006 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1EzWKD-0002KH-04 for gctc-ntg-context-518@m.gmane.org; Thu, 19 Jan 2006 10:43:26 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A650712820; Thu, 19 Jan 2006 10:43:24 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 19514-04-3; Thu, 19 Jan 2006 10:43:21 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 9C40F12808; Thu, 19 Jan 2006 10:43:21 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E164712808 for ; Thu, 19 Jan 2006 10:43:19 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 19514-04-2 for ; Thu, 19 Jan 2006 10:43:19 +0100 (CET) Original-Received: from mail.pragma-ade.net (dsl-212-84-128-085.solcon.nl [212.84.128.85]) by ronja.ntg.nl (Postfix) with SMTP id EB823127EC for ; Thu, 19 Jan 2006 10:43:18 +0100 (CET) Original-Received: from [10.100.1.102] (unverified [10.100.1.102]) by controller-1 (SurgeMail 3.5b3) with ESMTP id 1484 for ; Thu, 19 Jan 2006 04:54:30 +0300 User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: <38818B77-53E9-4526-8D24-8759360B515D@zonnet.nl> X-Server: High Performance Mail Server - http://surgemail.com r=-274017400 X-Authenticated-User: hagen@controller-1 X-Virus-Scanned: 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: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:25368 Archived-At: sjoerd siebinga wrote: > Hi=EF=BF=BD Hans, > > On 19 Jan 2006, at 00:26, Hans Hagen wrote: > >> did you try: >> >> >> \defineunicodefont [MySwitch] [MyOwnFont] % [command=3D\insertunicodeg= lyph] >> >> >> \definefontsynonym [MyOwnFontRegular] [Sans] >> >> \definefontsynonym [MyOwnFontItalic] [SansItalic] >> >> >> \MySwitch \uchar... \it ... >> > > Yes, but still no bold or italics. Maybe there is something wrong with=20 > my definitions. > > [code] > \defineunicodefont [MySwitch] [mylinostar] % [command=3D\insertunicodeg= lyph] > > \loadmapfile[palatinolinostar_01xx-starling-linostar] > \definefontsynonym [mylinostarRegular01]=20 > [palatinolinostar_01xx-PalatinoLinoStar] > \definefontsynonym [mylinostarBold01]=20 > [palatinolinostar_01xx-PalatinoLinoStarBold] > \definefontsynonym [mylinostarItalic01]=20 > [palatinolinostar_01xx-PalatinoLinoStarItalic] > > \starttext > {\MySwitch \uchar{1}{1}} \\=EF=BF=BD > {\MySwitch \it \uchar{1}{1}} \\ > {\MySwitch \bf \uchar{1}{1}}=EF=BF=BD \\ > > \stoptext > > [/code] > > I have installed the font without errors with TeXfont.=EF=BF=BD can you test with: \unexpanded\def\unicodeglyph#1#2% watch the double mapping {\begingroup \getvalue{@@\currentucharmapping\strippedcsname\uchar}{#1}{#2}% \bodyfontsize\unicodescale\bodyfontsize \font\unicodefont=3D\truefontname{\unicodestyle\unicodeone} at \currentfontscale\bodyfontsize \unicodestrut \unicodefont\unicodecharcommand{\char\unicodetwo\relax}% \endgroup} i'll change the handlers in not applying a strut by default Hans