Re: [NTG-context] hyphenation problem using |-| in composed words -- bug?

2009-11-25 Thread Taco Hoekwater
Hi olli,

Oliver Heins wrote:
> To comment on myself:
> 
> Oliver Heins  writes:
> 
>> Hi,
>>
>> when using |-| in a word as a non exclusive dash, this produces wrong
>> hyphenation.
> 

Verified. Same problems here, in both mkii and mkiv.

Best wishes,
Taco
___
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
___


Re: [NTG-context] hyphenation problem using |-| in composed words -- bug?

2009-11-25 Thread Oliver Heins
To comment on myself:

Oliver Heins  writes:

> Hi,
>
> when using |-| in a word as a non exclusive dash, this produces wrong
> hyphenation.

[...]

> longer
> -word
> -to
> -be
> -hy-
> phen-
> ated

This is a workaround:

\definetextmodediscretionary {-}
  {\prewordbreak\discretionary{\hbox{-}}{}{\hbox{-}}\prewordbreak}

However, \setuphyphenmark[sign=normal] still does not work correctly.

Regards,
 olli

-- 
Oliver Heins he...@sopos.orghttp://oliverheins.net/
http://blog.overheins.net/ F27A BA8C 1CFB B905 65A8
http://scriptorium-adp.de/ 2544 0F07 B675 9A00 D827
1024D/9A00D827 2004-09-24 -- gpg --recv-keys 0x9A00D827
Please avoid sending me Word or PowerPoint attachments:
http://www.gnu.org/philosophy/no-word-attachments.html
___
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
___


[NTG-context] hyphenation problem using |-| in composed words -- bug?

2009-11-25 Thread Oliver Heins
Hi,

when using |-| in a word as a non exclusive dash, this produces wrong
hyphenation.

For example, the word »longer-word-to-be-hyphenated« should be
hyphenated e.g. like this:

longer-
word-
to-
be-
hy-
phen-
ated

but actually it is hyphenated like this:

longer
-word
-to
-be
-hy-
phen-
ated

Using || instead of |-| works like expected, so using it in combination
with \setuphyphenmark[sign=normal] could be considered a workaround.
Sadly, that produces the same bad result. :-(

Here's a minimal example:

%\setuphyphenmark[sign=normal]

\starttext

\hsize 1em

longer|-|word|-|to|-|be|-|hyphenated

longer||word||to||be||hyphenated

\stoptext



TIA,
 olli

-- 
Oliver Heins he...@sopos.orghttp://oliverheins.net/
http://blog.overheins.net/ F27A BA8C 1CFB B905 65A8
http://scriptorium-adp.de/ 2544 0F07 B675 9A00 D827
1024D/9A00D827 2004-09-24 -- gpg --recv-keys 0x9A00D827
Please avoid sending me Word or PowerPoint attachments:
http://www.gnu.org/philosophy/no-word-attachments.html
___
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
___