From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/115061 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Tommaso Gordini via ntg-context Newsgroups: gmane.comp.tex.context Subject: Re: Microtipography Date: Wed, 25 May 2022 17:06:05 +0200 Message-ID: References: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============9073974586885481483==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30905"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Tommaso Gordini To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed May 25 17:07:05 2022 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ntsbI-0007pb-R4 for gctc-ntg-context-518@m.gmane-mx.org; Wed, 25 May 2022 17:07:04 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 317C6360969; Wed, 25 May 2022 17:06:28 +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 BTRR-Wfm05ve; Wed, 25 May 2022 17:06:26 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id DEAEE3608F1; Wed, 25 May 2022 17:06:25 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 23DDE3608F1 for ; Wed, 25 May 2022 17:06:24 +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 xX2AmWsHw4Wc for ; Wed, 25 May 2022 17:06:19 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.167.180; helo=mail-oi1-f180.google.com; envelope-from=illinguista1972@gmail.com; receiver= Original-Received: from mail-oi1-f180.google.com (mail-oi1-f180.google.com [209.85.167.180]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id A5FC4360686 for ; Wed, 25 May 2022 17:06:18 +0200 (CEST) Original-Received: by mail-oi1-f180.google.com with SMTP id q10so25331670oia.9 for ; Wed, 25 May 2022 08:06:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=x38dVWfc6M7+IOvFQL/Zv6UfIRodikasFRe9CPVF7rc=; b=DnlL5Yy4lC3p8/Otj6Wpx25MCTVaxAGHlfqXwkESyYDU+xk8YU/3oTvwxWQ5hsP/5l VRGRx+vnKmE3TkwjlO+WvFXXrJ9sUzMSKGI1VWWsf6AqA1C7mw8B1D42jmun/yO1e9g0 xxnTo3GAxgx7MMvNcV8jtz2ex5MJJ40R4BFTm460DXxpSbWapGjanaTrBqqeruzvjDb0 1wJpSRX3kMdfLH/vB1tR7acah8YuGzfs5vx7nzee1bFT/T0wsunCxKhYWSKcE1GpVeYX +H9ACeEy8bI2xNgiJhlqbl7uHv6MEQhPMEA2wxI3Lz+SijHmxK9lrrF9861m84E7TSyz cHaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=x38dVWfc6M7+IOvFQL/Zv6UfIRodikasFRe9CPVF7rc=; b=KxUox+ptWME5HbCiB2/vIHQe4vqjfolUuSXNTOfZOtoXIKz41nkK2L5kDSfRNft6dr hcz37u22h5v62EDhcJ8CPQoQwsPWa23EJSZYTmZnCtBf+VyfGuH3jQAwXr6DZMrYuevk mjrUniZgZUFxfZ6ePErl0RLZlHuQykGxxVgdPDciH5f0AoRJ0ezcslX9V4s3JHRHwxP7 kmsA7jBghpNmSC9lO3s1IWLZ3XuPhoMB++0DMNiOiUP22NTjE+/jnpvOFyNthIWgVdJK c1pELlxL3LIgkcEGSFwbBXbQEE959G0WYmFvpI/j+l4jV5ZTqaseQ0ESwXvOeDtv69pV NzGQ== X-Gm-Message-State: AOAM532/T8JOiVa5NXsop3PNKYLTigGJdd1r+aK0QTHA1FWFoyCgNybI kGaNySDmmqgBlbTB2ieSI4qD8UJh3pm7RqKjjvPA3WKR X-Google-Smtp-Source: ABdhPJz5ZPxXXDUVzyox2mbO1kVGVsB6R5uZl35/+ZYTGFW8hXj8fE1KjLhYWsn1twNX4DXo3j5nHSaNMWNGbNH6KHQ= X-Received: by 2002:a05:6808:3021:b0:2f7:4c5b:2783 with SMTP id ay33-20020a056808302100b002f74c5b2783mr5421549oib.53.1653491177103; Wed, 25 May 2022 08:06:17 -0700 (PDT) In-Reply-To: X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 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.io gmane.comp.tex.context:115061 Archived-At: --===============9073974586885481483== Content-Type: multipart/alternative; boundary="00000000000040232405dfd76a11" --00000000000040232405dfd76a11 Content-Type: text/plain; charset="UTF-8" Thank you, Henri! Tommaso Il mer 25 mag 2022, 16:59 Henri Menke via ntg-context ha scritto: > On Wed, 2022-05-25 at 15:51 +0200, Tommaso Gordini via ntg-context > wrote: > > Hello list, > > > > here and there on the Net there are slightly different ways to > > activate the > > microtypography functionality in a ConTeXt document. > > > > My question is: what is the most correct and clean way to do it? > > I do not claim that this is the cleanest way. Probably it's better to > define a separate font feature for microtypography rather than > overwriting the default set, but this definitely works: > > \definefontfeature[default][default] > [protrusion=quality, > expansion=quality] > > \setupbodyfont[modern] % or whatever > > \setupalign[hz,hanging] > > Unfortunately the global alignment settings do not propagate into > certain structures. For example itemizations, captions, and > bibliographies just reset it and need special treatment: > > \setupitemize[each][align={hz,hanging}] > \setupbtxlist[align={hz,hanging,tolerant}] > \setupcaption[figure][align={justified,hz,hanging}] > > I think captions are not justified by default, so that might or might > not matter to you. Bibliographies are usually full or names and > academic words that do not hyphenate well, so adding tolerant relaxes > that a little bit. > > Cheers, Henri > > > > > Thanks in advance > > Tommaso > > _____________________________________________________________________ > > ______________ > > 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://context.aanhet.net > > archive : https://bitbucket.org/phg/context-mirror/commits/ > > wiki : http://contextgarden.net > > _____________________________________________________________________ > > ______________ > > ___________________________________________________________________________________ > 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://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > > ___________________________________________________________________________________ > --00000000000040232405dfd76a11 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thank you, Henri!

Tommaso

Il mer 25 mag 2022, 16:59 Henri Menke via ntg-context &l= t;ntg-context@ntg.nl> ha scrit= to:
On Wed, 2022-05-25 at 15:51 +02= 00, Tommaso Gordini via ntg-context
wrote:
> Hello list,
>
> here and there on the Net there are slightly different ways to
> activate the
> microtypography functionality in a ConTeXt document.
>
> =C2=A0My question is: what is the most correct and clean way to do it?=

I do not claim that this is the cleanest way. Probably it's better to define a separate font feature for microtypography rather than
overwriting the default set, but this definitely works:

=C2=A0 =C2=A0\definefontfeature[default][default]
=C2=A0 =C2=A0 =C2=A0[protrusion=3Dquality,
=C2=A0 =C2=A0 =C2=A0 expansion=3Dquality]

=C2=A0 =C2=A0\setupbodyfont[modern] % or whatever

=C2=A0 =C2=A0\setupalign[hz,hanging]

Unfortunately the global alignment settings do not propagate into
certain structures. For example itemizations, captions, and
bibliographies just reset it and need special treatment:

=C2=A0 =C2=A0\setupitemize[each][align=3D{hz,hanging}]
=C2=A0 =C2=A0\setupbtxlist[align=3D{hz,hanging,tolerant}]
=C2=A0 =C2=A0\setupcaption[figure][align=3D{justified,hz,hanging}]

I think captions are not justified by default, so that might or might
not matter to you. Bibliographies are usually full or names and
academic words that do not hyphenate well, so adding tolerant relaxes
that a little bit.

Cheers, Henri

>
> Thanks in advance
> Tommaso
> _____________________________________________________________________<= br> > ______________
> If your question is of interest to others as well, please add an
> entry to the Wiki!
>
> maillist : ntg-context@ntg.nl=C2=A0/
> http://www.ntg.nl/mailman/listinfo/ntg= -context
> webpage=C2=A0 : http://www.pragma-ade.nl=C2=A0/ http://context.aanhet.net
> archive=C2=A0 : https://bitbucket.o= rg/phg/context-mirror/commits/
> wiki=C2=A0=C2=A0=C2=A0=C2=A0 : http://contextgarden.net<= br> > _____________________________________________________________________<= br> > ______________
___________________________________________________________________________= ________
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-context
webpage=C2=A0 : http://www.pragma-ade.nl / http://= context.aanhet.net
archive=C2=A0 : https://bitbucket.org/ph= g/context-mirror/commits/
wiki=C2=A0 =C2=A0 =C2=A0: http://contextgarden.net
___________________________________________________________________________= ________
--00000000000040232405dfd76a11-- --===============9073974586885481483== 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 X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============9073974586885481483==--