From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/71499 Path: news.gmane.org!not-for-mail From: =?windows-1252?Q?Pablo_Rodr=EDguez?= Newsgroups: gmane.comp.tex.context Subject: Re: disabling onum in url Date: Sun, 02 Oct 2011 19:53:13 +0200 Message-ID: <4E88A509.6010704@web.de> References: <4E8843DD.3040500@web.de> <20111002113446.GB17128@aides> <4E8885DE.3060706@web.de> <20111002164057.GA26009@aides> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1317578039 21890 80.91.229.12 (2 Oct 2011 17:53:59 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 2 Oct 2011 17:53:59 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Oct 02 19:53:55 2011 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RAQEc-00012b-PU for gctc-ntg-context-518@m.gmane.org; Sun, 02 Oct 2011 19:53:54 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9024ECAFF8; Sun, 2 Oct 2011 19:53:54 +0200 (CEST) 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 rBCIs9sI-5zF; Sun, 2 Oct 2011 19:53:50 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 4F64DCAFEA; Sun, 2 Oct 2011 19:53:50 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A7F3DCAFC1 for ; Sun, 2 Oct 2011 19:53:48 +0200 (CEST) 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 uAekXERtpAnB for ; Sun, 2 Oct 2011 19:53:46 +0200 (CEST) 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 1F71ACAFEB for ; Sun, 2 Oct 2011 19:53:32 +0200 (CEST) Original-Received: from fmmailgate02.web.de (fmmailgate02.web.de [217.72.192.227]) by filter1-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p92HrVOv009680 for ; Sun, 2 Oct 2011 19:53:31 +0200 Original-Received: from smtp02.web.de ( [172.20.0.184]) by fmmailgate02.web.de (Postfix) with ESMTP id 5B7D01AE94769 for ; Sun, 2 Oct 2011 19:53:31 +0200 (CEST) Original-Received: from [88.13.157.166] (helo=[192.168.1.33]) by smtp02.web.de with asmtp (TLSv1:AES256-SHA:256) (WEB.DE 4.110 #2) id 1RAQEF-00045Z-00 for ntg-context@ntg.nl; Sun, 02 Oct 2011 19:53:31 +0200 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:7.0.1) Gecko/20111001 Thunderbird/7.0.1 In-Reply-To: <20111002164057.GA26009@aides> X-Sender: oinos@web.de X-Provags-ID: V01U2FsdGVkX19PXvwFtv+4e4WC9fSLfR8ozEWtrB6IWBhEMb4v qFg+kCEgRjDnQIyQWr71aNzi1E+mkJcmOD/7oM0zHYfZcx5kfg uu6GN1sv0= X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=217.72.192.227; 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: 06FDRRv7p - 3a1afd97f131 - 20111002 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.69 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:71499 Archived-At: On 10/02/2011 06:40 PM, Philipp Gesang wrote: > Well, in my previous example, rather use: > = > \definefontfeature[url][onum=3Dno,smcp=3Dyes] > = > and come back with a complete example if it doesn=92t help. Philipp, I'm afraid it doesn't work. Sample file: \definefontfeature[default][default][onum=3Dyes] \setupbodyfontenvironment[default][em=3Ditalic] \setupinteraction[state=3Dstart,color=3D,style=3Dem,contrastcolor=3D,focus= =3Dstandard] %%% First, define the switch for text figures: \definefontfeature[url][onum=3Dno,smcp=3Dyes] %%% Best use context=92s default url commands: \useURL[aurl][http://www.pragma-ade.com/download-1.htm] %%% It comes with a proper setup for everything. \setupurl[style=3D{\tf\addff{url}}] %%% If you must use the =93href=94 macro, disable the font feature locally. \define[1]\href{% \begingroup \addff{url}% \goto{\hyphenatedurl{#1}}[url(#1)]% \endgroup% } \starttext 42 %%% With the internal command: \from[aurl] 42 %%% Your way: \href{0123456789abcdef} 42 > (Btw, looks like you consider setting the default font style to > small caps. Is this really what you intended?) No, I was only checking the =93feature=94. It seems that if an OT feature is enabled as default, you cannot disable it for urls (at least, this is what I get). >> After having to write the second url, I began to think it was >> unnecessarily complex. > = > Fwiw I think that \useURL fits the context style best as it > separates the declaration of an element from its use in the > document. Sorry, but I'm afraid I don't see your point. Would you think the same for titles or emphasized text? Imagine a whole book in one document. If you have more than 100 urls, it would be inconvenient to have to go to the document preamble and back to the body text only to add an url. But I guess it might be a question of habits. Many thanks for your help again, 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 ___________________________________________________________________________= ________