ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Microtipography
@ 2022-05-25 13:51 Tommaso Gordini via ntg-context
  2022-05-25 14:52 ` Microtipography Henri Menke via ntg-context
  0 siblings, 1 reply; 4+ messages in thread
From: Tommaso Gordini via ntg-context @ 2022-05-25 13:51 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Tommaso Gordini


[-- Attachment #1.1: Type: text/plain, Size: 236 bytes --]

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?

Thanks in advance
Tommaso

[-- Attachment #1.2: Type: text/html, Size: 421 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Microtipography
  2022-05-25 13:51 Microtipography Tommaso Gordini via ntg-context
@ 2022-05-25 14:52 ` Henri Menke via ntg-context
  2022-05-25 15:06   ` Microtipography Tommaso Gordini via ntg-context
  0 siblings, 1 reply; 4+ messages in thread
From: Henri Menke via ntg-context @ 2022-05-25 14:52 UTC (permalink / raw)
  To: ntg-context; +Cc: Henri Menke

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Microtipography
  2022-05-25 14:52 ` Microtipography Henri Menke via ntg-context
@ 2022-05-25 15:06   ` Tommaso Gordini via ntg-context
  2022-05-25 20:47     ` Microtipography Denis Maier via ntg-context
  0 siblings, 1 reply; 4+ messages in thread
From: Tommaso Gordini via ntg-context @ 2022-05-25 15:06 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Tommaso Gordini


[-- Attachment #1.1: Type: text/plain, Size: 2494 bytes --]

Thank you, Henri!

Tommaso

Il mer 25 mag 2022, 16:59 Henri Menke via ntg-context <ntg-context@ntg.nl>
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
>
> ___________________________________________________________________________________
>

[-- Attachment #1.2: Type: text/html, Size: 4158 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Microtipography
  2022-05-25 15:06   ` Microtipography Tommaso Gordini via ntg-context
@ 2022-05-25 20:47     ` Denis Maier via ntg-context
  0 siblings, 0 replies; 4+ messages in thread
From: Denis Maier via ntg-context @ 2022-05-25 20:47 UTC (permalink / raw)
  To: ntg-context; +Cc: denis.maier


[-- Attachment #1.1: Type: text/plain, Size: 3033 bytes --]

Just a quick addition to Henri’s answer : You can also define your own align definition, see https://www.mail-archive.com/ntg-context@ntg.nl/msg100832.html

That will probably make your life a bit easier.

Best,
Denis

Von: ntg-context <ntg-context-bounces@ntg.nl> Im Auftrag von Tommaso Gordini via ntg-context
Gesendet: Mittwoch, 25. Mai 2022 17:06
An: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: Tommaso Gordini <illinguista1972@gmail.com>
Betreff: Re: [NTG-context] Microtipography

Thank you, Henri!

Tommaso

Il mer 25 mag 2022, 16:59 Henri Menke via ntg-context <ntg-context@ntg.nl<mailto:ntg-context@ntg.nl>> 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<mailto: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<mailto: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
___________________________________________________________________________________

[-- Attachment #1.2: Type: text/html, Size: 7189 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-05-25 20:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-25 13:51 Microtipography Tommaso Gordini via ntg-context
2022-05-25 14:52 ` Microtipography Henri Menke via ntg-context
2022-05-25 15:06   ` Microtipography Tommaso Gordini via ntg-context
2022-05-25 20:47     ` Microtipography Denis Maier via ntg-context

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).