From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/45733 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Unicode Characters Date: Fri, 21 Nov 2008 00:53:30 +0100 Message-ID: <36D23C3C-7A3D-4D60-813C-4975F9B454A9@gmail.com> References: <5E82F347-152C-4D30-A885-CB0F1D1649D5@gmail.com> <492447AC.6070208@iglide.net> <20081119185235.GZ18156@phare.normalesup.org> <49257155.9060307@iglide.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v929.2) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1227225352 20986 80.91.229.12 (20 Nov 2008 23:55:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 20 Nov 2008 23:55:52 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Nov 21 00:56:52 2008 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 lo.gmane.org with esmtp (Exim 4.50) id 1L3JOG-0001e1-7d for gctc-ntg-context-518@m.gmane.org; Fri, 21 Nov 2008 00:56:52 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6C7CD1FBBA; Fri, 21 Nov 2008 00:55:41 +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 04297-03; Fri, 21 Nov 2008 00:54:17 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id CBBCA1FB6B; Fri, 21 Nov 2008 00:54:16 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 34BB41FB6B for ; Fri, 21 Nov 2008 00:54:15 +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 01992-03-5 for ; Fri, 21 Nov 2008 00:53:38 +0100 (CET) Original-Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.152]) by ronja.ntg.nl (Postfix) with ESMTP id F0B481FADF for ; Fri, 21 Nov 2008 00:53:37 +0100 (CET) Original-Received: by fg-out-1718.google.com with SMTP id l26so526537fgb.8 for ; Thu, 20 Nov 2008 15:53:37 -0800 (PST) Original-Received: by 10.86.86.12 with SMTP id j12mr1956755fgb.64.1227225217688; Thu, 20 Nov 2008 15:53:37 -0800 (PST) Original-Received: from ?10.40.150.104? (8.121.113.82.net.de.o2.com [82.113.121.8]) by mx.google.com with ESMTPS id 4sm2997674fgg.4.2008.11.20.15.53.35 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 20 Nov 2008 15:53:36 -0800 (PST) In-Reply-To: <49257155.9060307@iglide.net> X-Mailer: Apple Mail (2.929.2) X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 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:45733 Archived-At: Am 20.11.2008 um 15:16 schrieb Erich R Fickel: >> This is one of the famous Zapf dingbats, available in dedicated >> fonts; >> you don't really need Unicode fonts in order to typeset it. >> Try the instructions by Adam Lindsay >> >> http://web.archive.org/web/20061130021250/homepage.mac.com/atl/tex/ZapfDingbats.pdf) > > Thank you for the very quick answer. I read Mr. Lindsay's instruction. > It worked, and quite easily. I also tried to just use the character in > mkiv. That didn't work. However, in mkii, I tried the following: > > \usesymbols[uzd] > \definecharacter crosssign {\uchar{39}{29}} > \starttext > > Here is the \crosssign\ in a sentence. > > \stoptext > > That worked too, and seems easier. > > I would like to figure it out it mkiv as well. I type the character in > VIM, but it showed up as a space in the PDF. \def\crosssign{\utfchar{"271D}} You need only a font the symbol, if you have one there are different ways to use it. The simple solution: \definefont[unicode][name:unicodesymbols*default] \def\crosssign{\utfchar{"271D}} \starttext text {\unicode\crosssign} text \stoptext You can also include the font in the defintion of \crosssign. The advanced solution: \def\crosssign{\utfchar{"271D}} \definefontsynonym[UnicodeSymbols][name:unicodesymbols*default] \definefontfallback[symbols][UnicodeSymbols][dingbats] \starttypescript [serif] [mine] \definefontsynonym [Serif] [TeXGyrePagella-Regular] [fallbacks=symbols] \stoptypescript \definetypeface [mine] [rm] [serif] [mine] [default] \setupbodyfont[mine] \starttext text \crosssign\ text \stoptext You need a few more lines for the setup because you need a new typescript. Wolfgang ___________________________________________________________________________________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________