ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Defining hyphenation sites that will not produce a dash?
@ 2006-04-17  1:38 Johannes Graumann
  2006-04-17  8:52 ` Hans Hagen
  0 siblings, 1 reply; 3+ messages in thread
From: Johannes Graumann @ 2006-04-17  1:38 UTC (permalink / raw)


Hello

My ConTeXted XML document contains a number of constructs like this

pRS&thinspace;403&endash;<math><mn>9</mn><mo>&times;</mo></math>Myc/TEV/<i>URA3</i>/TEV/His<sub>8</sub>

(molecular genetical plasmid/genotype deinitions - in case you wonder ;0).

This predictably produces line break/hyphenation trouble. I'm already using
a mapping rule like this

\defineXMLargument  [hyph]    {\-}

but I was wondering whether there's an analogue that won't produce a
hypneation-dash if the manually defined hyphenation site is used.

Thanks for any hint,

Joh

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

* Re: Defining hyphenation sites that will not produce a dash?
  2006-04-17  1:38 Defining hyphenation sites that will not produce a dash? Johannes Graumann
@ 2006-04-17  8:52 ` Hans Hagen
  2006-04-17 11:01   ` Johannes Graumann
  0 siblings, 1 reply; 3+ messages in thread
From: Hans Hagen @ 2006-04-17  8:52 UTC (permalink / raw)


Johannes Graumann wrote:
> Hello
>
> My ConTeXted XML document contains a number of constructs like this
>
> pRS&thinspace;403&endash;<math><mn>9</mn><mo>&times;</mo></math>Myc/TEV/<i>URA3</i>/TEV/His<sub>8</sub>
>
> (molecular genetical plasmid/genotype deinitions - in case you wonder ;0).
>
> This predictably produces line break/hyphenation trouble. I'm already using
> a mapping rule like this
>
> \defineXMLargument  [hyph]    {\-}
>
> but I was wondering whether there's an analogue that won't produce a
> hypneation-dash if the manually defined hyphenation site is used.
>
> Thanks for any hint,
>   
\starttext

\usemodule[newmml]

\defineXMLsingular[bp]{|\empty|}

\hsize5cm

\startXMLdata
pRS&thinspace;403&endash;<math><mn>9</mn><mo>&times;</mo></math>Myc/TEV/<i>URA3</i><bp/>/TEV/His<sub>8</sub>
\stopXMLdata

\stoptext


-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
-----------------------------------------------------------------

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

* Re: Defining hyphenation sites that will not produce a dash?
  2006-04-17  8:52 ` Hans Hagen
@ 2006-04-17 11:01   ` Johannes Graumann
  0 siblings, 0 replies; 3+ messages in thread
From: Johannes Graumann @ 2006-04-17 11:01 UTC (permalink / raw)


Hans Hagen wrote:

> \defineXMLsingular[bp]{|\empty|}
Works now. Thanks!

Joh

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

end of thread, other threads:[~2006-04-17 11:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-04-17  1:38 Defining hyphenation sites that will not produce a dash? Johannes Graumann
2006-04-17  8:52 ` Hans Hagen
2006-04-17 11:01   ` Johannes Graumann

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