From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/63039 Path: news.gmane.org!not-for-mail From: Khaled Hosny Newsgroups: gmane.comp.tex.context Subject: Re: manipulate ttf-fonts loaded with luatex Date: Thu, 28 Oct 2010 17:59:59 +0200 Message-ID: <20101028155959.GA6201@khaled-laptop> References: <4CC96D7F.8040309@wxs.nl> <1xbfw9v6ufmj3.dlg@nililand.de> <4CC975B9.9050100@elvenkind.com> <20101028133259.GA5857@khaled-laptop> <4CC98FD6.2010100@wxs.nl> <4CC99B3C.9070709@elvenkind.com> 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: dough.gmane.org 1288281622 12965 80.91.229.12 (28 Oct 2010 16:00:22 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 28 Oct 2010 16:00:22 +0000 (UTC) Cc: Hans Hagen , news3@nililand.de To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Oct 28 18:00:19 2010 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PBUth-0003jT-Us for gctc-ntg-context-518@m.gmane.org; Thu, 28 Oct 2010 18:00:14 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 6BBB4CA7AB; Thu, 28 Oct 2010 18:00:13 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id Ff38FAeOWK7j; Thu, 28 Oct 2010 18:00:10 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id EFC5CCA7A4; Thu, 28 Oct 2010 18:00:09 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 29975CA7A4 for ; Thu, 28 Oct 2010 18:00:09 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id VqkUXry3pZF4 for ; Thu, 28 Oct 2010 18:00:06 +0200 (CEST) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id 2D0DACA79B for ; Thu, 28 Oct 2010 18:00:06 +0200 (CEST) Original-Received: from mail-wy0-f169.google.com (mail-wy0-f169.google.com [74.125.82.169]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id o9SG05mk030357 for ; Thu, 28 Oct 2010 18:00:05 +0200 Original-Received: by wyf23 with SMTP id 23so2212623wyf.14 for ; Thu, 28 Oct 2010 09:00:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:date:from:to:cc :subject:message-id:references:mime-version:content-type :content-disposition:in-reply-to:user-agent; bh=vmDkPWbG7sJxV5YE4Kl/ZTztaFyvN4+G4iqCDyYH1dQ=; b=c3P/dKBBhkoZ+7wv76J0ulqNjwbQxs7G0YYAlTP9TSg7u73VB7Ut9k7HrRYU8XyU3T fWJnMH91boVWz38rK+dGy3+f26ZzjgVcPoPBsEoYjP91kBO306LaRQcTA+fR8EU6iQXF PHPzw4EoUtmu36PwDNza0RIbRkJHrdQn1/r6Q= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=BnCSvK7Ej03KDxV2YfebUVxYLBmYESbYe/ED5UqjuxD8rIX/UPNz5lnqVSAp9z9SF6 ZRwSjDqRTiiCUQf6mhd59ytDd/VQqd6eDJvrXHOm9UJTP6hQFuigL4I7avmZ+S3WlFo9 XgIvmGSD55hZaZqAqcGEMTPxbTb5ogWmavHrI= Original-Received: by 10.227.127.75 with SMTP id f11mr7369357wbs.69.1288281604977; Thu, 28 Oct 2010 09:00:04 -0700 (PDT) Original-Received: from localhost ([41.238.234.206]) by mx.google.com with ESMTPS id p4sm816462wer.29.2010.10.28.09.00.02 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 28 Oct 2010 09:00:03 -0700 (PDT) Content-Disposition: inline In-Reply-To: <4CC99B3C.9070709@elvenkind.com> User-Agent: Mutt/1.5.20 (2009-06-14) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=74.125.82.169; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0rDog052T - 32721d83c3bd - 20101028 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:63039 Archived-At: On Thu, Oct 28, 2010 at 05:48:12PM +0200, Taco Hoekwater wrote: > On 10/28/2010 04:59 PM, Hans Hagen wrote: > > > >if the font is okay, accessing by glyph name will work ok > > The font is an 8-bit encoding-indexed Macintosh Roman font > presenting itself as TrueType, and that is why it is so > confusing. > > Because the font says it is in MacRoman encoding, and the glyph > names are pointless affairs like /c140 (which is the king symbol) > instead of sane names, fontforge takes that the '140' part of > the name is a decimal code point in MacRoman encoding. > > This is correct behavior on fontforge's part, but it means that > the Unicode remap becomes slightly messy, as /c140 maps to > 'LATIN SMALL LETTER A WITH RING ABOVE'., and the glyph named > /c229 (which is in fact the aring symbol) maps to 'LATIN CAPITAL A > WITH CIRCUMFLEX', and /194 (which is the Acirc) maps to 'NOT SIGN', > etc. etc. In short: the font's glyph naming is anemic. > > Now, it appears that luaotfload produces a rubbish .lua file, probably > because it dumps both the MacRoman and the Unicode assignment at the > same time as a merged table. That is a bug, but that is an issue for > the luaotfload maintainers, not something for the context mailing list. As one of the luaotfload maintainers, I assure you that we never touch such low level code :) at least to stay compatible with ConTeXt (I really really have no interest in two incompatible OpenType implementations, so in regard to that luaotfload is not a real fork but ConTeXt code wrapped in some LaTeX palatable sweetener). > In context itself, \char140 actually and correctly produces the king > symbol. This either means it was fixed in later version of ConTeXt (our code is derived from the texlive version), or the ConTeXt variant is doing more stuff than what the plain one does. Regards, Khaled -- Khaled Hosny Arabic localiser and member of Arabeyes.org team Free font developer ___________________________________________________________________________________ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________