From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/86016 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: enable kerning with discretionary hyphen Date: Sun, 19 Jan 2014 23:43:43 +0100 Message-ID: <52DC551F.1000705@wxs.nl> References: <52DC10BA.8060008@gmx.es> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="windows-1252"; Format="flowed" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1390171430 25778 80.91.229.3 (19 Jan 2014 22:43:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 19 Jan 2014 22:43:50 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Jan 19 23:43:59 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 1W515y-0006ph-Gb for gctc-ntg-context-518@m.gmane.org; Sun, 19 Jan 2014 23:43:58 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9E5DD101E1; Sun, 19 Jan 2014 23:43:57 +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 16z9JZyKq7yl; Sun, 19 Jan 2014 23:43:55 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 7E973101E2; Sun, 19 Jan 2014 23:43:55 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9D6E9101E2 for ; Sun, 19 Jan 2014 23:43:53 +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 nMifo+MSHT53 for ; Sun, 19 Jan 2014 23:43:52 +0100 (CET) Original-Received: from filter1-utr.mf.surf.net (filter1-utr.mf.surf.net [195.169.124.152]) by balder.ntg.nl (Postfix) with ESMTP id 261EC101E1 for ; Sun, 19 Jan 2014 23:43:51 +0100 (CET) Original-Received: from smtp.ziggozakelijk.nl (D57D1DA2.static.ziggozakelijk.nl [213.125.29.162]) by filter1-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s0JMho0t029867 for ; Sun, 19 Jan 2014 23:43:50 +0100 X-Default-Received-SPF: pass (skip=loggedin (res=PASS)) x-ip-name=10.100.1.103; Original-Received: from [10.100.1.103] (unverified [10.100.1.103]) by pragma-net.nl (SurgeMail 6.3c2) with ESMTP id 6016-1713362 for ; Sun, 19 Jan 2014 23:43:50 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 In-Reply-To: <52DC10BA.8060008@gmx.es> X-Authenticated-User: hagen@controller-9 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=213.125.29.162; country=NL; region=15; city=Zwolle; latitude=52.5058; longitude=6.0858; http://maps.google.com/maps?q=52.5058,6.0858&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 07LfWHOIK - 53f0171bd6f0 - 20140119 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) 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:86016 Archived-At: On 1/19/2014 6:51 PM, Pablo Rodriguez wrote: > Dear list, > > as I have asked in a previous message to the list, I wanted to be able > to hyphenate \ConTeXt. > > Aditya kindly suggested the use of \discretionary, but this has an > unintended collateral effect: kerning is disabled in the word. > > I can specify kerning with \discretionary, such as in: > > \def\ConTeXt{Con\discretionary{-}{}{\kern-.06em}\TeX{}t} > > But this also has another consequence: this works right for Pagella > regular, but this is wrong with the italic font or in small caps (also > with the bold or bold italic fonts, but I don=92t use them). > > \hyphenation would be the way to solve this, but I don=92t know how to > make it work: > > \def\ConTeXt{Con\TeX{}t} > \hyphenation{Con-\TeX} > \starttext > \hsize\zeropoint > \ConTeXt > > ConTeXt > \stoptext > > Even in the case it could work, I would like to know how I could define > commands (\ConTeXt or \TeX) only referred to individual fonts. just use \def\ConTeXt{Con\-TeXt} then or \def\ConTeXt{Con\-text} or = whatever you like ... we're not that picky about it. Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________