From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/93325 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: Automatic negative tracking to prevent slight overfull hbox's Date: Sat, 16 Jan 2016 12:57:30 -0500 (EST) Message-ID: References: <2902051452726453@web13o.yandex.ru> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="0-1302379938-1452967052=:40792" X-Trace: ger.gmane.org 1452967205 1706 80.91.229.3 (16 Jan 2016 18:00:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 16 Jan 2016 18:00:05 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Jan 16 18:59:48 2016 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aKV8d-0003HI-Ff for gctc-ntg-context-518@m.gmane.org; Sat, 16 Jan 2016 18:59:47 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id A186761AE; Sat, 16 Jan 2016 18:57:34 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id GVbc0BfdM9W7; Sat, 16 Jan 2016 18:57:33 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 6AE5B61B7; Sat, 16 Jan 2016 18:57:33 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 6B43E61B0 for ; Sat, 16 Jan 2016 18:57:32 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id UB2h-y3xvXKm for ; Sat, 16 Jan 2016 18:57:31 +0100 (CET) Original-Received: from hackers.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.14.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 4C25061AE for ; Sat, 16 Jan 2016 18:57:31 +0100 (CET) Original-Received: FROM [192.168.0.13] (unknown [135.0.226.162]) By hackers.mr.itd.umich.edu ID 569A8489.9F5A7.15615 ; Authuser adityam; Sat, 16 Jan 2016 12:57:29 -0500 In-Reply-To: <2902051452726453@web13o.yandex.ru> User-Agent: Alpine 2.02 (OSX 1266 2009-07-14) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 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" Xref: news.gmane.org gmane.comp.tex.context:93325 Archived-At: This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --0-1302379938-1452967052=:40792 Content-Type: TEXT/PLAIN; charset=utf-8; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE On Thu, 14 Jan 2016, Alexander Dyomin wrote: > Dear list, > when I stumble upon a slightly overhanging line (where it's not allowed t= o hyphenate the hanging word and putting it on next line leaves huge whites= paces), decreasing letterspacing in that line seems like a good idea, and I= manually insert \kerncharacters commands to do the trick. Here's a MWE for= the purpose of demonstration: > > % ConTeXt code > \setuppapersize[A5] > \setupbackgrounds[text] [rightframe=3Don,framecolor=3Dred,rulethickness= =3D0.1pt] %right margin line > > \setupalign[hz,hanging] % microtypography enabled > \definefontfeature[default][default][protrusion=3Dquality,expansion=3Dqua= lity] > > \definetypeface[mainface][rm][specserif][Linux Libertine O] [default] > \setupbodyfont[mainface,14pt] > > \mainlanguage[russian] > \setupindenting[yes,medium,first] > > \starttext > > {\kerncharacters[-0.018] =D0=97=D0=B4=D0=B5=D1=81=D1=8C =D0=B1=D1=83=D0= =B4=D0=B5=D1=82 =D0=B4=D0=BB=D0=B8=D0=BD=D0=BD=D1=8B=D0=B9-=D0=BF=D1=80=D0= =B5=D0=B4=D0=BB=D0=B8=D0=BD=D0=BD=D1=8B=D0=B9 =D1=82=D0=B5=D0=BA=D1=81=D1= =82, \mbox{=D0=B2~=D0=BA=D0=BE=D0=B5=D0=BC}} =D0=BD=D0=B8=D0=BA=D0=B0=D0=BA= =D0=BD=D0=B5=D0=BB=D1=8C=D0=B7=D1=8F =D0=BF=D0=B5=D1=80=D0=B5=D0=BD=D0=B5= =D1=81=D1=82=D0=B8 =D1=81=D1=82=D1=80=D0=BE=D0=BA=D1=83.=20 > =D0=97=D0=B0=D0=BF=D1=80=D0=B5=D1=89=D0=B5=D0=BD=D0=BE { \kerncharacters[= -0.008] =D1=80=D0=B0=D0=B7=D1=80=D1=8B=D0=B2=D0=B0=D1=82=D1=8C =D1=82=D0=B5= =D0=BB=D0=B5=D1=84=D0=BE=D0=BD=D0=BD=D1=8B=D0=B5 =D0=BD=D0=BE=D0=BC=D0=B5= =D1=80=D0=B0, =D0=BD=D0=B0=D0=BF=D1=80=D0=B8=D0=BC=D0=B5=D1=80, \mbox{(000)= 1234-5678}}, =D0=BC=D0=BD=D0=BE=D0=B3=D0=BE=D0=B7=D0=BD=D0=B0=D1=87=D0=BD= =D1=8B=D0=B5 =D1=87=D0=B8=D1=81=D0=BB=D0=B0 =D0=B8 =D0=B4=D0=B5=D1=84=D0=B8= =D1=81=D0=BD=D1=8B=D0=B5 =D0=BD=D0=B0=D0=BF=D0=B8=D1=81=D0=B0=D0=BD=D0=B8= =D1=8F. > \stoptext > > > Is the a way for automating such negative tracking? I seem to remember seeing a demo (either by Hans or Idris) for Arabic=20 typesetting where some optimizations were performed after the linebreaks.= =20 I wonder if similar approach could be used here. Aditya --0-1302379938-1452967052=:40792 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --0-1302379938-1452967052=:40792--