From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/88158 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Fonthandling/protrusion question: handling of left margin Date: Fri, 18 Jul 2014 14:52:48 +0200 Message-ID: <18CCA0CD-BE42-47B3-AFDF-167D289D0AB6@gmail.com> References: <9659eb99c2b48a67c6e3fe30fcc8dc16.squirrel@webmail.xs4all.nl> <53C91500.6090806@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1405688000 12267 80.91.229.3 (18 Jul 2014 12:53:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 18 Jul 2014 12:53:20 +0000 (UTC) Cc: Hans Hagen To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Jul 18 14:53:11 2014 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1X87ew-00088t-CI for gctc-ntg-context-518@m.gmane.org; Fri, 18 Jul 2014 14:53:10 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id EAF0E10279 for ; Fri, 18 Jul 2014 14:53: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 Dz55DSiXqEGj for ; Fri, 18 Jul 2014 14:53:09 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id AB95E10223 for ; Fri, 18 Jul 2014 14:53:02 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 17850101E2 for ; Fri, 18 Jul 2014 14:52:59 +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 KUM7DjGldfsA for ; Fri, 18 Jul 2014 14:52:54 +0200 (CEST) Original-Received: from filter1-utr.mf.surf.net (filter1-utr.mf.surf.net [195.169.124.152]) by balder.ntg.nl (Postfix) with ESMTP id D824C101E1 for ; Fri, 18 Jul 2014 14:52:54 +0200 (CEST) Original-Received: from mail-we0-x229.google.com (mail-we0-x229.google.com [IPv6:2a00:1450:400c:c03::229]) by filter1-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s6ICqosF012641 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Fri, 18 Jul 2014 14:52:51 +0200 Original-Received: by mail-we0-f169.google.com with SMTP id u56so4567887wes.28 for ; Fri, 18 Jul 2014 05:52:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=dToDJxDp1tBIR8sHYWD34r6FSEgI/IOeJrhzkxTTCpQ=; b=mtUwYsSAgZmJKLZiMy4xR7LZLZ91HMuU6d2o8uZFIehPi2mEMBFpxVRiN1d7cUymLi dNO/cKiFeX6EZ1BCkTLNUOESl/VBwuxfYWT7eN+YJLm5h7jQefqC7EsJGA38W4k8UB7q Y+AX3tWmwiN26tNP7j9FH3VKatSU7Jvau8l90TBqfx8lomEnkr/SrBOUi+HBMsXFDNQH p6bFJx0WgwC1z6AGAwNWEzRCJ3cEYrfjcrC+aBjyxzxmI9ZnFft5p5VDot7Fyw4Oy1i/ JMwdzhyAYJVl+5fAmUaWp/SLzSCD6FkEdWMM0izXfJZAOpnHrbRFFnxiI/iSGfjm3OHe sYAQ== X-Received: by 10.194.87.134 with SMTP id ay6mr6381364wjb.84.1405687972490; Fri, 18 Jul 2014 05:52:52 -0700 (PDT) Original-Received: from keima.localdomain (x2f30039.dyn.telefonica.de. [2.243.0.57]) by mx.google.com with ESMTPSA id wp6sm14064714wjb.9.2014.07.18.05.52.50 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 18 Jul 2014 05:52:51 -0700 (PDT) In-Reply-To: <53C91500.6090806@wxs.nl> X-Mailer: Apple Mail (2.1878.6) X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2a00:1450:400c:c03::229; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 07MrMQPG6 - 76d2bad6d887 - 20140718 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:88158 Archived-At: Am 18.07.2014 um 14:37 schrieb Hans Hagen : > On 7/18/2014 1:11 PM, Rob Heusdens wrote: >> Short question about the font feature protrusion. This handles certain >> characters that get shifted into the right margin to make a more visable >> straight right margin. But can this font feature also handle left margin? >> For example, sentences that start in the left margin and begin with a >> quotation, there you would want the same effect also in the left margin. >> I currently use \kern-1ex to achieve the same effect for a sentence that >> commences on the left margin and starts with a quotation. > = > \setupfontprotrusion[mine][vector=3Dquality,right=3D10,left=3D40] > \definefontfeature[default][default][protrusion=3Dmine] > \setupalign[hanging] > = > \showframe > = > \starttext > \input tufte > \stoptext > = > ... wondering why only the first and last line On the first and last line are shifted because you don=92t have protrusion = values for letters at the begin of the other lines as can be seen in this table (from font-ext= .lua): vectors['alpha'] =3D { [byte("A")] =3D { .05, .05 }, [byte("F")] =3D { 0, .05 }, [byte("J")] =3D { .05, 0 }, [byte("K")] =3D { 0, .05 }, [byte("L")] =3D { 0, .05 }, [byte("T")] =3D { .05, .05 }, [byte("V")] =3D { .05, .05 }, [byte("W")] =3D { .05, .05 }, [byte("X")] =3D { .05, .05 }, [byte("Y")] =3D { .05, .05 }, [byte("k")] =3D { 0, .05 }, [byte("r")] =3D { 0, .05 }, [byte("t")] =3D { 0, .05 }, [byte("v")] =3D { .05, .05 }, [byte("w")] =3D { .05, .05 }, [byte("x")] =3D { .05, .05 }, [byte("y")] =3D { .05, .05 }, } Wolfgang ___________________________________________________________________________= ________ 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 ___________________________________________________________________________= ________