ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* blocking hyphenation
@ 2002-06-20 20:06 Idris S Hamid
  2002-06-21  3:18 ` Denis B. Roegel
  0 siblings, 1 reply; 3+ messages in thread
From: Idris S Hamid @ 2002-06-20 20:06 UTC (permalink / raw)


[Sorry I left out the subject before]

Dear gang,

What is the best way in ConTeXt to define a word so that is does not 
hyphenate. E.g., 

\def\SAN{\hbox{{A\d{s}-\d{S}an\={a}`ah}}}

\SAN{} this is a test

\bye

does not work; it creates an unwanted line break (anyone know why?)

Best wishes
Idris
-- 
Dr. Idris S Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80526


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

* Re: blocking hyphenation
  2002-06-20 20:06 blocking hyphenation Idris S Hamid
@ 2002-06-21  3:18 ` Denis B. Roegel
  2002-06-21  3:26   ` Idris S Hamid
  0 siblings, 1 reply; 3+ messages in thread
From: Denis B. Roegel @ 2002-06-21  3:18 UTC (permalink / raw)
  Cc: ntg-context, Denis B. Roegel

On Thu, Jun 20, 2002 at 02:06:00PM -0600, Idris S Hamid wrote:
> [Sorry I left out the subject before]
> 
> Dear gang,
> 
> What is the best way in ConTeXt to define a word so that is does not 
> hyphenate. E.g., 
> 
> \def\SAN{\hbox{{A\d{s}-\d{S}an\={a}`ah}}}
> 
> \SAN{} this is a test
> 
> \bye
> 
> does not work; it creates an unwanted line break (anyone know why?)
> 

That's because you stay in vertical mode. Your paragraph only starts
with `this is a test.' You need to esplicitely enter horizontal mode:

\def\SAN{\leavevmode\hbox{{A\d{s}-\d{S}an\={a}`ah}}}

Denis


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

* Re: blocking hyphenation
  2002-06-21  3:18 ` Denis B. Roegel
@ 2002-06-21  3:26   ` Idris S Hamid
  0 siblings, 0 replies; 3+ messages in thread
From: Idris S Hamid @ 2002-06-21  3:26 UTC (permalink / raw)
  Cc: ntg-context, Denis B. Roegel

On Thursday 20 June 2002 21:18, Denis B. Roegel wrote:
> > \def\SAN{\hbox{{A\d{s}-\d{S}an\={a}`ah}}}
> >
> > \SAN{} this is a test
> >
> > \bye
> >
> > does not work; it creates an unwanted line break (anyone know why?)
>
> That's because you stay in vertical mode. Your paragraph only starts
> with `this is a test.' You need to esplicitely enter horizontal mode:
>
> \def\SAN{\leavevmode\hbox{{A\d{s}-\d{S}an\={a}`ah}}}

Ahh! Thnx, Denis. 

Supplementary question: is there a ConTeXt-specific way to do this sort of 
thing?

Idris

-- 
Dr. Idris S Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80526


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

end of thread, other threads:[~2002-06-21  3:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-06-20 20:06 blocking hyphenation Idris S Hamid
2002-06-21  3:18 ` Denis B. Roegel
2002-06-21  3:26   ` Idris S Hamid

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