Re: [NTG-context] hyphenated url

2010-10-31 Thread Aditya Mahajan
On Sun, 31 Oct 2010, Steffen Wolfrum wrote: Am 31.10.2010 um 07:06 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 \hyph

Re: [NTG-context] hyphenated url

2010-10-31 Thread Steffen Wolfrum
Am 31.10.2010 um 07:06 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.t

Re: [NTG-context] hyphenated url

2010-10-30 Thread 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 This is more a proof of concept so I did not

Re: [NTG-context] hyphenated url

2010-10-28 Thread Wolfgang Schuster
Am 28.10.2010 um 13:02 schrieb Khaled Hosny: > On Thu, Oct 28, 2010 at 11:53:52AM +0200, Peter Münster wrote: >> On Thu, Oct 28 2010, Hans Hagen wrote: >> >>> If we can agree that asciimode also makes % a characters I can add >>> that preset. >> >> I agree. It's more consistent. > > Me too :)

Re: [NTG-context] hyphenated url

2010-10-28 Thread Wolfgang Schuster
Am 28.10.2010 um 08:53 schrieb Taco Hoekwater: > On 10/27/2010 02:43 PM, Wolfgang Schuster wrote: >> >> Am 27.10.2010 um 12:35 schrieb Steffen Wolfrum: >> >>> Hi Hans and other catcode wizards, >>> >>> isn't there a way to make this kind of catcode trickery only be available >>> *inside* \hyp

Re: [NTG-context] hyphenated url (SOLVED)

2010-10-28 Thread Steffen Wolfrum
Am 28.10.2010 um 08:53 schrieb Taco Hoekwater: > This works: > > \startbuffer [comurl] \catcode`\%=12 > \hyphenatedurl{... If I didn't overlook something, then this must be finally the solution: \startbuffer [comurl] \catcode`\%=12 \useURL[test][http://www.kommers.se/upload/Analysarkiv/In%20

Re: [NTG-context] hyphenated url

2010-10-28 Thread Peter Münster
On Thu, Oct 28 2010, Khaled Hosny wrote: > Me too :) We just need some other way to put inline comments. I don't know, if it's possible, but \% could be nice. Peter -- Contact information: http://pmrb.free.fr/contact/ ___

Re: [NTG-context] hyphenated url

2010-10-28 Thread Khaled Hosny
On Thu, Oct 28, 2010 at 11:53:52AM +0200, Peter Münster wrote: > On Thu, Oct 28 2010, Hans Hagen wrote: > > > If we can agree that asciimode also makes % a characters I can add > > that preset. > > I agree. It's more consistent. Me too :) We just need some other way to put inline comments. Rega

Re: [NTG-context] hyphenated url

2010-10-28 Thread Peter Münster
On Thu, Oct 28 2010, Hans Hagen wrote: > If we can agree that asciimode also makes % a characters I can add > that preset. I agree. It's more consistent. Peter -- Contact information: http://pmrb.free.fr/contact/

Re: [NTG-context] hyphenated url

2010-10-28 Thread Hans Hagen
On 27-10-2010 7:08, Peter Münster wrote: On Wed, Oct 27 2010, Wolfgang Schuster wrote: He wants perhaps: \starthyphenatedurl www.%.com \stophyphenatedurl No, he wants \footnote{...\hyphenatedurl{...%...}...} Yes. But if I understand TeX right, then there will be only 2 possibilities: 1.

Re: [NTG-context] hyphenated url

2010-10-28 Thread Philipp Gesang
On 2010-10-28 <08:46:55>, Steffen Wolfrum wrote: > > Am 28.10.2010 um 00:05 schrieb Philipp Gesang: > > > % Usage example here: > > > > \startuseURL[anotherurl][urldescription] > > http://test%it.example.com > > \stopuseURL > > > > \starttext > > > > \from[anotherurl]\par > > \url[anotherurl]\

Re: [NTG-context] hyphenated url

2010-10-28 Thread Peter Münster
On Thu, Oct 28 2010, Steffen Wolfrum wrote: > > > \startuseURL[anotherurl][urldescription] > > http://test%it.example.com > > \stopuseURL > > this doesn't work ... the address gets corrupt! > > Just run it, open the PDF in Acrobat and test the link: > > "Acrobat is attempting to connect to > h

Re: [NTG-context] hyphenated url

2010-10-27 Thread Taco Hoekwater
On 10/27/2010 02:43 PM, Wolfgang Schuster wrote: Am 27.10.2010 um 12:35 schrieb Steffen Wolfrum: Hi Hans and other catcode wizards, isn't there a way to make this kind of catcode trickery only be available *inside* \hyphenatedurl{} environment? It’s useless in this case because the „%“ is

Re: [NTG-context] hyphenated url

2010-10-27 Thread Steffen Wolfrum
Am 28.10.2010 um 00:05 schrieb Philipp Gesang: > % Usage example here: > > \startuseURL[anotherurl][urldescription] > http://test%it.example.com > \stopuseURL > > \starttext > > \from[anotherurl]\par > \url[anotherurl]\par > > Test.\footnote{\url[anotherurl]} > > \stoptext Hi Philipp, th

Re: [NTG-context] hyphenated url

2010-10-27 Thread Philipp Gesang
On 2010-10-27 <22:28:56>, Steffen Wolfrum wrote: > > Hi, > > I tried an other approach: \useURL > > But here the letterpercent trick doesn't work at all ... ie. > there is no clickable link at all anymore! Hi Steffen, if you consider an environment-style version of ‘\useURL’ appropriate, you c

Re: [NTG-context] hyphenated url

2010-10-27 Thread Peter Münster
On Mon, Oct 25 2010, Steffen Wolfrum wrote: > > http://www.cirp.ru/conferences/new%20neighborhood%20policy/publications/frellesen%20paper.doc > > There is no way to typeset this in ConTeXt MkIV??? No problem here: \setupinteraction[state=start] \starttext No hexa-code after percent, so Acroread

Re: [NTG-context] hyphenated url

2010-10-27 Thread Steffen Wolfrum
Hi, I tried an other approach: \useURL But here the letterpercent trick doesn't work at all ... ie. there is no clickable link at all anymore! \setupinteraction [state=start] \showframe \starttext \useURL[aurl] [http://www.kommers.se/upload/Analysarkiv/In\letterpercent English/An

Re: [NTG-context] hyphenated url

2010-10-27 Thread Peter Münster
On Wed, Oct 27 2010, Aditya Mahajan wrote: > That has to do with the definition of typing: > http://tracker.luatex.org/view.php?id=505 Ah, that means, that buffers can solve the problem: \starttext \startbuffer \starttyping bla%bla \stoptyping \stopbuffer bla\footnote{ bla \getbuffer

Re: [NTG-context] hyphenated url

2010-10-27 Thread Aditya Mahajan
On Wed, 27 Oct 2010, Peter Münster wrote: On Wed, Oct 27 2010, Peter Münster wrote: Yes. But if I understand TeX right, then there will be only 2 possibilities: 1.) \footnote{bla \starthyphenatedurl www.%.com \stophyphenatedurl bla bla} Ok, I must be wrong, because this does not work neithe

Re: [NTG-context] hyphenated url

2010-10-27 Thread Wolfgang Schuster
Am 27.10.2010 um 12:35 schrieb Steffen Wolfrum: > Hi Hans and other catcode wizards, > > isn't there a way to make this kind of catcode trickery only be available > *inside* \hyphenatedurl{} environment? It’s useless in this case because the „%“ is read from the footnote before \hyphenatedurl

Re: [NTG-context] hyphenated url

2010-10-27 Thread Steffen Wolfrum
Am 26.10.2010 um 00:49 schrieb Philipp Gesang: > On 2010-10-25 <17:00:39>, Aditya Mahajan wrote: >> On Mon, 25 Oct 2010, Steffen Wolfrum wrote: >> >>> >>> Am 25.10.2010 um 19:30 schrieb Aditya Mahajan: >>> On Mon, 25 Oct 2010, Steffen Wolfrum wrote: > Hi, > > the "%" is

Re: [NTG-context] hyphenated url

2010-10-26 Thread Steffen Wolfrum
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 as "comment" ... This is nice for controlled situations. But in real life projects there are many, various situations where the "%" is used and

Re: [NTG-context] hyphenated url

2010-10-25 Thread Philipp Gesang
On 2010-10-25 <17:00:39>, Aditya Mahajan wrote: > On Mon, 25 Oct 2010, Steffen Wolfrum wrote: > > > > >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{

Re: [NTG-context] hyphenated url

2010-10-25 Thread Wolfgang Schuster
Am 25.10.2010 um 23:00 schrieb Aditya Mahajan: > 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 > > \starthiding ... \stophiding. But there is n

Re: [NTG-context] hyphenated url

2010-10-25 Thread Aditya Mahajan
On Mon, 25 Oct 2010, Steffen Wolfrum wrote: 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 \hyph

Re: [NTG-context] hyphenated url

2010-10-25 Thread Steffen Wolfrum
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.t

Re: [NTG-context] hyphenated url

2010-10-25 Thread 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 \tx

Re: [NTG-context] hyphenated url

2010-10-25 Thread Steffen Wolfrum
Am 25.10.2010 um 15:12 schrieb Philipp Gesang: > Concerning the urlencoding I referred to browsers automatically > converting raw urls, like for instance > > http://www.google.com/search?q=ähre > > , which is encoded as > > http://www.google.com/search?q=%C3%A4hre > > by my browser. As long

Re: [NTG-context] hyphenated url

2010-10-25 Thread 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’t acco

Re: [NTG-context] hyphenated url

2010-10-25 Thread Steffen Wolfrum
Am 25.10.2010 um 12:26 schrieb Philipp Gesang: > On 2010-10-25 <12:05:37>, Steffen Wolfrum wrote: >> >> \let\normalhyphenatedurl\hyphenatedurl >> >> \bgroup >> >> \catcode`\%=11 >> >> \gdef\hyphenatedurl > > \unexpanded\gdef\hyphenatedurl > > Should work in footnotes. Regards, Philipp No,

Re: [NTG-context] hyphenated url

2010-10-25 Thread Philipp Gesang
On 2010-10-25 <12:05:37>, Steffen Wolfrum wrote: > > \let\normalhyphenatedurl\hyphenatedurl > > \bgroup > > \catcode`\%=11 > > \gdef\hyphenatedurl \unexpanded\gdef\hyphenatedurl Should work in footnotes. Regards, Philipp > {\bgroup > \catcode`\%=11 > \expandafter\egroup > \normalhyphe

Re: [NTG-context] hyphenated url

2010-10-25 Thread Steffen Wolfrum
Am 25.10.2010 um 11:16 schrieb Philipp Gesang: > text\footnote{test \hyphenatedurl{www.test\letterpercent it.com} test.} text. > > Regards, Philipp > > PS: As I understand, the percent sign appears mostly in > url-encoded strings. Couldn’t you just convert that to unicode > and let the browser

Re: [NTG-context] hyphenated url

2010-10-25 Thread Steffen Wolfrum
Am 25.10.2010 um 11:50 schrieb Philipp Gesang: > On 2010-10-25 <11:39:12>, Steffen Wolfrum wrote: >> >> Am 25.10.2010 um 11:16 schrieb Philipp Gesang: >> >>> On 2010-10-25 <10:25:55>, Steffen Wolfrum wrote: Hi, the "%" is a frequently used character in URL. But \hyphenatedu

Re: [NTG-context] hyphenated url

2010-10-25 Thread Philipp Gesang
On 2010-10-25 <11:39:12>, Steffen Wolfrum wrote: > > Am 25.10.2010 um 11:16 schrieb Philipp Gesang: > > > On 2010-10-25 <10:25:55>, Steffen Wolfrum wrote: > >> Hi, > >> > >> the "%" is a frequently used character in URL. > >> But \hyphenatedurl{} can deal with it ... > >> > >> Does someone has

Re: [NTG-context] hyphenated url

2010-10-25 Thread Steffen Wolfrum
Am 25.10.2010 um 11:16 schrieb Philipp Gesang: > On 2010-10-25 <10:25:55>, 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

Re: [NTG-context] hyphenated url

2010-10-25 Thread Philipp Gesang
On 2010-10-25 <10:25:55>, 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. Ugly, but it works: text\footnote

[NTG-context] hyphenated url

2010-10-25 Thread Steffen Wolfrum
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 Thanks, Steffen ___