ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Omitting hyphenation
@ 2010-06-21 16:32 Matija Šuklje
  2010-06-21 16:53 ` Yury G. Kudryashov
  2010-06-21 17:45 ` Wolfgang Schuster
  0 siblings, 2 replies; 20+ messages in thread
From: Matija Šuklje @ 2010-06-21 16:32 UTC (permalink / raw)
  To: ntg-context

Hullo,

in Slovenian it's not allowed to word-wrap/hyphenate abbrevations. In the CV 
I'm writing right now, I have a few of those and they get hyphenated and 
broken.

How can I tell that a single word/abbrevation should *not* be hyphenated and 
broken?


Cheers,
Matija
-- 
gsm: +386 41 849 552
www: http://matija.suklje.name
xmpp: matija.suklje@gabbler.org
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: Omitting hyphenation
  2010-06-21 16:32 Omitting hyphenation Matija Šuklje
@ 2010-06-21 16:53 ` Yury G. Kudryashov
  2010-06-21 17:43   ` Matija Šuklje
  2010-06-21 17:47   ` Wolfgang Schuster
  2010-06-21 17:45 ` Wolfgang Schuster
  1 sibling, 2 replies; 20+ messages in thread
From: Yury G. Kudryashov @ 2010-06-21 16:53 UTC (permalink / raw)
  To: ntg-context

Matija Šuklje wrote:

> Hullo,
> 
> in Slovenian it's not allowed to word-wrap/hyphenate abbrevations. In the
> CV I'm writing right now, I have a few of those and they get hyphenated
> and broken.
> 
> How can I tell that a single word/abbrevation should *not* be hyphenated
> and broken?
Try \hbox{word} (AFAIR, this is a plain TeX command)
> 
> 
> Cheers,
> Matija


___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Omitting hyphenation
  2010-06-21 16:53 ` Yury G. Kudryashov
@ 2010-06-21 17:43   ` Matija Šuklje
  2010-06-21 17:47   ` Wolfgang Schuster
  1 sibling, 0 replies; 20+ messages in thread
From: Matija Šuklje @ 2010-06-21 17:43 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Dne ponedeljek 21. junija 2010 ob 18:53:12 je Yury G. Kudryashov napisal(a):
> > How can I tell that a single word/abbrevation should not be hyphenated
> > and broken?
> 
> Try \hbox{word} (AFAIR, this is a plain TeX command)

That's the ticket! :D


Cheers!
Matija
-- 
gsm: +386 41 849 552
www: http://matija.suklje.name
xmpp: matija.suklje@gabbler.org
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: Omitting hyphenation
  2010-06-21 16:32 Omitting hyphenation Matija Šuklje
  2010-06-21 16:53 ` Yury G. Kudryashov
@ 2010-06-21 17:45 ` Wolfgang Schuster
  2010-06-21 20:00   ` Hans Hagen
  1 sibling, 1 reply; 20+ messages in thread
From: Wolfgang Schuster @ 2010-06-21 17:45 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Am 21.06.10 18:32, schrieb Matija Šuklje:
> Hullo,
>
> in Slovenian it's not allowed to word-wrap/hyphenate abbrevations. In the CV
> I'm writing right now, I have a few of those and they get hyphenated and
> broken.
>
> How can I tell that a single word/abbrevation should *not* be hyphenated and
> broken?
>    

\hyphenation{nothyphenatedword anothernothyphenatedword}

\starttext
...
\stoptext

Wolfgang (who wonders why there is no context alternative for \hyphenation)

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: Omitting hyphenation
  2010-06-21 16:53 ` Yury G. Kudryashov
  2010-06-21 17:43   ` Matija Šuklje
@ 2010-06-21 17:47   ` Wolfgang Schuster
  2010-06-21 17:50     ` Matija Šuklje
  1 sibling, 1 reply; 20+ messages in thread
From: Wolfgang Schuster @ 2010-06-21 17:47 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Am 21.06.10 18:53, schrieb Yury G. Kudryashov:
> Matija Šuklje wrote:
>
>    
>> Hullo,
>>
>> in Slovenian it's not allowed to word-wrap/hyphenate abbrevations. In the
>> CV I'm writing right now, I have a few of those and they get hyphenated
>> and broken.
>>
>> How can I tell that a single word/abbrevation should *not* be hyphenated
>> and broken?
>>      
> Try \hbox{word} (AFAIR, this is a plain TeX command)
>    

If you want a context command then use \mbox ;)

Wolfgang

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Omitting hyphenation
  2010-06-21 17:47   ` Wolfgang Schuster
@ 2010-06-21 17:50     ` Matija Šuklje
  2010-06-21 18:03       ` Wolfgang Schuster
  0 siblings, 1 reply; 20+ messages in thread
From: Matija Šuklje @ 2010-06-21 17:50 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Dne ponedeljek 21. junija 2010 ob 19:47:08 je Wolfgang Schuster napisal(a):
> Am 21.06.10 18:53, schrieb Yury G. Kudryashov:
> > Try \hbox{word} (AFAIR, this is a plain TeX command)
> 
> If you want a context command then use \mbox ;)

Is there any practical difference?

Cheers,
Matija
-- 
gsm: +386 41 849 552
www: http://matija.suklje.name
xmpp: matija.suklje@gabbler.org
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: Omitting hyphenation
  2010-06-21 17:50     ` Matija Šuklje
@ 2010-06-21 18:03       ` Wolfgang Schuster
  2010-06-21 20:04         ` Hans Hagen
  2010-06-22  6:02         ` Marco
  0 siblings, 2 replies; 20+ messages in thread
From: Wolfgang Schuster @ 2010-06-21 18:03 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Hans Hagen

Am 21.06.10 19:50, schrieb Matija Šuklje:
> Dne ponedeljek 21. junija 2010 ob 19:47:08 je Wolfgang Schuster napisal(a):
>    
>> Am 21.06.10 18:53, schrieb Yury G. Kudryashov:
>>      
>>> Try \hbox{word} (AFAIR, this is a plain TeX command)
>>>        
>> If you want a context command then use \mbox ;)
>>      
> Is there any practical difference?
>    

No but i wish there is one, e.g. the following example shows a problem 
with \hbox.

\starttext
\hbox{test} text text
\blank
\dontleavehmode\hbox{test} text text
\stoptext

As you can see in the output the first 'test' starts 'text text' on a 
new line and i forced \hbox
to appear in horizontal mode with \dontleavehmode and this can't be 
changed because \hbox is a TeX
primitive and you have to rely on this behaviour. The \mbox command 
isn't a primitive and i would
be so easy to add \dontleavehmode to it's definition to make sure the 
text after \mbox won't appear
on a new line, this means in this example both lines result in the same 
output.

\starttext
\dontleavehmode\hbox{test} text text
\blank
\mbox{test} text text
\stoptext

Wolfgang


___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: Omitting hyphenation
  2010-06-21 17:45 ` Wolfgang Schuster
@ 2010-06-21 20:00   ` Hans Hagen
  2010-06-21 20:22     ` Wolfgang Schuster
  0 siblings, 1 reply; 20+ messages in thread
From: Hans Hagen @ 2010-06-21 20:00 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 21-6-2010 7:45, Wolfgang Schuster wrote:
> Am 21.06.10 18:32, schrieb Matija Šuklje:
>> Hullo,
>>
>> in Slovenian it's not allowed to word-wrap/hyphenate abbrevations. In
>> the CV
>> I'm writing right now, I have a few of those and they get hyphenated and
>> broken.
>>
>> How can I tell that a single word/abbrevation should *not* be
>> hyphenated and
>> broken?
>
> \hyphenation{nothyphenatedword anothernothyphenatedword}
>
> \starttext
> ....
> \stoptext
>
> Wolfgang (who wonders why there is no context alternative for \hyphenation)

so there is room for improvements

\starttext
     \dorecurse{50}{\kern\recurselevel\dimexpr.2pt\relax {\nohyphens 
nothyphenatedword}, hyphenatedword }
\stoptext

Hans




-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: Omitting hyphenation
  2010-06-21 18:03       ` Wolfgang Schuster
@ 2010-06-21 20:04         ` Hans Hagen
  2010-06-21 20:16           ` Wolfgang Schuster
  2010-06-22  6:02         ` Marco
  1 sibling, 1 reply; 20+ messages in thread
From: Hans Hagen @ 2010-06-21 20:04 UTC (permalink / raw)
  To: Wolfgang Schuster; +Cc: mailing list for ConTeXt users

On 21-6-2010 8:03, Wolfgang Schuster wrote:
> Am 21.06.10 19:50, schrieb Matija Šuklje:
>> Dne ponedeljek 21. junija 2010 ob 19:47:08 je Wolfgang Schuster
>> napisal(a):
>>> Am 21.06.10 18:53, schrieb Yury G. Kudryashov:
>>>> Try \hbox{word} (AFAIR, this is a plain TeX command)
>>> If you want a context command then use \mbox ;)
>> Is there any practical difference?
>
> No but i wish there is one, e.g. the following example shows a problem
> with \hbox.
>
> \starttext
> \hbox{test} text text
> \blank
> \dontleavehmode\hbox{test} text text
> \stoptext
>
> As you can see in the output the first 'test' starts 'text text' on a
> new line and i forced \hbox
> to appear in horizontal mode with \dontleavehmode and this can't be
> changed because \hbox is a TeX
> primitive and you have to rely on this behaviour. The \mbox command
> isn't a primitive and i would
> be so easy to add \dontleavehmode to it's definition to make sure the
> text after \mbox won't appear
> on a new line, this means in this example both lines result in the same
> output.
>
> \starttext
> \dontleavehmode\hbox{test} text text
> \blank
> \mbox{test} text text
> \stoptext

we can have

\unexpanded\def\mbox
   {\ifmmode\normalmbox\else\dontleavehmode\normalhbox\fi}

as i never use this command it won't break my documents -)

Hans


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: Omitting hyphenation
  2010-06-21 20:04         ` Hans Hagen
@ 2010-06-21 20:16           ` Wolfgang Schuster
  2010-06-22  7:10             ` Hans Hagen
  0 siblings, 1 reply; 20+ messages in thread
From: Wolfgang Schuster @ 2010-06-21 20:16 UTC (permalink / raw)
  To: Hans Hagen; +Cc: mailing list for ConTeXt users

Am 21.06.10 22:04, schrieb Hans Hagen:
> On 21-6-2010 8:03, Wolfgang Schuster wrote:
>> Am 21.06.10 19:50, schrieb Matija Šuklje:
>>> Dne ponedeljek 21. junija 2010 ob 19:47:08 je Wolfgang Schuster
>>> napisal(a):
>>>> Am 21.06.10 18:53, schrieb Yury G. Kudryashov:
>>>>> Try \hbox{word} (AFAIR, this is a plain TeX command)
>>>> If you want a context command then use \mbox ;)
>>> Is there any practical difference?
>>
>> No but i wish there is one, e.g. the following example shows a problem
>> with \hbox.
>>
>> \starttext
>> \hbox{test} text text
>> \blank
>> \dontleavehmode\hbox{test} text text
>> \stoptext
>>
>> As you can see in the output the first 'test' starts 'text text' on a
>> new line and i forced \hbox
>> to appear in horizontal mode with \dontleavehmode and this can't be
>> changed because \hbox is a TeX
>> primitive and you have to rely on this behaviour. The \mbox command
>> isn't a primitive and i would
>> be so easy to add \dontleavehmode to it's definition to make sure the
>> text after \mbox won't appear
>> on a new line, this means in this example both lines result in the same
>> output.
>>
>> \starttext
>> \dontleavehmode\hbox{test} text text
>> \blank
>> \mbox{test} text text
>> \stoptext
>
> we can have
>
> \unexpanded\def\mbox
>   {\ifmmode\normalmbox\else\dontleavehmode\normalhbox\fi}
>
> as i never use this command it won't break my documents -)

thanks, this looks good

Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: Omitting hyphenation
  2010-06-21 20:00   ` Hans Hagen
@ 2010-06-21 20:22     ` Wolfgang Schuster
  2010-06-22  7:18       ` Hans Hagen
  0 siblings, 1 reply; 20+ messages in thread
From: Wolfgang Schuster @ 2010-06-21 20:22 UTC (permalink / raw)
  To: Hans Hagen; +Cc: mailing list for ConTeXt users

Am 21.06.10 22:00, schrieb Hans Hagen:
>> Wolfgang (who wonders why there is no context alternative for 
>> \hyphenation)
>
> so there is room for improvements
>
> \starttext
>     \dorecurse{50}{\kern\recurselevel\dimexpr.2pt\relax {\nohyphens 
> nothyphenatedword}, hyphenatedword }
> \stoptext

i should explain what i mean:

when you try to make hyphenation exceptions for different languages you 
need currently

\language[en]\hyphenation{expection list for english}
\language[de]\hyphenation{expection list for german}
...

but it would be nice to combine both in a single command, e.g.

\setuphyphenation{exception list for the current active language} % like 
\hyphenation{...}
\setuphyphenation[de]{exception list for german} % like 
\language[de]\hyphenation{...}

Wolfgang


___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: Omitting hyphenation
  2010-06-21 18:03       ` Wolfgang Schuster
  2010-06-21 20:04         ` Hans Hagen
@ 2010-06-22  6:02         ` Marco
  1 sibling, 0 replies; 20+ messages in thread
From: Marco @ 2010-06-22  6:02 UTC (permalink / raw)
  To: ntg-context

On Mon, 21 Jun 2010 20:03:22 +0200, Wolfgang Schuster
<schuster.wolfgang@googlemail.com> wrote:

[...]
> \starttext
> \dontleavehmode\hbox{test} text text
> \blank
> \mbox{test} text text
> \stoptext
What about using |test|?

Marco


___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: Omitting hyphenation
  2010-06-21 20:16           ` Wolfgang Schuster
@ 2010-06-22  7:10             ` Hans Hagen
  2010-06-22 12:56               ` Wolfgang Schuster
  0 siblings, 1 reply; 20+ messages in thread
From: Hans Hagen @ 2010-06-22  7:10 UTC (permalink / raw)
  To: Wolfgang Schuster; +Cc: mailing list for ConTeXt users

On 21-6-2010 10:16, Wolfgang Schuster wrote:

>> \unexpanded\def\mbox
>> {\ifmmode\normalmbox\else\dontleavehmode\normalhbox\fi}
>>
>> as i never use this command it won't break my documents -)
>
> thanks, this looks good

in retrospect it's tricky ...

\setbox0\mbox{...}

will break then

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: Omitting hyphenation
  2010-06-21 20:22     ` Wolfgang Schuster
@ 2010-06-22  7:18       ` Hans Hagen
  2010-06-22 12:55         ` Wolfgang Schuster
  2010-06-24 21:30         ` Matija Šuklje
  0 siblings, 2 replies; 20+ messages in thread
From: Hans Hagen @ 2010-06-22  7:18 UTC (permalink / raw)
  To: Wolfgang Schuster; +Cc: mailing list for ConTeXt users

On 21-6-2010 10:22, Wolfgang Schuster wrote:
> Am 21.06.10 22:00, schrieb Hans Hagen:
>>> Wolfgang (who wonders why there is no context alternative for
>>> \hyphenation)
>>
>> so there is room for improvements
>>
>> \starttext
>> \dorecurse{50}{\kern\recurselevel\dimexpr.2pt\relax {\nohyphens
>> nothyphenatedword}, hyphenatedword }
>> \stoptext
>
> i should explain what i mean:
>
> when you try to make hyphenation exceptions for different languages you
> need currently
>
> \language[en]\hyphenation{expection list for english}
> \language[de]\hyphenation{expection list for german}
> ....
>
> but it would be nice to combine both in a single command, e.g.
>
> \setuphyphenation{exception list for the current active language} % like
> \hyphenation{...}
> \setuphyphenation[de]{exception list for german} % like
> \language[de]\hyphenation{...}

how about \startexceptions[de] ... \stopexceptions


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: Omitting hyphenation
  2010-06-22  7:18       ` Hans Hagen
@ 2010-06-22 12:55         ` Wolfgang Schuster
  2010-06-24 21:30         ` Matija Šuklje
  1 sibling, 0 replies; 20+ messages in thread
From: Wolfgang Schuster @ 2010-06-22 12:55 UTC (permalink / raw)
  To: Hans Hagen; +Cc: mailing list for ConTeXt users

Am 22.06.10 09:18, schrieb Hans Hagen:
> On 21-6-2010 10:22, Wolfgang Schuster wrote:
>> Am 21.06.10 22:00, schrieb Hans Hagen:
>>>> Wolfgang (who wonders why there is no context alternative for
>>>> \hyphenation)
>>>
>>> so there is room for improvements
>>>
>>> \starttext
>>> \dorecurse{50}{\kern\recurselevel\dimexpr.2pt\relax {\nohyphens
>>> nothyphenatedword}, hyphenatedword }
>>> \stoptext
>>
>> i should explain what i mean:
>>
>> when you try to make hyphenation exceptions for different languages you
>> need currently
>>
>> \language[en]\hyphenation{expection list for english}
>> \language[de]\hyphenation{expection list for german}
>> ....
>>
>> but it would be nice to combine both in a single command, e.g.
>>
>> \setuphyphenation{exception list for the current active language} % like
>> \hyphenation{...}
>> \setuphyphenation[de]{exception list for german} % like
>> \language[de]\hyphenation{...}
>
> how about \startexceptions[de] ... \stopexceptions

i have no problem with the name, mine was only meant to describe the 
function

Wolfgang

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: Omitting hyphenation
  2010-06-22  7:10             ` Hans Hagen
@ 2010-06-22 12:56               ` Wolfgang Schuster
  0 siblings, 0 replies; 20+ messages in thread
From: Wolfgang Schuster @ 2010-06-22 12:56 UTC (permalink / raw)
  To: Hans Hagen; +Cc: mailing list for ConTeXt users

Am 22.06.10 09:10, schrieb Hans Hagen:
> On 21-6-2010 10:16, Wolfgang Schuster wrote:
>
>>> \unexpanded\def\mbox
>>> {\ifmmode\normalmbox\else\dontleavehmode\normalhbox\fi}
>>>
>>> as i never use this command it won't break my documents -)
>>
>> thanks, this looks good
>
> in retrospect it's tricky ...
>
> \setbox0\mbox{...}
>
> will break then


at the cost of a box register even this works

\def\mbox
   {\ifmmode\normalmbox\else\specialmbox\fi}

\newbox\textmbox

\def\specialmbox
   {\normalhbox\bgroup
 
\dowithnextbox{\global\setbox\textmbox\box\nextbox\egroup\dontleavehmode\box\textmbox}\normalhbox}

\starttext

\hbox{text} text text

\mbox{text} text text

\setbox0\hbox{bar}\setbox1\mbox{foo}\box1\box0

\stoptext

Wolfgang

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: Omitting hyphenation
  2010-06-22  7:18       ` Hans Hagen
  2010-06-22 12:55         ` Wolfgang Schuster
@ 2010-06-24 21:30         ` Matija Šuklje
  2010-06-24 21:42           ` Wolfgang Schuster
  2010-06-24 21:48           ` Wolfgang Schuster
  1 sibling, 2 replies; 20+ messages in thread
From: Matija Šuklje @ 2010-06-24 21:30 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Dne torek 22. junija 2010 ob 09:18:10 je Hans Hagen napisal(a):
> On 21-6-2010 10:22, Wolfgang Schuster wrote:
> > Am 21.06.10 22:00, schrieb Hans Hagen:
> >>> Wolfgang (who wonders why there is no context alternative for
> >>> \hyphenation)
> >>
> >> so there is room for improvements
> >>
> >> \starttext
> >> \dorecurse{50}{\kern\recurselevel\dimexpr.2pt\relax {\nohyphens
> >> nothyphenatedword}, hyphenatedword }
> >> \stoptext
> >
> > i should explain what i mean:
> >
> > when you try to make hyphenation exceptions for different languages you
> > need currently
> >
> > \language[en]\hyphenation{expection list for english}
> > \language[de]\hyphenation{expection list for german}
> > ....
> >
> > but it would be nice to combine both in a single command, e.g.
> >
> > \setuphyphenation{exception list for the current active language} % like
> > \hyphenation{...}
> > \setuphyphenation[de]{exception list for german} % like
> > \language[de]\hyphenation{...}
> 
> how about \startexceptions[de] ... \stopexceptions

Do any of the above work already or is it just a suggestion for future 
improvement?

Also, how does one disable hyphenation throughout the whole document?
(I heard that in the UK hyphenation in the CV is not desirable)


Cheers,
Matija
-- 
gsm: +386 41 849 552
www: http://matija.suklje.name
xmpp: matija.suklje@gabbler.org
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: Omitting hyphenation
  2010-06-24 21:30         ` Matija Šuklje
@ 2010-06-24 21:42           ` Wolfgang Schuster
  2010-06-24 21:48           ` Wolfgang Schuster
  1 sibling, 0 replies; 20+ messages in thread
From: Wolfgang Schuster @ 2010-06-24 21:42 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Am 24.06.10 23:30, schrieb Matija Šuklje:
> Dne torek 22. junija 2010 ob 09:18:10 je Hans Hagen napisal(a):
>    
>> On 21-6-2010 10:22, Wolfgang Schuster wrote:
>>      
>>> Am 21.06.10 22:00, schrieb Hans Hagen:
>>>        
>>>>> Wolfgang (who wonders why there is no context alternative for
>>>>> \hyphenation)
>>>>>            
>>>> so there is room for improvements
>>>>
>>>> \starttext
>>>> \dorecurse{50}{\kern\recurselevel\dimexpr.2pt\relax {\nohyphens
>>>> nothyphenatedword}, hyphenatedword }
>>>> \stoptext
>>>>          
>>> i should explain what i mean:
>>>
>>> when you try to make hyphenation exceptions for different languages you
>>> need currently
>>>
>>> \language[en]\hyphenation{expection list for english}
>>> \language[de]\hyphenation{expection list for german}
>>> ....
>>>
>>> but it would be nice to combine both in a single command, e.g.
>>>
>>> \setuphyphenation{exception list for the current active language} % like
>>> \hyphenation{...}
>>> \setuphyphenation[de]{exception list for german} % like
>>> \language[de]\hyphenation{...}
>>>        
>> how about \startexceptions[de] ... \stopexceptions
>>      
> Do any of the above work already or is it just a suggestion for future
> improvement?
>
> Also, how does one disable hyphenation throughout the whole document?
> (I heard that in the UK hyphenation in the CV is not desirable)
>    

\setupalign[nothyphenated]

Wolfgang

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: Omitting hyphenation
  2010-06-24 21:30         ` Matija Šuklje
  2010-06-24 21:42           ` Wolfgang Schuster
@ 2010-06-24 21:48           ` Wolfgang Schuster
  2010-06-24 21:52             ` Matija Šuklje
  1 sibling, 1 reply; 20+ messages in thread
From: Wolfgang Schuster @ 2010-06-24 21:48 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Am 24.06.10 23:30, schrieb Matija Šuklje:
> Dne torek 22. junija 2010 ob 09:18:10 je Hans Hagen napisal(a):
>    
>> On 21-6-2010 10:22, Wolfgang Schuster wrote:
>>      
>>> Am 21.06.10 22:00, schrieb Hans Hagen:
>>>        
>>>>> Wolfgang (who wonders why there is no context alternative for
>>>>> \hyphenation)
>>>>>            
>>>> so there is room for improvements
>>>>
>>>> \starttext
>>>> \dorecurse{50}{\kern\recurselevel\dimexpr.2pt\relax {\nohyphens
>>>> nothyphenatedword}, hyphenatedword }
>>>> \stoptext
>>>>          
>>> i should explain what i mean:
>>>
>>> when you try to make hyphenation exceptions for different languages you
>>> need currently
>>>
>>> \language[en]\hyphenation{expection list for english}
>>> \language[de]\hyphenation{expection list for german}
>>> ....
>>>
>>> but it would be nice to combine both in a single command, e.g.
>>>
>>> \setuphyphenation{exception list for the current active language} % like
>>> \hyphenation{...}
>>> \setuphyphenation[de]{exception list for german} % like
>>> \language[de]\hyphenation{...}
>>>        
>> how about \startexceptions[de] ... \stopexceptions
>>      
> Do any of the above work already or is it just a suggestion for future
> improvement?
>
> Also, how does one disable hyphenation throughout the whole document?
> (I heard that in the UK hyphenation in the CV is not desirable)
>    

\setupalign[nothyphenated]

Wolfgang

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: Omitting hyphenation
  2010-06-24 21:48           ` Wolfgang Schuster
@ 2010-06-24 21:52             ` Matija Šuklje
  0 siblings, 0 replies; 20+ messages in thread
From: Matija Šuklje @ 2010-06-24 21:52 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Dne četrtek 24. junija 2010 ob 23:48:11 je Wolfgang Schuster napisal(a):
> > Also, how does one disable hyphenation throughout the whole document?
> > (I heard that in the UK hyphenation in the CV is not desirable)
> >    
> 
> \setupalign[nothyphenated]

Thank you :] 


Cheers,
Matija
-- 
gsm: +386 41 849 552
www: http://matija.suklje.name
xmpp: matija.suklje@gabbler.org
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

end of thread, other threads:[~2010-06-24 21:52 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-06-21 16:32 Omitting hyphenation Matija Šuklje
2010-06-21 16:53 ` Yury G. Kudryashov
2010-06-21 17:43   ` Matija Šuklje
2010-06-21 17:47   ` Wolfgang Schuster
2010-06-21 17:50     ` Matija Šuklje
2010-06-21 18:03       ` Wolfgang Schuster
2010-06-21 20:04         ` Hans Hagen
2010-06-21 20:16           ` Wolfgang Schuster
2010-06-22  7:10             ` Hans Hagen
2010-06-22 12:56               ` Wolfgang Schuster
2010-06-22  6:02         ` Marco
2010-06-21 17:45 ` Wolfgang Schuster
2010-06-21 20:00   ` Hans Hagen
2010-06-21 20:22     ` Wolfgang Schuster
2010-06-22  7:18       ` Hans Hagen
2010-06-22 12:55         ` Wolfgang Schuster
2010-06-24 21:30         ` Matija Šuklje
2010-06-24 21:42           ` Wolfgang Schuster
2010-06-24 21:48           ` Wolfgang Schuster
2010-06-24 21:52             ` Matija Šuklje

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