ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Allow hyphenation after "underscore" (_)
@ 2003-07-18  9:31 varheit
  2003-07-19 21:24 ` Hans Hagen
  0 siblings, 1 reply; 2+ messages in thread
From: varheit @ 2003-07-18  9:31 UTC (permalink / raw)


Hi,

I am processing documents from XML sources that contain
lots of words like BLABLA_VERY_LONG_COMPLICATED_WORD.
How can I (globally) enable hyphenation after underscores without
changing the source?

I know that I could replace underscores with some sort of XML
entity like &underscore; and map this to some TeX code using
\discretionary..., but I want to avoid using that.

Thanks for any help on that issue.
Vik

-- 
+++ GMX - Mail, Messaging & more  http://www.gmx.net +++

Jetzt ein- oder umsteigen und USB-Speicheruhr als Prämie sichern!

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

* Re: Allow hyphenation after "underscore" (_)
  2003-07-18  9:31 Allow hyphenation after "underscore" (_) varheit
@ 2003-07-19 21:24 ` Hans Hagen
  0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 2003-07-19 21:24 UTC (permalink / raw)


At 23:31 17/07/2003 +0200, you wrote:
>Hi,
>
>I am processing documents from XML sources that contain
>lots of words like BLABLA_VERY_LONG_COMPLICATED_WORD.
>How can I (globally) enable hyphenation after underscores without
>changing the source?
>
>I know that I could replace underscores with some sort of XML
>entity like &underscore; and map this to some TeX code using
>\discretionary..., but I want to avoid using that.

test|\_|test

\defineXMLentity[underscore] {\discretionarycommand|\_|}

\startXMLdata
test&underscore;test
\stopXMLdata
-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                       Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
                        information: http://www.pragma-ade.com/roadmap.pdf
                     documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------

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

end of thread, other threads:[~2003-07-19 21:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-18  9:31 Allow hyphenation after "underscore" (_) varheit
2003-07-19 21:24 ` Hans Hagen

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