ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Jeremy Hughes <jedahu@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: composed words and hanging punctuation
Date: Thu, 08 Oct 2009 20:23:54 +1300	[thread overview]
Message-ID: <87bpkixsad.fsf@gmail.com> (raw)
In-Reply-To: <87fx9uy1cd.fsf@gmail.com> (Jeremy Hughes's message of "Thu, 08 Oct 2009 17:08:18 +1300")

I figured it out.

Jeremy Hughes <jedahu@gmail.com> writes:

> Hi all,
>
> Dashes in composed words do not hang when hanging punctuation is
> used. When a line break falls after `whisky' in this sentence:
>
>    the repellent whisky|-|craving woman
>
> the dash doesn't hang. To make the dash hang I resort to this:
>
>    the repellent whisky-\allowbreak craving woman
>
> Is there a better way?

 Added the following definitions:

   \definetextmodediscretionary {} {\hyphenliketextmodediscretionary{–}{–}}
   \definetextmodediscretionary - {\hyphenliketextmodediscretionary{-}{-}}

> A related question:
> I want |<| and |>| to allow breaking on either side.
>
>    \zerowidthspace---\zerowidthspace
>
> works when placed directly in the text, but not when used as the
> definition of `leftsentence' in the `setuplanguage' command. How do I
> change this behavour?

And these ones:

   \setuplanguage
     [en]
     [leftsentence={\allowbreak—},
      rightsentence={—\allowbreak}]

Now it's all peachy :-)

Jeremy
___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

      reply	other threads:[~2009-10-08  7:23 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-08  4:08 Jeremy Hughes
2009-10-08  7:23 ` Jeremy Hughes [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=87bpkixsad.fsf@gmail.com \
    --to=jedahu@gmail.com \
    --cc=ntg-context@ntg.nl \
    /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).