From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/85963 Path: news.gmane.org!not-for-mail From: Marco Patzer Newsgroups: gmane.comp.tex.context Subject: Re: hyphenating \ConTeXt Date: Wed, 15 Jan 2014 23:56:07 +0100 Message-ID: <20140115225607.GK2768@homerow> References: <52D70B33.8030805@gmx.es> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1047670107==" X-Trace: ger.gmane.org 1389826575 6491 80.91.229.3 (15 Jan 2014 22:56:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 15 Jan 2014 22:56:15 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Wed Jan 15 23:56:23 2014 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1W3ZNm-0005j8-FK for gctc-ntg-context-518@m.gmane.org; Wed, 15 Jan 2014 23:56:22 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 913A9101EA; Wed, 15 Jan 2014 23:56:21 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id o5oQsA2LwYaR; Wed, 15 Jan 2014 23:56:20 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 418D1101E3; Wed, 15 Jan 2014 23:56:20 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C146C101E3 for ; Wed, 15 Jan 2014 23:56:18 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id KwVmGnHf4lYP for ; Wed, 15 Jan 2014 23:56:15 +0100 (CET) Original-Received: from filter1-til.mf.surf.net (filter1-til.mf.surf.net [194.171.167.217]) by balder.ntg.nl (Postfix) with ESMTP id D7154101DE for ; Wed, 15 Jan 2014 23:56:15 +0100 (CET) Original-Received: from forward18.mail.yandex.net (forward18.mail.yandex.net [95.108.253.143]) by filter1-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s0FMu9g0009366 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Wed, 15 Jan 2014 23:56:15 +0100 Original-Received: from smtp18.mail.yandex.net (smtp18.mail.yandex.net [95.108.252.18]) by forward18.mail.yandex.net (Yandex) with ESMTP id 18F4E1783145 for ; Thu, 16 Jan 2014 02:56:09 +0400 (MSK) Original-Received: from smtp18.mail.yandex.net (localhost [127.0.0.1]) by smtp18.mail.yandex.net (Yandex) with ESMTP id D7D1318A0D5F for ; Thu, 16 Jan 2014 02:56:08 +0400 (MSK) Original-Received: from xdsl-188-118-183-232.dip.osnanet.de (xdsl-188-118-183-232.dip.osnanet.de [188.118.183.232]) by smtp18.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id MDBcZpig37-u8weKABs; Thu, 16 Jan 2014 02:56:08 +0400 (using TLSv1 with cipher AES128-SHA (128/128 bits)) (Client certificate not present) X-Yandex-Uniq: 0a6b5f85-1dda-4ffa-9fd1-6df5d8ea3ab2 Mail-Followup-To: ntg-context@ntg.nl In-Reply-To: <52D70B33.8030805@gmx.es> X-PGP-Key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xB8CFCB65D4F08C27 User-Agent: Mutt/1.5.21 (2010-09-15) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=95.108.253.143; country=RU; latitude=60.0000; longitude=100.0000; http://maps.google.com/maps?q=60.0000,100.0000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0RLemUaio - adab7755c138 - 20140115 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.217 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 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-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:85963 Archived-At: --===============1047670107== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="5mZBmBd1ZkdwT1ny" Content-Disposition: inline --5mZBmBd1ZkdwT1ny Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2014=E2=80=9301=E2=80=9315 Pablo Rodriguez wrote: > how should I invoke \hyphenation so it hyphens the \ConTeXt command? \ConTeXt is defined as =E2=80=9CCon\TeX t=E2=80=9D and \TeX uses kerns and = boxes, both of which suppress hyphenation. AFAIK there's no easy way around it. That having said you can surely redefine the \TeX macro to include custom hyphenation points using \discretionary. Here an example which inserts a hyphenation point after the =E2=80=9CT=E2=80=9D: \unexpanded\def\TeX {\dontleavehmode \begingroup \setbox\scratchbox\hbox{M}%% T%% \discretionary{-}{}{\kern-.1667\wd\scratchbox} \lower.5ex\hbox{E}%% \kern-.125\wd\scratchbox X%% \endgroup} \starttext \hsize\zeropoint \ConTeXt \stoptext > Many thanks for your help, My help is conditional in this case. Don't ever let me know *why* you actually want to do this ;) Marco --5mZBmBd1ZkdwT1ny Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJS1xIDAAoJEPGqVaNSn0iK/bcH/jjADWe5FAeFs6XdgLRctzVF F4l9EJufIjqSOBJOSrWS1I5CCtJf52ojkWp7KVGjUqo4xooN9jE4P8eiZU2mzqvz RafXrrsK2EB/ahso+nwEi9U7vK2jvmJ+uRdRK0O1a1gPWxLBpI6vzNc8b/cDBI86 UVMytlm3sQT2RVqhCfq7VbyneDo5ibJoEqsUHCd5XQbQnyL+YNEtLR/IwVIilTvl 9I55O7CZTID0F8VZrhYywr7lYEWmCDaK62eFJtWVAfzMB9enAhobdim2NZSHQBuV rIwa6zrG6FuKm0h613t+AjdvZIRKkj8wytTGSgsawIDi6gAWl3qqpoSJHCQD8xg= =KY8T -----END PGP SIGNATURE----- --5mZBmBd1ZkdwT1ny-- --===============1047670107== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --===============1047670107==--