* hyphenation problem using |-| in composed words -- bug?
@ 2009-11-25 14:06 Oliver Heins
2009-11-25 17:32 ` Oliver Heins
0 siblings, 1 reply; 3+ messages in thread
From: Oliver Heins @ 2009-11-25 14:06 UTC (permalink / raw)
To: mailing list for ConTeXt users
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 heins@sopos.org http://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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: hyphenation problem using |-| in composed words -- bug?
2009-11-25 14:06 hyphenation problem using |-| in composed words -- bug? Oliver Heins
@ 2009-11-25 17:32 ` Oliver Heins
2009-11-26 7:58 ` Taco Hoekwater
0 siblings, 1 reply; 3+ messages in thread
From: Oliver Heins @ 2009-11-25 17:32 UTC (permalink / raw)
To: mailing list for ConTeXt users
To comment on myself:
Oliver Heins <olli@sopos.org> 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 heins@sopos.org http://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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: hyphenation problem using |-| in composed words -- bug?
2009-11-25 17:32 ` Oliver Heins
@ 2009-11-26 7:58 ` Taco Hoekwater
0 siblings, 0 replies; 3+ messages in thread
From: Taco Hoekwater @ 2009-11-26 7:58 UTC (permalink / raw)
To: mailing list for ConTeXt users
Hi olli,
Oliver Heins wrote:
> To comment on myself:
>
> Oliver Heins <olli@sopos.org> 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-11-26 7:58 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-25 14:06 hyphenation problem using |-| in composed words -- bug? Oliver Heins
2009-11-25 17:32 ` Oliver Heins
2009-11-26 7:58 ` Taco Hoekwater
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).