Hyphenation with dashes in natural table
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
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
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
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