ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Re: Hyphenation with dashes in natural table
       [not found] <mailman.1.1505210401.2704.ntg-context@ntg.nl>
@ 2017-09-13  5:59 ` Christoph Reller
  0 siblings, 0 replies; 5+ messages in thread
From: Christoph Reller @ 2017-09-13  5:59 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 328 bytes --]

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

[-- Attachment #1.2: Type: text/html, Size: 416 bytes --]

[-- Attachment #2: Type: text/plain, Size: 492 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Hyphenation with dashes in natural table
  2017-09-11 20:23   ` Rik Kabel
@ 2017-09-11 20:57     ` Thomas A. Schmitz
  0 siblings, 0 replies; 5+ messages in thread
From: Thomas A. Schmitz @ 2017-09-11 20:57 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Hyphenation with dashes in natural table
  2017-09-11 18:14 ` Pablo Rodriguez
@ 2017-09-11 20:23   ` Rik Kabel
  2017-09-11 20:57     ` Thomas A. Schmitz
  0 siblings, 1 reply; 5+ messages in thread
From: Rik Kabel @ 2017-09-11 20:23 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 1439 bytes --]

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


[-- Attachment #1.2: Type: text/html, Size: 2557 bytes --]

[-- Attachment #2: Type: text/plain, Size: 492 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Hyphenation with dashes in natural table
  2017-09-11 13:10 Christoph Reller
@ 2017-09-11 18:14 ` Pablo Rodriguez
  2017-09-11 20:23   ` Rik Kabel
  0 siblings, 1 reply; 5+ messages in thread
From: Pablo Rodriguez @ 2017-09-11 18:14 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Hyphenation with dashes in natural table
@ 2017-09-11 13:10 Christoph Reller
  2017-09-11 18:14 ` Pablo Rodriguez
  0 siblings, 1 reply; 5+ messages in thread
From: Christoph Reller @ 2017-09-11 13:10 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 728 bytes --]

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

[-- Attachment #1.2: Type: text/html, Size: 1005 bytes --]

[-- Attachment #2: Type: text/plain, Size: 492 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-09-13  5:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <mailman.1.1505210401.2704.ntg-context@ntg.nl>
2017-09-13  5:59 ` Hyphenation with dashes in natural table Christoph Reller
2017-09-11 13:10 Christoph Reller
2017-09-11 18:14 ` Pablo Rodriguez
2017-09-11 20:23   ` Rik Kabel
2017-09-11 20:57     ` Thomas A. Schmitz

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).