From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/72210 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Simonyi_Andr=E1s?= Newsgroups: gmane.comp.tex.context Subject: Re: Modifying potrusion parameters Date: Sun, 6 Nov 2011 20:53:42 +0100 Message-ID: References: <4EB6891C.3080205@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1320609256 21470 80.91.229.12 (6 Nov 2011 19:54:16 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 6 Nov 2011 19:54:16 +0000 (UTC) To: Hans Hagen , ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Sun Nov 06 20:54:11 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 1RN8nC-0007wG-8v for gctc-ntg-context-518@m.gmane.org; Sun, 06 Nov 2011 20:54:10 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C250FCB0C1; Sun, 6 Nov 2011 20:54:09 +0100 (CET) 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 YTgqaavELnhV; Sun, 6 Nov 2011 20:53:56 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A3DFFCB083; Sun, 6 Nov 2011 20:53:56 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B4BF5CB083 for ; Sun, 6 Nov 2011 20:53:55 +0100 (CET) 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 Jq5VOrUgg42q for ; Sun, 6 Nov 2011 20:53:44 +0100 (CET) Original-Received: from filter1-til.mf.surf.net (filter1-til.mf.surf.net [194.171.167.217]) by balder.ntg.nl (Postfix) with ESMTP id C4695CA680 for ; Sun, 6 Nov 2011 20:53:44 +0100 (CET) Original-Received: from mail-gx0-f169.google.com (mail-gx0-f169.google.com [209.85.161.169]) by filter1-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id pA6JrhJk013942 for ; Sun, 6 Nov 2011 20:53:44 +0100 Original-Received: by ggnh4 with SMTP id h4so5902583ggn.14 for ; Sun, 06 Nov 2011 11:53:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=XaXoIb5B1CKbskHZuknoW2v6IZ9Jae4S7tbe4cLIVlg=; b=bKTxH/uHPe+rYkCoBUbOZMabBUjL6bPPJa+t3FiFwt6sMovNJAlQ5SR3tATPqqUK4f +i90tXbmanFvXa7x8a2YS7uUn7T3fvNbufAtAlv5MCb/jUdsUbZe2uAFtH8BOeW+898x /GT6y3h+83AZZegXBQns2itzgDjv01ZPeeiDk= Original-Received: by 10.182.17.103 with SMTP id n7mr6374797obd.68.1320609223010; Sun, 06 Nov 2011 11:53:43 -0800 (PST) Original-Received: by 10.182.5.135 with HTTP; Sun, 6 Nov 2011 11:53:42 -0800 (PST) In-Reply-To: <4EB6891C.3080205@wxs.nl> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.161.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: 08FRTRHB5 - f6dad8781f36 - 20111106 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.217 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:72210 Archived-At: Dear Hans, thanks a lot, your Lua code did the trick. with best wishes, Andras 2011/11/6 Hans Hagen : > On 6-11-2011 13:52, Simonyi Andr=E1s wrote: >> >> Dear ConTeXt-ers, >> >> I am using protrusion and char. expansion for a book project (with >> MKIV from the latest ConTeXt minimal), and it works wonderfully, with >> the exception of a minor problem: I find the preset protrusion >> parameters for =A0"guillemets" (double angle quotes) =A0which occur >> frequently in my (Italian) text >> too large, and would like to modify them. =A0Relying on the wiki and >> mailing-list posts, I realised that the parameters are set in the file >> font-ext.lua, but changing this file seems to have no effect on the >> typesetting. How should I rebuild/recompile ConTeXt in order to >> "apply" my changes? >> >> I am a novice ConTeXt =A0user, so please forgive me if my question is >> trivial. > > There is no need to change that file, just make a new vector in your styl= e. > > \startluacode > > local classes =3D fonts.protrusions.classes > local vectors =3D fonts.protrusions.vectors > > classes.myown =3D { > =A0 =A0vector =3D 'myown', > =A0 =A0factor =3D 1, > } > > vectors.myown =3D table.merged (vectors.quality, { > =A0 =A0[0x002C] =3D { 0, 2 }, -- comma > }) > > \stopluacode > > \starttext > > \showframe > > \definefontfeature[whatever][default][protrusion=3Dquality] > > \definedfont[Serif*whatever] \setupalign[hanging] \input tufte > > \definefontfeature[whatever][default][protrusion=3Dmyown] > > \definedfont[Serif*whatever] \setupalign[hanging] \input tufte > > \stoptext ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________