From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/38581 Path: news.gmane.org!not-for-mail From: "luigi scarso" Newsgroups: gmane.comp.tex.context Subject: Re: Unicode.otf Date: Fri, 11 Jan 2008 18:46:45 +0100 Message-ID: References: <20080111040350.GB21098@phare.normalesup.org> <20080111152246.GC21098@phare.normalesup.org> <47878B66.8020400@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1200073681 6217 80.91.229.12 (11 Jan 2008 17:48:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 11 Jan 2008 17:48:01 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Fri Jan 11 18:48:21 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 1JDNzQ-0002Tl-HS for gctc-ntg-context-518@m.gmane.org; Fri, 11 Jan 2008 18:48:20 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 83FF61FCA2; Fri, 11 Jan 2008 18:47:56 +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 14941-02; Fri, 11 Jan 2008 18:47:19 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id CB9E71FC71; Fri, 11 Jan 2008 18:47:19 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 9E0AD1FC71 for ; Fri, 11 Jan 2008 18:47:18 +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 00660-03-3 for ; Fri, 11 Jan 2008 18:46:47 +0100 (CET) Original-Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.178]) by ronja.ntg.nl (Postfix) with ESMTP id 07B9C1FC6A for ; Fri, 11 Jan 2008 18:46:46 +0100 (CET) Original-Received: by py-out-1112.google.com with SMTP id p76so1549115pyb.5 for ; Fri, 11 Jan 2008 09:46:45 -0800 (PST) Original-Received: by 10.65.23.7 with SMTP id a7mr7572271qbj.20.1200073605131; Fri, 11 Jan 2008 09:46:45 -0800 (PST) Original-Received: by 10.65.23.13 with HTTP; Fri, 11 Jan 2008 09:46:45 -0800 (PST) In-Reply-To: <47878B66.8020400@wxs.nl> Content-Disposition: inline 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:38581 Archived-At: On Jan 11, 2008 4:29 PM, Hans Hagen wrote: > Arthur Reutenauer wrote: > >> Is there another solution other than fontforge ? > > > > Sure, just rename the font to Unicode.ttf. And the problem should be > > fixed now, so try the next beta with the original name as well. > > > >> I mean using by using characters.data in char-def.lua: > >> > >> [0x25C9] = { unicodeslot=0x25C9, category='so', description='FISHEYE' }, > >> > >> it should be easy with a bit \ctxlua get glyph by description . > > > > I guess you're better off preparing the inverse mapping and storing it > > in advance, otherwise you would be losing a lot of time because you > > would have to loop over characters.data to find the character you want. > > already taken care of ... > > characters.context.unicodes > characters.context.utfcodes > characters.context.enccodes > > are references to the big table (there are more tables) I think something like this -- begin -- save this in symbols.lua Symbols={['BOX DRAWINGS LIGHT HORIZONTAL'] = 9472, ['BOX DRAWINGS HEAVY HORIZONTAL'] = 9473, ['BOX DRAWINGS LIGHT VERTICAL'] = 9474, ['BOX DRAWINGS HEAVY VERTICAL'] = 9475, ['BOX DRAWINGS LIGHT TRIPLE DASH HORIZONTAL'] = 9476, ['BOX DRAWINGS HEAVY TRIPLE DASH HORIZONTAL'] = 9477, ['BOX DRAWINGS LIGHT TRIPLE DASH VERTICAL'] = 9478, ['BOX DRAWINGS HEAVY TRIPLE DASH VERTICAL'] = 9479, ['BOX DRAWINGS LIGHT QUADRUPLE DASH HORIZONTAL'] = 9480, ['BOX DRAWINGS HEAVY QUADRUPLE DASH HORIZONTAL'] = 9481, ['BOX DRAWINGS LIGHT QUADRUPLE DASH VERTICAL'] = 9482, ['BOX DRAWINGS HEAVY QUADRUPLE DASH VERTICAL'] = 9483, ['BOX DRAWINGS LIGHT DOWN AND RIGHT'] = 9484, ['BOX DRAWINGS DOWN LIGHT AND RIGHT HEAVY'] = 9485, ['BOX DRAWINGS DOWN HEAVY AND RIGHT LIGHT'] = 9486, ['BOX DRAWINGS HEAVY DOWN AND RIGHT'] = 9487, ['BOX DRAWINGS LIGHT DOWN AND LEFT'] = 9488, ['BOX DRAWINGS DOWN LIGHT AND LEFT HEAVY'] = 9489, ['BOX DRAWINGS DOWN HEAVY AND LEFT LIGHT'] = 9490, ['BOX DRAWINGS HEAVY DOWN AND LEFT'] = 9491, ['BOX DRAWINGS LIGHT UP AND RIGHT'] = 9492, ['BOX DRAWINGS UP LIGHT AND RIGHT HEAVY'] = 9493, ['BOX DRAWINGS UP HEAVY AND RIGHT LIGHT'] = 9494, ['BOX DRAWINGS HEAVY UP AND RIGHT'] = 9495, ['BOX DRAWINGS LIGHT UP AND LEFT'] = 9496, ['BOX DRAWINGS UP LIGHT AND LEFT HEAVY'] = 9497, ['BOX DRAWINGS UP HEAVY AND LEFT LIGHT'] = 9498, ['BOX DRAWINGS HEAVY UP AND LEFT'] = 9499, ['BOX DRAWINGS LIGHT VERTICAL AND RIGHT'] = 9500, ['BOX DRAWINGS VERTICAL LIGHT AND RIGHT HEAVY'] = 9501, ['BOX DRAWINGS UP HEAVY AND RIGHT DOWN LIGHT'] = 9502, ['BOX DRAWINGS DOWN HEAVY AND RIGHT UP LIGHT'] = 9503, ['BOX DRAWINGS VERTICAL HEAVY AND RIGHT LIGHT'] = 9504, ['BOX DRAWINGS DOWN LIGHT AND RIGHT UP HEAVY'] = 9505, ['BOX DRAWINGS UP LIGHT AND RIGHT DOWN HEAVY'] = 9506, ['BOX DRAWINGS HEAVY VERTICAL AND RIGHT'] = 9507, ['BOX DRAWINGS LIGHT VERTICAL AND LEFT'] = 9508, ['BOX DRAWINGS VERTICAL LIGHT AND LEFT HEAVY'] = 9509, ['BOX DRAWINGS UP HEAVY AND LEFT DOWN LIGHT'] = 9510, ['BOX DRAWINGS DOWN HEAVY AND LEFT UP LIGHT'] = 9511, ['BOX DRAWINGS VERTICAL HEAVY AND LEFT LIGHT'] = 9512, ['BOX DRAWINGS DOWN LIGHT AND LEFT UP HEAVY'] = 9513} --end %%%% save this in t.tex %% UnicodeSymbols was made by saving Unicode.otf with fontforge \ctxluafileload{symbols.lua}{} \definefont[WhatEver][UnicodeSymbols at 100pt] \starttext {\WhatEver\unicodechar{\ctxlua{tex.sprint(Symbols['BOX DRAWINGS UP LIGHT AND LEFT HEAVY'])}}} \stoptext The idea is to use a normative name (Am I wrong if I said that 'BOX DRAWINGS UP LIGHT AND LEFT HEAVY' is normative ?) -- luigi it's new . it's powerful . it's luatex . http://www.luatex.org ___________________________________________________________________________________ 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 ___________________________________________________________________________________