Hyphenation with dashes in natural table
![](https://secure.gravatar.com/avatar/13bc5842f0b785acdb8f02c38b78439d.jpg?s=120&d=mm&r=g)
Hi, It seems that the hyphenation algorithm for long words with dashes when typeset in a natural table has changed. MWE: \starttext \bTABLE[width=5cm] \bTR \bTD super-cali-fragi-listic-expi-ali-docious \eTD \bTD The longest word known to me that ever had an appearance in a musical. \eTD \eTR \eTABLE \stoptext In earlier versions of ConTeXt, the super-cali... word is hyphenated after "expi-" and no overfull box occurs. In the currently latest version the word is hyphenated after "super-" and, since the rest of the word does not fit the table cell, it overlaps text in the right hand cell. Could this be a bug or do I have to setup hyphenation differently in natural tables? Any feedback is welcome. Cheers, Christoph
![](https://secure.gravatar.com/avatar/5955e8e90611e77ccbfc7721b6112027.jpg?s=120&d=mm&r=g)
On 09/11/2017 03:10 PM, Christoph Reller wrote:
Hi,
It seems that the hyphenation algorithm for long words with dashes when typeset in a natural table has changed. [...]> Could this be a bug or do I have to setup hyphenation differently in natural tables? Any feedback is welcome.
Hi Christoph, I don’t know, but the following seems to work: \starttext \bTABLE[width=5cm] \bTR \bTD super||cali||fragi||listic||expi||ali||docious \eTD \bTD The longest word known to me that ever had an appearance in a musical. \eTD \eTR \eTABLE \stoptext Just in case it helps, Pablo -- http://www.ousia.tk
![](https://secure.gravatar.com/avatar/e07e15a8be3c4c1723f5a0397bc17424.jpg?s=120&d=mm&r=g)
On 2017-09-11 14:14, Pablo Rodriguez wrote:
On 09/11/2017 03:10 PM, Christoph Reller wrote:
Hi,
It seems that the hyphenation algorithm for long words with dashes when typeset in a natural table has changed. [...]> Could this be a bug or do I have to setup hyphenation differently in natural tables? Any feedback is welcome. Hi Christoph,
I don’t know, but the following seems to work:
\starttext \bTABLE[width=5cm] \bTR \bTD super||cali||fragi||listic||expi||ali||docious \eTD \bTD The longest word known to me that ever had an appearance in a musical. \eTD \eTR \eTABLE \stoptext
Just in case it helps,
Pablo
|| inserts an en-dash. What you want is |-|, and using that gives a good result which agrees with Christoph’s earlier result. See http://wiki.contextgarden.net/Compound_words. \starttext \bTABLE[width=5cm] \bTR \bTD super-cali-fragi-listic-expi-ali-docious \eTD \bTD The longest word known to me that ever had an appearance in a musical. \eTD \eTR \bTR \bTD super||cali||fragi||listic||expi||ali||docious \eTD \bTD The longest word known to me that ever had an appearance in a musical. \eTD \eTR \bTR \bTD super|-|cali|-|fragi|-|listic|-|expi|-|ali|-|docious \eTD \bTD The longest word known to me that ever had an appearance in a musical. \eTD \eTR \eTABLE \stoptext -- Rik
![](https://secure.gravatar.com/avatar/d0e94fb08d4620cfbd2f8f59a7868637.jpg?s=120&d=mm&r=g)
On 09/11/2017 10:23 PM, Rik Kabel wrote:
But this page also contains the solution to the original problem: \setbreakpoints [compound] Thomas
participants (4)
-
Christoph Reller
-
Pablo Rodriguez
-
Rik Kabel
-
Thomas A. Schmitz