![](https://secure.gravatar.com/avatar/5955e8e90611e77ccbfc7721b6112027.jpg?s=120&d=mm&r=g)
Dear list, how should I invoke \hyphenation so it hyphens the \ConTeXt command? Many thanks for your help, Pablo -- http://www.ousia.tk
![](https://secure.gravatar.com/avatar/57c17c28c61c03706efc4a9112fad09b.jpg?s=120&d=mm&r=g)
On 2014–01–15 Pablo Rodriguez wrote:
how should I invoke \hyphenation so it hyphens the \ConTeXt command?
\ConTeXt is defined as “Con\TeX t” and \TeX uses kerns and boxes, both of which suppress hyphenation. AFAIK there's no easy way around it. That having said you can surely redefine the \TeX macro to include custom hyphenation points using \discretionary. Here an example which inserts a hyphenation point after the “T”: \unexpanded\def\TeX {\dontleavehmode \begingroup \setbox\scratchbox\hbox{M}%% T%% \discretionary{-}{}{\kern-.1667\wd\scratchbox} \lower.5ex\hbox{E}%% \kern-.125\wd\scratchbox X%% \endgroup} \starttext \hsize\zeropoint \ConTeXt \stoptext
Many thanks for your help,
My help is conditional in this case. Don't ever let me know *why* you actually want to do this ;) Marco
![](https://secure.gravatar.com/avatar/5955e8e90611e77ccbfc7721b6112027.jpg?s=120&d=mm&r=g)
On 01/15/2014 11:56 PM, Marco Patzer wrote:
On 2014–01–15 Pablo Rodriguez wrote:
how should I invoke \hyphenation so it hyphens the \ConTeXt command?
\ConTeXt is defined as “Con\TeX t” and \TeX uses kerns and boxes, both of which suppress hyphenation. AFAIK there's no easy way around it.
Many thanks for your help, Marco. I would like to hyphenate ConTeXt as the standard English word (Con-TeXt). Sorry for having to explain that ;-), but I’m writing an introduction to ConTeXt in Spanish. I had already rewritten two sentences in less than five pages to avoid the not-hyphenated ConTeXt word. Is there no simpler way to do this? Many thanks for your help, Pablo -- http://www.ousia.tk
![](https://secure.gravatar.com/avatar/c5ae4f9aa0d3a9bd5376e92b322c3e50.jpg?s=120&d=mm&r=g)
On Fri, 17 Jan 2014, Pablo Rodriguez wrote:
On 01/15/2014 11:56 PM, Marco Patzer wrote:
On 2014–01–15 Pablo Rodriguez wrote:
how should I invoke \hyphenation so it hyphens the \ConTeXt command?
\ConTeXt is defined as “Con\TeX t” and \TeX uses kerns and boxes, both of which suppress hyphenation. AFAIK there's no easy way around it.
Many thanks for your help, Marco.
I would like to hyphenate ConTeXt as the standard English word (Con-TeXt).
Sorry for having to explain that ;-), but I’m writing an introduction to ConTeXt in Spanish. I had already rewritten two sentences in less than five pages to avoid the not-hyphenated ConTeXt word.
Is there no simpler way to do this?
\starttext \hsize 4mm \CONTEXT \def\CONTEXT{Con\discretionary{}{-}{}\TeX{}t} \CONTEXT % Or if you dislike the way TeX is typeset \def\CONTEXT{ConTeXt} \CONTEXT \stoptext Aditya
![](https://secure.gravatar.com/avatar/5955e8e90611e77ccbfc7721b6112027.jpg?s=120&d=mm&r=g)
On 01/17/2014 07:18 PM, Aditya Mahajan wrote:
On Fri, 17 Jan 2014, Pablo Rodriguez wrote:
[...] I would like to hyphenate ConTeXt as the standard English word (Con-TeXt).
Sorry for having to explain that ;-), but I’m writing an introduction to ConTeXt in Spanish. I had already rewritten two sentences in less than five pages to avoid the not-hyphenated ConTeXt word.
Is there no simpler way to do this? [...] \def\CONTEXT{Con\discretionary{}{-}{}\TeX{}t}
Many thanks, Aditya. This was exactly what I wanted. I didn’t know of the existence of the \discretionary command. Pablo -- http://www.ousia.tk
![](https://secure.gravatar.com/avatar/57c17c28c61c03706efc4a9112fad09b.jpg?s=120&d=mm&r=g)
On 2014–01–17 Pablo Rodriguez wrote:
On 01/15/2014 11:56 PM, Marco Patzer wrote:
On 2014–01–15 Pablo Rodriguez wrote:
how should I invoke \hyphenation so it hyphens the \ConTeXt command?
\ConTeXt is defined as “Con\TeX t” and \TeX uses kerns and boxes, both of which suppress hyphenation. AFAIK there's no easy way around it.
Many thanks for your help, Marco.
I would like to hyphenate ConTeXt as the standard English word (Con-TeXt).
Sometimes I'm missing the obvious and make things more complicated than necessary.
Sorry for having to explain that ;-),
It's not you, it's me :)
Is there no simpler way to do this?
See Aditya's answer. Marco
![](https://secure.gravatar.com/avatar/5955e8e90611e77ccbfc7721b6112027.jpg?s=120&d=mm&r=g)
On 01/17/2014 08:04 PM, Marco Patzer wrote:
On 2014–01–17 Pablo Rodriguez wrote:
[...] I would like to hyphenate ConTeXt as the standard English word (Con-TeXt).
Sometimes I'm missing the obvious and make things more complicated than necessary.
Many thanks for the reply and for your help, Marco. I wonder whether it would make sense to enable \ConTeXt hyphenation by default. Just in case it might help, Pablo -- http://www.ousia.tk
participants (3)
-
Aditya Mahajan
-
Marco Patzer
-
Pablo Rodriguez