Re: [NTG-context] Hyphenation with dashes in natural table
Dear Pablo, Rik, and Thomas Thank you so much for your quick help! This gives me much more insight into the matter. And you provide various solutions with their pros and cons. For the moment I will stick to Thomas' suggestion \setupbreakpoints[compound] because I don't want to change the source files. Many thanks, Christoph ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Hyphenation with dashes in natural table
On 09/11/2017 10:23 PM, Rik Kabel wrote: See http://wiki.contextgarden.net/Compound_words. But this page also contains the solution to the original problem: \setbreakpoints [compound] Thomas ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Hyphenation with dashes in natural table
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 ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Hyphenation with dashes in natural table
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 ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] 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 ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___