From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/70680 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Italic correction Date: Mon, 15 Aug 2011 21:35:53 +0200 Message-ID: <5DC588A6-2F73-412A-9B34-AF4892D3B018@googlemail.com> References: <4E496FE2.10709@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1244.3) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1313436969 31604 80.91.229.12 (15 Aug 2011 19:36:09 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 15 Aug 2011 19:36:09 +0000 (UTC) Cc: mailing list for ConTeXt users To: Hans Hagen Original-X-From: ntg-context-bounces@ntg.nl Mon Aug 15 21:36:05 2011 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 1Qt2xA-0005td-Rg for gctc-ntg-context-518@m.gmane.org; Mon, 15 Aug 2011 21:36:04 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 11B07CAEE9; Mon, 15 Aug 2011 21:36:04 +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 nASvWXmjWX3d; Mon, 15 Aug 2011 21:36:00 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id AB6DDCAEE1; Mon, 15 Aug 2011 21:36:00 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D9CDCCAEE1 for ; Mon, 15 Aug 2011 21:35:58 +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 Zb+AHSYZxt+Z for ; Mon, 15 Aug 2011 21:35:56 +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 B8EE6CAEDB for ; Mon, 15 Aug 2011 21:35:56 +0200 (CEST) Original-Received: from mail-fx0-f41.google.com (mail-fx0-f41.google.com [209.85.161.41]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p7FJZuYV025961 for ; Mon, 15 Aug 2011 21:35:56 +0200 Original-Received: by fxg9 with SMTP id 9so5149256fxg.14 for ; Mon, 15 Aug 2011 12:35:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; bh=4fVQZQHMIh7sZ2MWK31cqvyE6tPy9Jpzo5Yi+V6uWAc=; b=OVea4PiBHL0sAo7p7WIaN/BoRp98dFeQULpMGEJDHHHsdSblKRVckU4YPItaD6DXco hqTn92z0TvZlBOR1YHabe14C/xRQc1wfHmJ7TnpHD0DKmdx8IP62tpxCMIGyH9zq18Mq DjzFsTMTYAPwinmaQmm5140waLnwmAWpusiak= Original-Received: by 10.223.13.145 with SMTP id c17mr5915792faa.65.1313436955919; Mon, 15 Aug 2011 12:35:55 -0700 (PDT) Original-Received: from [192.168.2.31] (p5482D425.dip.t-dialin.net [84.130.212.37]) by mx.google.com with ESMTPS id s14sm3456909fah.5.2011.08.15.12.35.54 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 15 Aug 2011 12:35:55 -0700 (PDT) In-Reply-To: <4E496FE2.10709@wxs.nl> X-Mailer: Apple Mail (2.1244.3) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.161.41; 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: 0rFkHzUFW - 134d3dd0394c - 20110815 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:70680 Archived-At: Am 15.08.2011 um 21:13 schrieb Hans Hagen: > On 15-8-2011 8:04, Wolfgang Schuster wrote: >> Hi, >> >> is italic correction still supported with MkIV because in the following example the second sentence has the same length as the first. >> >> % engine=pdftex >> >> \starttext >> \setbox\scratchbox\hbox{A short sentence with a {\it italic} word.} \the\wd\scratchbox\ : \box\scratchbox\par >> \setbox\scratchbox\hbox{A short sentence with a {\it italic\/} word.} \the\wd\scratchbox\ : \box\scratchbox >> \stoptext > > yes and no: > > yes: the code is there > no : it has not been adapted to the font cleanup > > So, first fix this in font-ext.lua: > > local descriptions = tfmdata.descriptions > for unicode, d in next, tfmdata.characters do > local d = descriptions[unicode] > > Then enable the feature: > > \starttext > > \definefontfeature[one][default] > \definefontfeature[two][default][itlc=yes] Works. Can this be added to the default features? 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________