From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/99101 Path: news.gmane.org!.POSTED!not-for-mail From: Rik Kabel Newsgroups: gmane.comp.tex.context Subject: Re: Hyphenation with dashes in natural table Date: Mon, 11 Sep 2017 16:23:59 -0400 Message-ID: <979820e0-ef53-10ff-a723-4de6c0a8e210@rik.users.panix.com> References: <6173326b-c7f6-d5de-12cd-ab548dc062ab@gmx.es> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6818003573142999078==" X-Trace: blaine.gmane.org 1505329524 17893 195.159.176.226 (13 Sep 2017 19:05:24 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 13 Sep 2017 19:05:24 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Mon Sep 11 22:25:00 2017 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1drVG4-00084M-7w for gctc-ntg-context-518@m.gmane.org; Mon, 11 Sep 2017 22:24:40 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 2B15188639; Mon, 11 Sep 2017 22:24:21 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id cJeSWpYICq-w; Mon, 11 Sep 2017 22:24:19 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id DD3A98865C; Mon, 11 Sep 2017 22:24:19 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 990428865C for ; Mon, 11 Sep 2017 22:24:19 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id V41FQdKu2KKH for ; Mon, 11 Sep 2017 22:24:18 +0200 (CEST) Original-Received: from mailbackend.panix.com (mailbackend.panix.com [166.84.1.89]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 2B37A88639 for ; Mon, 11 Sep 2017 22:24:08 +0200 (CEST) Original-Received: from [192.168.201.10] (cpe-24-194-22-135.nycap.res.rr.com [24.194.22.135]) by mailbackend.panix.com (Postfix) with ESMTPSA id 7BB2B11E53 for ; Mon, 11 Sep 2017 16:24:05 -0400 (EDT) In-Reply-To: <6173326b-c7f6-d5de-12cd-ab548dc062ab@gmx.es> Content-Language: en-US X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:99101 This is a multi-part message in MIME format. --===============6818003573142999078== Content-Type: multipart/alternative; boundary="------------4959DEC46612B490D56372A7" Content-Language: en-US This is a multi-part message in MIME format. --------------4959DEC46612B490D56372A7 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit 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 --------------4959DEC46612B490D56372A7 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit
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

--------------4959DEC46612B490D56372A7-- --===============6818003573142999078== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f --===============6818003573142999078==--