From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/54657 Path: news.gmane.org!not-for-mail From: Steffen Wolfrum Newsgroups: gmane.comp.tex.context Subject: Re: hz off? Date: Mon, 23 Nov 2009 10:52:57 +0100 Message-ID: References: <8C6D1459-6F3B-43C3-8553-DF4085B20E6D@uni-bonn.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1077) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1258969993 2315 80.91.229.12 (23 Nov 2009 09:53:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 23 Nov 2009 09:53:13 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Nov 23 10:53:06 2009 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.50) id 1NCVbV-0008Bp-KO for gctc-ntg-context-518@m.gmane.org; Mon, 23 Nov 2009 10:53:05 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 28C9DC9A8A; Mon, 23 Nov 2009 10:50:25 +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 tzy5akrEmvwV; Mon, 23 Nov 2009 10:50:24 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 278C3C9AAF; Mon, 23 Nov 2009 10:50:22 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 907D2C9AAF for ; Mon, 23 Nov 2009 10:50:21 +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 upOUIM+xH5MI for ; Mon, 23 Nov 2009 10:50:18 +0100 (CET) Original-Received: from smtprelay04.ispgateway.de (smtprelay04.ispgateway.de [80.67.31.38]) by balder.ntg.nl (Postfix) with ESMTP id A829EC9A8A for ; Mon, 23 Nov 2009 10:50:18 +0100 (CET) Original-Received: from [89.247.85.79] (helo=[192.168.1.4]) by smtprelay04.ispgateway.de with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.68) (envelope-from ) id 1NCVbO-0003Kv-Ft for ntg-context@ntg.nl; Mon, 23 Nov 2009 10:52:58 +0100 In-Reply-To: <8C6D1459-6F3B-43C3-8553-DF4085B20E6D@uni-bonn.de> X-Mailer: Apple Mail (2.1077) X-Df-Sender: 698580 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:54657 Archived-At: And what's the way to define your own protrusion? Shouldn't it go like this? \showframe \startluacode fonts.protrusions.vectors['MyVector'] = { [0x2044] = { 0, 0.50 }, -- fraction slash [0x002f] = { 0, 0.50 }, -- solidus slash [0x002C] = { 0, 0.50 }, -- comma [0x002E] = { 0, 0.50 }, -- period [0x003A] = { 0, 0.50 }, -- colon [0x003B] = { 0, 0.50 }, -- semicolon [0x002D] = { 0, 0.50 }, -- hyphen [0x2013] = { 0, 0.25 }, -- endash [0x201C] = { 0, -1.25 }, -- quotedblleft } fonts.protrusions.classes['Mypure'] = { vector = 'MyVector', factor = 1 } fonts.expansions.classes['Myquality'] = { stretch = 1, shrink = 1, step = .5, vector = 'default', factor = 1 } \stopluacode \definefontfeature[default][default][mode=node,expansion=Myquality,protrusion=Mypure] \usetypescript[palatino] \setupbodyfont[palatino] \setupalign[hz,hanging] \enableprotruding \enableadjusting \starttext \input knuth \stoptext Steffen ___________________________________________________________________________________ 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 ___________________________________________________________________________________