From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/62935 Path: news.gmane.org!not-for-mail From: Steffen Wolfrum Newsgroups: gmane.comp.tex.context Subject: Re: hyphenated url Date: Tue, 26 Oct 2010 10:57:44 +0200 Message-ID: <6E1ABE79-0E7D-426B-8752-2BACD80CB507@st.estfiles.de> References: <51241DF1-574E-4677-AED5-0D01225C8635@st.estfiles.de> <410FAACA-2464-45B1-AF91-3DD176102EAE@st.estfiles.de> <20101025224952.GD26195@aides> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1081) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1288083481 3368 80.91.229.12 (26 Oct 2010 08:58:01 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 26 Oct 2010 08:58:01 +0000 (UTC) Cc: Philipp Gesang To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Oct 26 10:57:59 2010 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 1PAfLx-00027i-LN for gctc-ntg-context-518@m.gmane.org; Tue, 26 Oct 2010 10:57:57 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 52AD5CA790; Tue, 26 Oct 2010 10:57:56 +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 A+l2AY8QRkLp; Tue, 26 Oct 2010 10:57:52 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 4CB8ACA77B; Tue, 26 Oct 2010 10:57:52 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 20502CA77B for ; Tue, 26 Oct 2010 10:57:50 +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 WqhjOdXatux9 for ; Tue, 26 Oct 2010 10:57:47 +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 DB68BC9A7C for ; Tue, 26 Oct 2010 10:57:47 +0200 (CEST) Original-Received: from smtprelay01.ispgateway.de (smtprelay01.ispgateway.de [80.67.29.23]) by filter1-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id o9Q8vlJG028621 for ; Tue, 26 Oct 2010 10:57:47 +0200 Original-Received: from [89.247.32.55] (helo=[192.168.1.4]) by smtprelay01.ispgateway.de with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.68) (envelope-from ) id 1PAfLl-0007Hn-KJ; Tue, 26 Oct 2010 10:57:45 +0200 In-Reply-To: <20101025224952.GD26195@aides> X-Mailer: Apple Mail (2.1081) X-Df-Sender: 698580 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=80.67.29.23; country=DE; region=02; city=Ismaning; latitude=48.2333; longitude=11.6333; http://maps.google.com/maps?q=48.2333,11.6333&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 06DnkVLD5 - 194850cd7002 - 20101026 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:62935 Archived-At: Hi Aditya, Philipp and all, thank you very much for your interesting ideas! As far as I understood, your starting point is to avoid "%" being treated a= s "comment" ... This is nice for controlled situations. But in real life projects there are many, various situations where the "%" = is used and needed as "comment"! Isn't there a way to treat "%" as a regular character dedicated in the \hyp= henatedurl{} environment only?? Steffen PS @ Philipp: Using "*" as line comment would start the problem again, as "= *" is also a valid part of URL addresses ... of course we need to keep a character for comment. Am 26.10.2010 um 00:49 schrieb Philipp Gesang: > Hi Aditya, Steffen and others, > = > I was toying around with catcode tables too. Shouldn=92t it suffice > to simply change % to =91other=92? This way you can keep the dollar > style math. > = > Philipp > = > =B7=B7=B78<=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7= =B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7= =B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7 > = > \setupinteraction[state=3Dstart] > = > \unprotect > \newcatcodetable \urlcatcodes % ordinary \ctxcatcodes except for minor ch= anges > \startcatcodetable \urlcatcodes > \catcode`\^^I =3D 10 > \catcode`\^^M =3D 5 > \catcode`\^^L =3D 5 > \catcode`\ =3D 10 > \catcode`\^^Z =3D 9 > \catcode`\\ =3D 0 > \catcode`\{ =3D 1 > \catcode`\} =3D 2 > \catcode`\$ =3D 3 > \catcode`\& =3D 4 > \catcode`\# =3D 6 > \catcode`\^ =3D 7 > \catcode`\_ =3D 8 > \catcode`\~ =3D 13 > \catcode`\| =3D 13 > \catcode`\% =3D \@@other > \catcode`\* =3D \@@comment % comment this out if you don=92t need li= ne comments > \stopcatcodetable > = > \protect > = > \starttext > = > \bgroup > TEST > \setcatcodetable \urlcatcodes > \hyphenatedurl{www.test%it.com} > * this should be treated as comment > \footnote{ > \hyphenatedurl{www.test%it.com} > } > Math mode: $(x)(y)\,(Fx\,.\,x=3Dy\,.\supset\,Fy)$ > TEST > \egroup > = > \stoptext > = > =B7=B7=B78<=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7= =B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7= =B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7 ___________________________________________________________________________= ________ 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 ___________________________________________________________________________= ________