ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Taco Hoekwater <taco@elvenkind.com>
Subject: Re: prevent hyphenation
Date: Fri, 20 May 2005 16:21:11 +0200	[thread overview]
Message-ID: <428DF257.8090407@elvenkind.com> (raw)
In-Reply-To: <428DDD0D.9080109@wxs.nl>



Hans Hagen wrote:
> Peter wrote:
> 
>>
>> Idris Samawi Hamid wrote:
>>  > \installlanguage[NH][lefthyphenmin=100,righthyphenmin=100]
>>  >
>>
> 
> question for taco: how exactly does tex treat language changes mid 
> paragraph?

That would take me too much time to write down :-), but I can tell
you that this \installlanguage didn't work because \lefthyphenmin
and \righthyphenmin are 'global' during the course of the paragraph,
only the final value is used (like for most paragraph parameters).

What will work, is setting the TeX primitive \language to a value
that does not have associated patterns (-1 is a possibility, but
usually 255 also works). In the next bit of context code, there
will be no hyphenation:

   \starttext
   \normallanguage -1 \hsize = 0pt \input zapf \language[en]
   \stoptext

(babel has a language definition 'nohyph', precisely for this)

Hope this helps,
Taco

  reply	other threads:[~2005-05-20 14:21 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-20  3:32 Idris Samawi Hamid
2005-05-20  7:25 ` Hans Hagen
2005-05-20 11:35 ` Peter
2005-05-20 12:50   ` Hans Hagen
2005-05-20 14:21     ` Taco Hoekwater [this message]
2005-05-20 16:08       ` Peter
  -- strict thread matches above, loose matches on Subject: below --
2005-05-20  1:09 Peter

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=428DF257.8090407@elvenkind.com \
    --to=taco@elvenkind.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).