ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Jano Kula <jano.kula@gmail.com>
To: jbf <roma83537@gmail.com>
Cc: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: inter-word spacing
Date: Thu, 22 Oct 2020 14:38:18 +0200	[thread overview]
Message-ID: <CAPefzZ3+X7wG2X+1XMD_O87EiLmTV8HYtV49bLY1Cbyn8Uo-SQ@mail.gmail.com> (raw)
In-Reply-To: <11621de1-7cc6-bfe5-88e3-e63b9481409d@gmail.com>


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

Hello Julian!

Thank you for your hints.

On Thu, 22 Oct 2020 at 11:48, jbf <roma83537@gmail.com> wrote:

> 1. One factor will be whether you are using \definefontfeature
> [default][default]  [expansion=quality,protrusion=quality], which you
> obviously then need to call in with \setupalign.
> https://wiki.contextgarden.net/Command/setupalign
>
This doesn't influence the dimension of space. Well, it does, but it is a
side effect of alignment and line breaking algorithm. One cannot change the
space to a particular value/factor.

2. Another factor will be \setupspacing
> https://wiki.contextgarden.net/Command/setupspacing
>
This would work if the parameter could be *dimension* (\setupspacing[5pt]),
but it cannot.


> 3. A third factor might be the need to tweak things a bit once you take a
> look at what is produced, and where you might need to use a couple of other
> options, be it \, \nospace, \thinspace....
>
If one will finetune every space in the paragraph, this could be a way, but
it's far from a nice solution.

\setuplanguage[en][spacing=packed].
>
> This latter especially because I want to avoid some rather ugly spaces
> after a period.
>
Which is an equivalent of \frenchspacing primitive (only regular space
after period). In most languages spacing=packed is likely the default
setting.

Not at all sure if all the above is what the purists would do, but from a
> practical point of view it works for me.
>
Purists wouldn't change kerning at all, because the font designer knows
best, what kerning should be used. Anyway, once the graphic designer starts
changing leterspacing (kerning), the space correction is sometimes needed,
too. ConTeXt changes the space proportionally to \setupcharacterkerning,
which is fine in most cases.

For this use case (short text in one font) primitive \spaceskip3.2pt will
do the job (ragged text thus no glue). I was searching for the more
abstract solution like \setupspacing[factor=1.05], because once in a while
the correction is needed. Or font goodies could be the way to change
spacing.

Regards,
Jano

[-- Attachment #1.2: Type: text/html, Size: 3696 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
___________________________________________________________________________________

      reply	other threads:[~2020-10-22 12:38 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-20 14:12 Jano Kula
2020-10-22  9:48 ` jbf
2020-10-22 12:38   ` Jano Kula [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAPefzZ3+X7wG2X+1XMD_O87EiLmTV8HYtV49bLY1Cbyn8Uo-SQ@mail.gmail.com \
    --to=jano.kula@gmail.com \
    --cc=ntg-context@ntg.nl \
    --cc=roma83537@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).