From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/86013 Path: news.gmane.org!not-for-mail From: Pablo Rodriguez Newsgroups: gmane.comp.tex.context Subject: enable kerning with discretionary hyphen Date: Sun, 19 Jan 2014 18:51:54 +0100 Message-ID: <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" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1390153924 2255 80.91.229.3 (19 Jan 2014 17:52:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 19 Jan 2014 17:52:04 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Jan 19 18:52:12 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 1W4wXa-0005xD-BG for gctc-ntg-context-518@m.gmane.org; Sun, 19 Jan 2014 18:52:10 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C1114101E1; Sun, 19 Jan 2014 18:52:09 +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 qxKkDPXFjD1A; Sun, 19 Jan 2014 18:52:06 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 07C84101E2; Sun, 19 Jan 2014 18:52:06 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id DAE09101E2 for ; Sun, 19 Jan 2014 18:52:04 +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 m7RHuuc52qiz for ; Sun, 19 Jan 2014 18:52:03 +0100 (CET) Original-Received: from filter1-ams.mf.surf.net (filter1-ams.mf.surf.net [192.87.102.69]) by balder.ntg.nl (Postfix) with ESMTP id 2B8CA101E1 for ; Sun, 19 Jan 2014 18:52:03 +0100 (CET) Original-Received: from mout.gmx.net (mout.gmx.net [212.227.15.18]) by filter1-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s0JHq0fl001493 for ; Sun, 19 Jan 2014 18:52:02 +0100 Original-Received: from [192.168.1.33] ([88.13.159.7]) by mail.gmx.com (mrgmx003) with ESMTPSA (Nemesis) id 0M08eS-1VB47v3BqW-00uIiP for ; Sun, 19 Jan 2014 18:52:00 +0100 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 X-Provags-ID: V03:K0:SOhW+V2LEezVMLTycVFihQ9YA5j8AVYOUKWCyYCNNQkNgZsZqpx w9ksbW0Q+B3/13ONUr4ploEbX2QD91naxr0ZJpK1FkB8R5qPyGIhsX8wzAtY0DCkCnlt684 5mMHeyG++PZVkZMNg+wZBGCVA+A0XqtXQaGqhhhGi30CLOVuSRURjBvM0XBEjn+AtvHn5AT 9osJVMRHl0mYMiGeVOEKQ== X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=212.227.15.18; country=DE; latitude=51.0000; longitude=9.0000; http://maps.google.com/maps?q=51.0000,9.0000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0NLfRQ00A - 8707058d1beb - 20140119 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.69 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:86013 Archived-At: 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. Many thanks for your help, Pablo -- = http://www.ousia.tk ___________________________________________________________________________= ________ 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 ___________________________________________________________________________= ________