ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* composed words and hanging punctuation
@ 2009-10-08  4:08 Jeremy Hughes
  2009-10-08  7:23 ` Jeremy Hughes
  0 siblings, 1 reply; 2+ messages in thread
From: Jeremy Hughes @ 2009-10-08  4:08 UTC (permalink / raw)
  To: ntg-context

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?


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?

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
___________________________________________________________________________________


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

* Re: composed words and hanging punctuation
  2009-10-08  4:08 composed words and hanging punctuation Jeremy Hughes
@ 2009-10-08  7:23 ` Jeremy Hughes
  0 siblings, 0 replies; 2+ messages in thread
From: Jeremy Hughes @ 2009-10-08  7:23 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________

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

end of thread, other threads:[~2009-10-08  7:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-08  4:08 composed words and hanging punctuation Jeremy Hughes
2009-10-08  7:23 ` Jeremy Hughes

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).