From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/54665 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: hz off? Date: Mon, 23 Nov 2009 11:50:40 +0100 Message-ID: <4B0A6900.5030008@wxs.nl> References: <8C6D1459-6F3B-43C3-8553-DF4085B20E6D@uni-bonn.de> <4B0A5EF3.80305@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"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1258973479 13194 80.91.229.12 (23 Nov 2009 10:51:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 23 Nov 2009 10:51:19 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Nov 23 11:51:12 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 1NCWVi-0007gK-72 for gctc-ntg-context-518@m.gmane.org; Mon, 23 Nov 2009 11:51:10 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 4B3B5C9AC1; Mon, 23 Nov 2009 11:48:23 +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 pQ4qiC9k-ttz; Mon, 23 Nov 2009 11:48:19 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C3350C9AAF; Mon, 23 Nov 2009 11:48:17 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B28C8C9AAF for ; Mon, 23 Nov 2009 11:48:11 +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 hN6FlojjwB9p for ; Mon, 23 Nov 2009 11:48:08 +0100 (CET) Original-Received: from mail.solcon.net (dsl-083-247-100-017.solcon.nl [83.247.100.17]) by balder.ntg.nl (Postfix) with ESMTP id 76705C9A8A for ; Mon, 23 Nov 2009 11:48:06 +0100 (CET) X-Default-Received-SPF: pass (skip=loggedin (res=PASS)) x-ip-name=10.100.1.100; Original-Received: from [10.100.1.100] (unverified [10.100.1.100]) by controller-9 (SurgeMail 4.2a3) with ESMTP id 6319-1713362 for ; Mon, 23 Nov 2009 11:49:50 +0100 User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) In-Reply-To: X-Authenticated-User: hagen@controller-9 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:54665 Archived-At: Steffen Wolfrum wrote: > Am 23.11.2009 um 11:07 schrieb Hans Hagen: > >> Steffen Wolfrum wrote: >>> 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 >> something like that yes > > > but, that doesn't work anymore! > > just tested it with ConTeXt ver: 2009.10.27 16:35 MKIV: no protrusion at all ... use lowercase vector names a next beta will provide \enabletrackers[fonts.expansion] \enabletrackers[fonts.protrusion] which shows such problems ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________________ 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 ___________________________________________________________________________________