From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/98297 Path: news.gmane.org!.POSTED!not-for-mail From: Thomas Widmann Newsgroups: gmane.comp.tex.context Subject: Adjusting column width dynamically to get rid of orphans and widows Date: Tue, 20 Jun 2017 09:22:45 +0100 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3140950375791737338==" X-Trace: blaine.gmane.org 1497947000 10213 195.159.176.226 (20 Jun 2017 08:23:20 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 20 Jun 2017 08:23:20 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Tue Jun 20 10:23:15 2017 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 blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dNERO-0002PW-Ln for gctc-ntg-context-518@m.gmane.org; Tue, 20 Jun 2017 10:23:14 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 7DE5A85B00; Tue, 20 Jun 2017 10:22:58 +0200 (CEST) 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 OoIBFoIpUNxP; Tue, 20 Jun 2017 10:22:57 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 8DDBB86131; Tue, 20 Jun 2017 10:22:57 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 3B42E85AFE for ; Tue, 20 Jun 2017 10:22:57 +0200 (CEST) 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 Ps9wAcaDwtwi for ; Tue, 20 Jun 2017 10:22:56 +0200 (CEST) Original-Received: from mail-wm0-f42.google.com (mail-wm0-f42.google.com [74.125.82.42]) (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 A034080621 for ; Tue, 20 Jun 2017 10:22:46 +0200 (CEST) Original-Received: by mail-wm0-f42.google.com with SMTP id u195so12747320wmd.1 for ; Tue, 20 Jun 2017 01:22:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=complexli.com; s=google; h=mime-version:from:date:message-id:subject:to; bh=AlSOw+EScMbo455dAtkLs8rovBzKVQIks5EGepacWIU=; b=Q7ykBkMBGqfkYT5gFfLI4oi1Y8Dfz63Dfj49DDi2cdDxm0D5EQMUkWGVfbnuobM8Hp HORfpSOApSC+7nqOUkt19X7i7abTDwFyvB+XxWXXmcSH2iAwkPO0UXHjM0lzd1imVaHh BiFOmtwDlpMirOeFle5Visnm/IKRPB2vLwpwM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=AlSOw+EScMbo455dAtkLs8rovBzKVQIks5EGepacWIU=; b=mcp8Kazlz6CMQksQctIQg9bqSBhCbmoZTpEO/iUAB3ObSg21qwjie1Becu+juPeAPF jiDIaWN9WBu5rOd+vlNS+ocYZAih3qdIBdKHXV1AJ2MukR1EDF6wqfuvtWayKQ3rlE24 ItFnVjmxwe2bMsqEzZrJRJFdLl4tXtomXI/eLksEWLqb60O+IaqTJUWg+MFFkLqmALVk cEpWFbZ81DDAVZlqO+dCxadY+9zM7c4U1KvxVSabhkmoriZa6k8I3xjvdq4v1Xgw23jN gyE8zKBIdsAkPy9Ija9e0fmz6pGbNy99Q6f8PDf4WI/GKVo3bx2/plgcK8Gf6ukOTLaM S+Mg== X-Gm-Message-State: AKS2vOxL4QquwcI+gYjQwZTADuh0f8cL+FBkIF4l3b++7UtEjUECjtl+ wqA40RFptOt4P5X0JCCY8MUVUnPlaNDf+Ks= X-Received: by 10.80.206.22 with SMTP id y22mr20375339edi.20.1497946966000; Tue, 20 Jun 2017 01:22:46 -0700 (PDT) Original-Received: by 10.80.213.67 with HTTP; Tue, 20 Jun 2017 01:22:45 -0700 (PDT) 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:98297 Archived-At: --===============3140950375791737338== Content-Type: multipart/alternative; boundary="94eb2c1b2ac6cd1c8f05525ff4f8" --94eb2c1b2ac6cd1c8f05525ff4f8 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello, I recently started experimenting with using ConTeXt (mkiv) for dictionary typesetting. It's a much more attractive option than plain TeX or LaTeX because of the support for typesetting on a grid. However, grid typesetting can easily result in a large number of orphans and widows, which really doesn't look good in a dictionary. In an ideal world, I'd want to alter the column width slightly to prevent them (because most dictionaries aren't justified, this wouldn't be very noticeable). Would it be possible to use LuaTeX to achieve this? I.e., could one write some code that gets triggered by orphans and widows and then alters the current column width slightly until the problem disappears? Has somebody already done this? Or have the relevant TeX internals not been Luafied yet= ? I'd also be interested in other ways to solve this issue =E2=80=93 for inst= ance changing the looseness dynamically instead of the column width. Thanks a lot, Thomas -- Thomas Widmann Director Complexli Limited +44 789 444 3009 --94eb2c1b2ac6cd1c8f05525ff4f8 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello,

I recently started ex= perimenting with using ConTeXt (mkiv) for dictionary typesetting. It's = a much more attractive option than plain TeX or LaTeX because of the suppor= t for typesetting on a grid.

However, grid typeset= ting can easily result in a large number of orphans and widows, which reall= y doesn't look good in a dictionary.

In an ide= al world, I'd want to alter the column width slightly to prevent them (= because most dictionaries aren't justified, this wouldn't be very n= oticeable).

Would it be possible to use LuaTeX to = achieve this?=C2=A0 I.e., could one write some code that gets triggered by = orphans and widows and then alters the current column width slightly until = the problem disappears?=C2=A0 Has somebody already done this?=C2=A0 Or have= the relevant TeX internals not been Luafied yet?

= I'd also be interested in other ways to solve this issue =E2=80=93 for = instance changing the looseness dynamically instead of the column width.

Thanks a lot,

Thomas
<= div>--
Thomas Widmann
Director
Complexli Limited
+44 789 = 444 3009
--94eb2c1b2ac6cd1c8f05525ff4f8-- --===============3140950375791737338== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f --===============3140950375791737338==--