From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/62991 Path: news.gmane.org!not-for-mail From: Steffen Wolfrum Newsgroups: gmane.comp.tex.context Subject: Re: hyphenated url Date: Wed, 27 Oct 2010 22:28:56 +0200 Message-ID: References: <51241DF1-574E-4677-AED5-0D01225C8635@st.estfiles.de> <20101025091602.GA26195@aides> <20101025095024.GB26195@aides> <907A35C5-0380-4C63-B6B1-D26628EBD222@st.estfiles.de> <20101025102612.GC26195@aides> <46EA0AD9-208E-4566-B0F1-565B6552AC71@st.estfiles.de> <20101025131225.GA3920@orcus.urz.uni-heidelberg.de> 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 1288211351 19263 80.91.229.12 (27 Oct 2010 20:29:11 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 27 Oct 2010 20:29:11 +0000 (UTC) Cc: Hans Hagen , Taco Hoekwater To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Oct 27 22:29:09 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 1PBCcO-0008Gp-Oa for gctc-ntg-context-518@m.gmane.org; Wed, 27 Oct 2010 22:29:08 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C2569CA79A; Wed, 27 Oct 2010 22:29:07 +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 P-TsvnDS5kJn; Wed, 27 Oct 2010 22:29:04 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id BE0F9CA781; Wed, 27 Oct 2010 22:29:04 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 65607CA781 for ; Wed, 27 Oct 2010 22:29:03 +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 j-tSC1P8qs38 for ; Wed, 27 Oct 2010 22:29:00 +0200 (CEST) Original-Received: from filter2-nij.mf.surf.net (filter2-nij.mf.surf.net [195.169.124.153]) by balder.ntg.nl (Postfix) with ESMTP id 18E0EC9A7C for ; Wed, 27 Oct 2010 22:29:00 +0200 (CEST) Original-Received: from smtprelay04.ispgateway.de (smtprelay04.ispgateway.de [80.67.31.27]) by filter2-nij.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id o9RKG2aJ000683 for ; Wed, 27 Oct 2010 22:16:02 +0200 Original-Received: from [89.247.120.15] (helo=[192.168.1.4]) by smtprelay04.ispgateway.de with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.68) (envelope-from ) id 1PBCcE-0006KH-AQ; Wed, 27 Oct 2010 22:28:58 +0200 In-Reply-To: <20101025131225.GA3920@orcus.urz.uni-heidelberg.de> 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.31.27; 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: 0aDnUg2DK - 87ca5975a2f1 - 20101027 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.153 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:62991 Archived-At: Hi, I tried an other approach: \useURL But here the letterpercent trick doesn't work at all ... ie. there is no cl= ickable link at all anymore! \setupinteraction [state=3Dstart] \showframe \starttext \useURL[aurl] [http://www.kommers.se/upload/Analysarkiv/In\letterperc= ent English/Analyses/Woolcock\letterpercent paper\letterpercent on\letterpe= rcent impact\letterpercent of\letterpercent Lisbontreaty\letterpercent on\l= etterpercent tradepolicy.pdf] [] [http://www.kommers.se/upload/Analysarkiv/= In\letterpercent English/Analyses/Woolcock\letterpercent paper\letterpercen= t on\letterpercent impact\letterpercent of\letterpercent Lisbontreaty\lette= rpercent on\letterpercent tradepolicy.pdf] = test \from[aurl] text \stoptext Steffen Am 25.10.2010 um 15:12 schrieb Philipp Gesang: > On 2010-10-25 <12:45:17>, Steffen Wolfrum wrote: >> = >> Am 25.10.2010 um 12:26 schrieb Philipp Gesang: >>> \unexpanded\gdef\hyphenatedurl >>> = >>> Should work in footnotes. Regards, Philipp >> = >> = >> No, it doesn't (see below). >> Do you have an other idea? > = > Right; it works in footnotes but doesn=92t accomplish what you > want. Sorry, I tried a lot but =91\letterpercent=92 is the only > way it works for me. > = > Concerning the urlencoding I referred to browsers automatically > converting raw urls, like for instance > = > http://www.google.com/search?q=3D=E4hre > = > , which is encoded as > = > http://www.google.com/search?q=3D%C3%A4hre > = > by my browser. As long as your urls mainly consist of unicode > strings you might not need the actual (ascii) percent sign. In > this case you could be fine simply by converting strings like > =91%C3%A4hre=92 to =91=C4hre=92, rendering urls percent-less, and rely on > the browsers to re-encode them on the fly. Might be a bit far > fetched, though. > = > Philipp > = > = >> = >> Thanks, Steffen >> (ConTeXt ver: 2010.10.21) >> = >> = >> Runaway argument? >> {test \hyphenatedurl {www.test\par \stoptext \par = >> ! File ended while scanning use of \@@notemakedescription. >> = >> system > error on line 0 in file : File ended while scanning us= e of \@@notemakedescription ... >> = >> = >> \let\normalhyphenatedurl\hyphenatedurl >> = >> \bgroup >> = >> \catcode`\%=3D11 >> = >> \unexpanded\gdef\hyphenatedurl >> {\bgroup >> \catcode`\%=3D11 >> \expandafter\egroup >> \normalhyphenatedurl} >> = >> \egroup >> = >> \setupinteraction >> [state=3Dstart] >> = >> \starttext >> = >> text\footnote{test \hyphenatedurl{www.test%it.com} test.} text. >> = >> \stoptext >> = >> = >> = >> = >> ________________________________________________________________________= ___________ >> If your question is of interest to others as well, please add an entry t= o the Wiki! >> = >> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-c= ontext >> webpage : http://www.pragma-ade.nl / http://tex.aanhet.net >> archive : http://foundry.supelec.fr/projects/contextrev/ >> wiki : http://contextgarden.net >> ________________________________________________________________________= ___________ > _________________________________________________________________________= __________ > 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-co= ntext > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > _________________________________________________________________________= __________ ___________________________________________________________________________= ________ 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 ___________________________________________________________________________= ________