From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/25361 Path: news.gmane.org!not-for-mail From: sjoerd siebinga Newsgroups: gmane.comp.tex.context Subject: Re: \uchar and italics question Date: Thu, 19 Jan 2006 08:21:34 +0100 Message-ID: <38818B77-53E9-4526-8D24-8759360B515D@zonnet.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> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v746.2) Content-Type: multipart/mixed; boundary="===============0928643882==" X-Trace: sea.gmane.org 1137655276 19368 80.91.229.2 (19 Jan 2006 07:21:16 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 19 Jan 2006 07:21:16 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Thu Jan 19 08:21:10 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 1EzU6X-0003CQ-Pg for gctc-ntg-context-518@m.gmane.org; Thu, 19 Jan 2006 08:21:09 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E342A127E0; Thu, 19 Jan 2006 08:21:08 +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 17578-03; Thu, 19 Jan 2006 08:21:05 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B749B127D0; Thu, 19 Jan 2006 08:21:05 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2A87E127D0 for ; Thu, 19 Jan 2006 08:21:04 +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 17530-03 for ; Thu, 19 Jan 2006 08:21:03 +0100 (CET) Original-Received: from ibook-G4-2.local (trix.inl.nl [132.229.188.37]) by ronja.ntg.nl (Postfix) with SMTP id 09776127CE for ; Thu, 19 Jan 2006 08:21:02 +0100 (CET) Original-Received: from [127.0.0.1] (localhost [127.0.0.1]) by ibook-G4-2.local (Postfix) with ESMTP id 6314E8EF1D for ; Thu, 19 Jan 2006 08:21:36 +0100 (CET) In-Reply-To: <43CECEBD.7030404@wxs.nl> Original-To: mailing list for ConTeXt users X-Mailer: Apple Mail (2.746.2) 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:25361 Archived-At: --===============0928643882== Content-Type: multipart/alternative; boundary=Apple-Mail-23-434304417 --Apple-Mail-23-434304417 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Hi Hans, On 19 Jan 2006, at 00:26, Hans Hagen wrote: > did you try: > > \defineunicodefont [MySwitch] [MyOwnFont] % [command= > \insertunicodeglyph] > > \definefontsynonym [MyOwnFontRegular] [Sans] > \definefontsynonym [MyOwnFontItalic] [SansItalic] > > \MySwitch \uchar... \it ... Yes, but still no bold or italics. Maybe there is something wrong with my definitions. [code] \defineunicodefont [MySwitch] [mylinostar] % [command= \insertunicodeglyph] \loadmapfile[palatinolinostar_01xx-starling-linostar] \definefontsynonym [mylinostarRegular01] [palatinolinostar_01xx- PalatinoLinoStar] \definefontsynonym [mylinostarBold01] [palatinolinostar_01xx- PalatinoLinoStarBold] \definefontsynonym [mylinostarItalic01] [palatinolinostar_01xx- PalatinoLinoStarItalic] \starttext {\MySwitch \uchar{1}{1}} \\ {\MySwitch \it \uchar{1}{1}} \\ {\MySwitch \bf \uchar{1}{1}} \\ \stoptext [/code] I have installed the font without errors with TeXfont. > > The uchar command is a wrapper around a handler; currently only > chinese and japanese handlers are defined, and you need a defaultcase. What do you mean by defaultcase? > > (btw this mechanism is rather complex because it needs to handle > (1) fake unicode, i.e. you can define remappers, (2) unicode, (3) > utf as input encoding, (4) special handlers, (5) ..... ) Even i get > lost in the code -) I see what you mean. The font-uni.tex is an impressive piece of coding. Sjoerd --Apple-Mail-23-434304417 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=ISO-8859-1
Hi=A0 = Hans,

On 19 Jan 2006, at 00:26, Hans Hagen = wrote:

did you = try:


\defineunicodefont [MySwitch] [MyOwnFont] % = [command=3D\insertunicodeglyph]


=

\definefontsynonym = [MyOwnFontRegular] [Sans]

\definefontsynonym [MyOwnFontItalic] [SansItalic]

=


\MySwitch \uchar... \it ...


Yes, but still no bold or = italics. Maybe there is something wrong with my = definitions.

[code]
\defineunicodefont = [MySwitch] [mylinostar] % [command=3D\insertunicodeglyph]

\loadmapfile[palatinolinostar= _01xx-starling-linostar]
\definefontsynonym = [mylinostarRegular01] = [palatinolinostar_01xx-PalatinoLinoStar]
\definefontsynonym = [mylinostarBold01] = [palatinolinostar_01xx-PalatinoLinoStarBold]
\definefontsynonym = [mylinostarItalic01] = [palatinolinostar_01xx-PalatinoLinoStarItalic]

\starttext
{\MySwit= ch \uchar{1}{1}} \\=A0
{\MySwitch \it \uchar{1}{1}} \\ =
{\MySwitch \bf \uchar{1}{1}}=A0 \\

\stoptext

[/code]

I have installed the font = without errors with TeXfont.=A0


The uchar command is a wrapper around a handler; currently = only chinese and japanese handlers are defined, and you need a = defaultcase.


What do you mean by = defaultcase?=A0


=

(btw this mechanism is = rather complex because it needs to handle (1) fake unicode, i.e. you can = define remappers, (2) unicode, (3) utf as input encoding, (4) special = handlers, (5) ..... ) Even i get lost in the code -)

=

I see what you mean. The=A0font-uni.tex is = an impressive piece of coding.

Sjoerd
= --Apple-Mail-23-434304417-- --===============0928643882== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context --===============0928643882==--