From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/62927 Path: news.gmane.org!not-for-mail From: Philipp Gesang Newsgroups: gmane.comp.tex.context Subject: Re: hyphenated url Date: Tue, 26 Oct 2010 00:49:52 +0200 Message-ID: <20101025224952.GD26195@aides> References: <51241DF1-574E-4677-AED5-0D01225C8635@st.estfiles.de> <410FAACA-2464-45B1-AF91-3DD176102EAE@st.estfiles.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0890748411==" X-Trace: dough.gmane.org 1288047020 8718 80.91.229.12 (25 Oct 2010 22:50:20 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 25 Oct 2010 22:50:20 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Oct 26 00:50:17 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 1PAVrt-00006I-Bw for gctc-ntg-context-518@m.gmane.org; Tue, 26 Oct 2010 00:50:17 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7EC06CA788; Tue, 26 Oct 2010 00:50:16 +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 M0k33npjoct3; Tue, 26 Oct 2010 00:50:16 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 4377FCA77B; Tue, 26 Oct 2010 00:50:04 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 424D1CA77B for ; Tue, 26 Oct 2010 00:50:02 +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 6VST9WTMbRet for ; Tue, 26 Oct 2010 00:49:55 +0200 (CEST) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id 2B28BCA77A for ; Tue, 26 Oct 2010 00:49:55 +0200 (CEST) Original-Received: from relay2.uni-heidelberg.de (relay2.uni-heidelberg.de [129.206.210.211]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id o9PMns0Y015056 for ; Tue, 26 Oct 2010 00:49:54 +0200 Original-Received: from ix.urz.uni-heidelberg.de (cyrus-portal.urz.uni-heidelberg.de [129.206.100.176]) by relay2.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id o9PMntiY014043 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 26 Oct 2010 00:49:55 +0200 Original-Received: from extmail.urz.uni-heidelberg.de (extmail.urz.uni-heidelberg.de [129.206.100.140]) by ix.urz.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id o9PMnrid001138 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 26 Oct 2010 00:49:53 +0200 Original-Received: from localhost (mnhm-4d0121ec.pool.mediaWays.net [77.1.33.236]) (authenticated bits=0) by extmail.urz.uni-heidelberg.de (8.13.4/8.13.1) with ESMTP id o9PMnRb2027781 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Tue, 26 Oct 2010 00:49:27 +0200 In-Reply-To: X-Operating-System: Linux aides 2.6.35-ARCH X-Polite-Request: "Please try to be nice, don't send html mail." User-Agent: Mutt/1.5.20 (2009-06-14) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=129.206.210.211; country=DE; region=01; city=Heidelberg; latitude=49.4167; longitude=8.7000; http://maps.google.com/maps?q=49.4167,8.7000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0rDnaNSuh - cb2e619cb5fa - 20101026 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 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:62927 Archived-At: --===============0890748411== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="cHMo6Wbp1wrKhbfi" Content-Disposition: inline --cHMo6Wbp1wrKhbfi Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2010-10-25 <17:00:39>, Aditya Mahajan wrote: > On Mon, 25 Oct 2010, Steffen Wolfrum wrote: >=20 > > > >Am 25.10.2010 um 19:30 schrieb Aditya Mahajan: > > > >>On Mon, 25 Oct 2010, Steffen Wolfrum wrote: > >> > >>>Hi, > >>> > >>>the "%" is a frequently used character in URL. > >>>But \hyphenatedurl{} can deal with it ... > >>> > >>>Does someone has a fix? > >>> > >>> > >>>\starttext > >>>text\footnote{test \hyphenatedurl{www.test%it.com} test.} text. > >>>\stoptext > >> > >>An extreme solution: > >> > >>\startcatcodetable \txtcatcodes > >> \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 14 > >>\stopcatcodetable > >>\starttext > >>\asciimode > >>text\footnote{test \hyphenatedurl{www.test%it.com} test.} text. > >>\stoptext > > > > > > > >As I don't have any experience with "\asciimode" "I am not sure if I can= map this entirely on a complex book project... >=20 > In addition to usual asciimode, I changed the definition so that % > does not have its usual meaning. So, % is no longer a comment; it > just typesets percentage sign. You can get a comment using >=20 > \starthiding ... \stophiding. >=20 > >Any known side-effects? >=20 > * You need to use \math{...} to go into math mode. $ will just give > a dollar. >=20 > * You need \startformula ... \stopformula to go into display math. > $$...$$ will just print dollars. >=20 > * _ in text mode will produce an underscore instead of an error. _ > in math mode will work fine. The same for ^. >=20 > * You need >=20 > \starttex(something) (I don't remember on the top of my head) > \def\whatever#1{...} > \stoptex(something) >=20 > to change the definition of a macro. >=20 > I have never really tested it on a large document. Maybe you can > just add this and see if everything compiles. Hi Aditya, Steffen and others, I was toying around with catcode tables too. Shouldn=E2=80=99t it suffice to simply change % to =E2=80=98other=E2=80=99? This way you can keep the do= llar style math. Philipp =C2=B7=C2=B7=C2=B78<=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7= =C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2= =B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7= =C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2= =B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7= =C2=B7 \setupinteraction[state=3Dstart] \unprotect \newcatcodetable \urlcatcodes % ordinary \ctxcatcodes except for minor chan= ges \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=E2=80=99t ne= ed line 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 =C2=B7=C2=B7=C2=B78<=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7= =C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2= =B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7= =C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2= =B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7= =C2=B7 --=20 () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments --cHMo6Wbp1wrKhbfi Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEYEARECAAYFAkzGCZAACgkQ02lYlJYWs9I1sgCglqmnXCjFRzJh55Sq4r+R1m+t YdoAn3oGke0t+MfGTMNMGCQWKItv0IAQ =FE8x -----END PGP SIGNATURE----- --cHMo6Wbp1wrKhbfi-- --===============0890748411== 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 ___________________________________________________________________________________ --===============0890748411==--