I am having a problem introducing discretionary hyphens into URLs using the latest ConTeXT and \useURL. For example, [DigRes] [{http://www.arthist.net/Link\-ERes.html}] [] [{http://www.arthist.net/LinkERes.html}] does break the URL on the printed page as I need, but the link to the target document is broken. (I get a The requested URL /Link-ERes.html was not found on this server message.) Any tips about what I am doing wrong will be much appreciated. Alan
On Jan 25, 2007, at 12:39 PM, Alan Bowen wrote:
I am having a problem introducing discretionary hyphens into URLs using the latest ConTeXT and \useURL.
For example, [DigRes] [{http://www.arthist.net/Link\-ERes.html}] [] [{http://www.arthist.net/LinkERes.html}] does break the URL on the printed page as I need, but the link to the target document is broken. (I get a The requested URL /Link-ERes.html was not found on this server message.)
Any tips about what I am doing wrong will be much appreciated.
Alan _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Perhaps I should elaborate and recast the problem. I am typesetting a text that includes a great number of URLs, which I have entered \useURL and \goto. Most of these URLs wrap nicely, but a there are a few which insist on running out into the margin. Now I thought I could handle this by introducing discretionary hyphens in the second field of \useURL because, so I thought, this field is a label and not the URL itself (which is in the fourth field). Plainly this is not working. So, if I cannot use discretionary hyphens {?), how do I get all the URLS to wrap properly? Alan
On Jan 25, 2007, at 3:50 PM, Alan Bowen wrote:
On Jan 25, 2007, at 12:39 PM, Alan Bowen wrote:
I am having a problem introducing discretionary hyphens into URLs using the latest ConTeXT and \useURL.
For example, [DigRes] [{http://www.arthist.net/Link\-ERes.html}] [] [{http://www.arthist.net/LinkERes.html}] does break the URL on the printed page as I need, but the link to the target document is broken. (I get a The requested URL /Link-ERes.html was not found on this server message.)
Any tips about what I am doing wrong will be much appreciated.
Alan
Perhaps I should elaborate and recast the problem. I am typesetting a text that includes a great number of URLs, which I have entered \useURL and \goto. Most of these URLs wrap nicely, but a there are a few which insist on running out into the margin. Now I thought I could handle this by introducing discretionary hyphens in the second field of \useURL because, so I thought, this field is a label and not the URL itself (which is in the fourth field). Plainly this is not working. So, if I cannot use discretionary hyphens {?), how do I get all the URLS to wrap properly?
Alan
A last try. I have discovered that the problem lies in my environment file: something in my specification of the output modes in my environment file is preventing the hyphenation of URLs using \useURL and \goto. Regrettably, I have no idea what and my tests thus far have not identified the problem. See the small sample file below. Any tips or suggestions will be much appreciated. Alan ________________________________________________________________________ \startmode[print] \stopmode \doifmode{print}{ \definepapersize[pagesize][width=41pc,height=66pc] %% page layout \definepapersize[trimsize][width=36pc,height=54pc] \setuplayout[location=middle,marking=on] \setuppapersize[trimsize][pagesize] % define print area \setuplayout[ topspace=3pc, backspace=5pc, height=48pc, header=2pc, textheight=48pc, footer=4pc, width=26pc, leftmargin=3pc, textwidth=26pc, rightmargin=3pc, rightmargindistance=0.25pc, leftmargindistance=0.25pc] \setupcolors [state=start,textcolor=black] % to set color of text \setupinteraction[state=start,color=black,style=rm] % for URLs and links \setupurl[style=normal] } % default mode --- Screen \doifnotmode{print}{ %% page layout \definepapersize[pagesize][width=36pc,height=54pc] \setuplayout[location=middle,marking=off] \setuppapersize[pagesize][pagesize] %% define print area \setuplayout[ topspace=3pc, backspace=5pc, height=48pc, header=2pc, textheight=48pc, footer=4pc, width=26pc, leftmargin=3pc, textwidth=26pc, rightmargin=3pc, rightmargindistance=0.25pc, leftmargindistance=0.25pc] \setupcolors [state=start,textcolor=black] % to set color of text \setupcolor[rgb] \definecolor[NTMRScream][r=.953, g=.926, b=.801] % for page background color \setupbackgrounds[page][page] [state=start,background={color},backgroundcolor=NTMRScream] \setupinteraction[state=start,color=blue,style=rm] % for URLs and links \setupurl[style=normal] } \useURL [Canterbury][{http://www.canterburytalesproject.org}] [][{http://www.canterburytalesproject.org}] \enablemode[print] \starttext \noindent\tfx Canterbury Tales project.\ University of Birmingham.\ \goto{\url[Canterbury]}[url(Canterbury)]. \stoptext will show the problem
[I apologize for any duplication: this message was originally sent yesterday at noon but apparently not distributed. A.] On Jan 25, 2007, at 3:50 PM, Alan Bowen wrote:
On Jan 25, 2007, at 12:39 PM, Alan Bowen wrote:
I am having a problem introducing discretionary hyphens into URLs using the latest ConTeXT and \useURL.
For example, [DigRes] [{http://www.arthist.net/Link\-ERes.html}] [] [{http://www.arthist.net/LinkERes.html}] does break the URL on the printed page as I need, but the link to the target document is broken. (I get a The requested URL /Link-ERes.html was not found on this server message.)
Any tips about what I am doing wrong will be much appreciated.
Alan
Perhaps I should elaborate and recast the problem. I am typesetting a text that includes a great number of URLs, which I have entered \useURL and \goto. Most of these URLs wrap nicely, but a there are a few which insist on running out into the margin. Now I thought I could handle this by introducing discretionary hyphens in the second field of \useURL because, so I thought, this field is a label and not the URL itself (which is in the fourth field). Plainly this is not working. So, if I cannot use discretionary hyphens {?), how do I get all the URLS to wrap properly?
Alan
A last try. I have discovered that the problem lies in my environment file: something in my specification of the output modes in my environment file is preventing the hyphenation of URLs using \useURL and \goto. Regrettably, I have no idea what and my tests thus far have not identified the problem. See the small sample file below. Any tips or suggestions will be much appreciated. Alan ________________________________________________________________________ \startmode[print] \stopmode \doifmode{print}{ \definepapersize[pagesize][width=41pc,height=66pc] %% page layout \definepapersize[trimsize][width=36pc,height=54pc] \setuplayout[location=middle,marking=on] \setuppapersize[trimsize][pagesize] % define print area \setuplayout[ topspace=3pc, backspace=5pc, height=48pc, header=2pc, textheight=48pc, footer=4pc, width=26pc, leftmargin=3pc, textwidth=26pc, rightmargin=3pc, rightmargindistance=0.25pc, leftmargindistance=0.25pc] \setupcolors [state=start,textcolor=black] % to set color of text \setupinteraction[state=start,color=black,style=rm] % for URLs and links \setupurl[style=normal] } % default mode --- Screen \doifnotmode{print}{ %% page layout \definepapersize[pagesize][width=36pc,height=54pc] \setuplayout[location=middle,marking=off] \setuppapersize[pagesize][pagesize] %% define print area \setuplayout[ topspace=3pc, backspace=5pc, height=48pc, header=2pc, textheight=48pc, footer=4pc, width=26pc, leftmargin=3pc, textwidth=26pc, rightmargin=3pc, rightmargindistance=0.25pc, leftmargindistance=0.25pc] \setupcolors [state=start,textcolor=black] % to set color of text \setupcolor[rgb] \definecolor[NTMRScream][r=.953, g=.926, b=.801] % for page background color \setupbackgrounds[page][page] [state=start,background={color},backgroundcolor=NTMRScream] \setupinteraction[state=start,color=blue,style=rm] % for URLs and links \setupurl[style=normal] } \useURL [Canterbury][{http://www.canterburytalesproject.org}] [][{http://www.canterburytalesproject.org}] \enablemode[print] \starttext \noindent\tfx Canterbury Tales project.\ University of Birmingham.\ \goto{\url[Canterbury]}[url(Canterbury)]. \stoptext
participants (1)
-
Alan Bowen