From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/88602 Path: news.gmane.org!not-for-mail From: Prashanth N Rao Newsgroups: gmane.comp.tex.context Subject: hyperlinks with special characters Date: Fri, 29 Aug 2014 19:48:37 +0200 Message-ID: <1693802.7mXudW1K6g@prash5> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1948387773==" X-Trace: ger.gmane.org 1409334596 15474 80.91.229.3 (29 Aug 2014 17:49:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 29 Aug 2014 17:49:56 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Aug 29 19:49:52 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 1XNQJ5-0007ID-P5 for gctc-ntg-context-518@m.gmane.org; Fri, 29 Aug 2014 19:49:51 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 85007101FF for ; Fri, 29 Aug 2014 19:49:51 +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 yDY9fRuaHaLB for ; Fri, 29 Aug 2014 19:49:51 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 418941020D for ; Fri, 29 Aug 2014 19:49:17 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9A9B51031B for ; Fri, 29 Aug 2014 19:49:11 +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 5uv96KVvawzS for ; Fri, 29 Aug 2014 19:49:07 +0200 (CEST) Original-Received: from filter4-ams.mf.surf.net (filter4-ams.mf.surf.net [192.87.102.72]) by balder.ntg.nl (Postfix) with ESMTP id 69A74102BB for ; Fri, 29 Aug 2014 19:48:47 +0200 (CEST) Original-Received: from mail-wg0-x22e.google.com (mail-wg0-x22e.google.com [IPv6:2a00:1450:400c:c00::22e]) by filter4-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s7THmi8j028585 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Fri, 29 Aug 2014 19:48:45 +0200 Original-Received: by mail-wg0-f46.google.com with SMTP id x13so2458160wgg.29 for ; Fri, 29 Aug 2014 10:48:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:user-agent:mime-version :content-type; bh=0ASaMK8hcLOiofo9i60FJZM8lSVbbVxTukicjq0b6C4=; b=d2RObOpFu2nwewYqsxR5bu7Fw5Y4eEz0+4T8ysuKE1jtKk06xxDac01T/1Qn/ZfctV 3LPt3X5vhnOa3UBzOuvIv2jPrp2dFxJ+qbmZDJxBKpnIiQn0T1LpL0W4UwQBFlDWosmR USj57lwJPobX5w2XNofMij13qopkMbHH9BPoDDx3KGdzcdBgaybWMEwrILtExM6oFVGj EQuVt9WY6dS3ldo+b/NfwxEFmzcxSkzktj12iuygNi9Q3KSbS0+WXcBIuGKpvtu4+dPA 8MJ4NV8hzFUWX94F2V4M4FRBpTtT4Rp6NxmQRv51JfXlz4ZvjaGsyX1zUFmJft4AFs9u 8kMw== X-Received: by 10.180.78.234 with SMTP id e10mr5462626wix.7.1409334524579; Fri, 29 Aug 2014 10:48:44 -0700 (PDT) Original-Received: from prash5.localnet (dslb-188-097-241-059.188.097.pools.vodafone-ip.de. [188.97.241.59]) by mx.google.com with ESMTPSA id lq8sm1438667wjb.49.2014.08.29.10.48.43 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 29 Aug 2014 10:48:43 -0700 (PDT) User-Agent: KMail/4.14 (Linux/3.14.17-1-lts; KDE/4.14.0; x86_64; ; ) X-Bayes-Prob: 0.5368 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2a00:1450:400c:c00::22e; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 01MIFMIxk - 17855193bb8d - 20140829 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) 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:88602 Archived-At: --===============1948387773== Content-Type: multipart/signed; boundary="nextPart15166153.LzS6mKQ1MZ"; micalg="pgp-sha512"; protocol="application/pgp-signature" --nextPart15166153.LzS6mKQ1MZ Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="utf-8" I have already asked this question on Stackexchange. It appears that no one who has seen the question knows an answer. I figure I'll ask here too, just to cover all bases. I need to link to some online resources in my PDF file. Based on the official documentation, I have written: > \useURL[dbdk] [http://dbpedia.org/page/The_Dark_Knight_(film)] [] [it's link to DBPedia] > > Lorem ipsum \goto{the LinkedMDB.org entry on The Dark Knight}[url(http://data.linkedmdb.org/page/film/6224)], and \from[dbdk] dolor sit amet. Note my code for the link to DBpedia: I had to write it in this convoluted way, instead of using my preferred \goto, because the link has the special characters, `(` and `)`. These characters interfered with `url()`. I can't use HTML's URL encoding scheme because the `%`s interfere with TeX. Is there another escape code format in ConTeXt for use within `\goto{...}[url(...)]`? Using the suggestion by @phg, I tried the following: > \startasciimode > Lorem ipsum \goto{the LinkedMDB.org entry on The Dark Knight}[url(http://data.linkedmdb.org/page/film/6224)], and \goto{it's link to DBPedia}[url(http://dbpedia.org/page/The_Dark_Knight_%28film%29)] dolor sit amet. > \stopasciimode I still had to use escape codes, `%28` and `%29`, to keep it from interfering with url(). It turns out that DBpedia does not like these codes, and requires the actual characters. Is there another way I put them in `\goto{...}[url(...)]`? Thanks! Prash --nextPart15166153.LzS6mKQ1MZ Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAABCgAGBQJUALz6AAoJEOrmHj8mHFQ90xwQAJt0a/gVlH4YNbmAHcnBgiDk b3OTP1HB52M7uPH7fFuvyLXhupK4ntm35ZKpwa8FKD5mYFU4/CkpHJovjiUnk3XI zJdR4bsnbNrw8MMKdMZYbdgBVq4k6TncCgtbgd4rGoV5uNMIHgUJL7ul89y3I178 t2Prw3/xtprpuiI8anUpk7MG7+ZU/c+iIsY7RoRGUwzLuHIsptCcPGVqj/Oou52G mHYJJ+VkpfsXNX0g36GHVTr9umyM81AywrNbDjKk51yYfMqYFm/1DjXVlW+TxP3n wimf2Cefhook43VQOtK6uqrApsrUCM9p0cfYYs71Z3EnUfc1VH1fRf51eeAwi54X d9hUxZ2UQYRpY+uijDP9LYX/0B27w9qXLk0QyY5x+1eUjpOfyyitBBFm1LMvd/AQ mFAh/q7+hOlCDR9ngeYmBxy3SNcKPXxGUVxJaeLF2tpm0zXFK2QSu/QkpdDp5n8e yK3oNf5VfBuMbRhzwnA+1BvI+IDILwF4KlCoIxY+q3kPQx1tdWdRE39w9zOIkb41 njZHEslRsvjZ5eR70SSsS5NsS4FAi4q8HMkF7Py9S1WTENancKjNPAi88K8FDd/B Meusx/Cay9PwoqaBbUR/qQWCUORZieQR41XIQa6ZPfkQ+k+un4ynJKF/r4RnD1nN O+dAuznoeOAEpNeFZRU9 =wLVE -----END PGP SIGNATURE----- --nextPart15166153.LzS6mKQ1MZ-- --===============1948387773== 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 ___________________________________________________________________________________ --===============1948387773==--