So far I have only found one web forum where I can paste the URL of a composition and have it be turned into a correct link automatically. Most other forums, for instance Yahoo groups, and email (Apple mail) will think that the URL ends before the paren. Would it be possible to have a URL listed on each composition's page that has been sanitized with "percent-stuff" instead of the unusual characters?
Victor.
Parentheses in URLs
Moderators: kcleung, Wiki Admins
-
- forum adept
- Posts: 73
- Joined: Fri Aug 19, 2011 9:49 pm
- notabot: 42
- notabot2: Human
Re: Parentheses in URLs
I'm not sure whether I correctly understand what you mean.
In these forurms, like in any forums based on the phpBB software, if you want to enter a link in a post you should select the link text first, and then use the "URL" button available among the formatting functions. This adds two tags and at the beginning and at the end of the text, which tells the phpBB software to consider the text between the tags as an URL. This will add the appropriate character encoding sequences.
So, for example:
creates a valid link:
http://imslp.org/wiki/Exercises_for_Rec ... t,_Victor)
This syntax can be also used when desired:
that causes a replacement text to be displayed in lieu of the URL, while the URL remains linked to it:
Replacement text for the URL
Max
In these forurms, like in any forums based on the phpBB software, if you want to enter a link in a post you should select the link text first, and then use the "URL" button available among the formatting functions. This adds two tags and at the beginning and at the end of the text, which tells the phpBB software to consider the text between the tags as an URL. This will add the appropriate character encoding sequences.
So, for example:
Code: Select all
[url]http://imslp.org/wiki/Exercises_for_Recorder_in_C_(Eijkhout,_Victor)[/url]
http://imslp.org/wiki/Exercises_for_Rec ... t,_Victor)
This syntax can be also used when desired:
Code: Select all
[url=http://imslp.org/wiki/Exercises_for_Recorder_in_C_(Eijkhout,_Victor)]Replacement text for the URL[/url]
Replacement text for the URL
Max
Re: Parentheses in URLs
I think the problem is the same one I have from time to time, in that the following type of URL, when I click on it:
http://imslp.org/wiki/Exercises_for_Rec ... t,_Victor)
doesn't always copy the final parenthesis over to the page, resulting in a "page does not exist" error. In fact, this Eijkhout example did copy correctly, but they don't always, and I can't remember off the top of my head what other pages were problems, so I can't give an example. I've learned to check for the final parenthesis before assuming that the page really doesn't exist, but I still don't understand what causes this.
Victor, is this what you are talking about?
http://imslp.org/wiki/Exercises_for_Rec ... t,_Victor)
doesn't always copy the final parenthesis over to the page, resulting in a "page does not exist" error. In fact, this Eijkhout example did copy correctly, but they don't always, and I can't remember off the top of my head what other pages were problems, so I can't give an example. I've learned to check for the final parenthesis before assuming that the page really doesn't exist, but I still don't understand what causes this.
Victor, is this what you are talking about?
bsteltz
-
- forum adept
- Posts: 73
- Joined: Fri Aug 19, 2011 9:49 pm
- notabot: 42
- notabot2: Human
Re: Parentheses in URLs
Let's see.Choralia wrote:creates a valid link:Code: Select all
[url]http://imslp.org/wiki/Exercises_for_Recorder_in_C_(Eijkhout,_Victor)[/url]
http://www.google.com
(without any tags) works fine. Complicated URLs don't.
In the case of forums you can accuse me of lazyness, but in mail I'm not sure how to add tags to links. "<a href="?
Anyway, life would be so convenient if you can just write the link and have it be understood. And this would be the case if I could have the link as
http://imslp.org/wiki/Four_Candles_%28E ... _Victor%29 vs http://imslp.org/wiki/Four_Candles_(Eijkhout,_Victor)
Hence my request for having that somewhere on the page.
Victor.
Re: Parentheses in URLs
If your request is for these forums, there is a rule to follow: if you add a link inside a post and you want that the link is correctly handled in all cases (including when it includes parentheses, diacriticts, and other special characters), you have to use the tags. If you don't use such tags, simple cases may work, others may not.
If your request is for the IMSLP wiki, all links inside pages are already html encoded, too (so parentheses and other special characters are represented by the corresponding % sequence). For example, if you consider this page:
http://imslp.org/wiki/Category:Eijkhout,_Victor
and you inspect the html code produced, you'll find that all links inside the html code are html encoded. This is a fragment of the html contents of such a page:
So you can catch all html encoded links by copying the text after the "href=" tags.
Some browsers allow to display the source html code of pages, and this would make the task easier for you. For example, Seamonkey provides this feature.
Max
If your request is for the IMSLP wiki, all links inside pages are already html encoded, too (so parentheses and other special characters are represented by the corresponding % sequence). For example, if you consider this page:
http://imslp.org/wiki/Category:Eijkhout,_Victor
and you inspect the html code produced, you'll find that all links inside the html code are html encoded. This is a fragment of the html contents of such a page:
Code: Select all
<li><a
href="http://imslp.org/wiki/Autumn%27s_Allemande_%28Eijkhout,_Victor%29"
title="Autumn's Allemande (Eijkhout, Victor)">Autumn's Allemande (Eijkhout, Victor)
</a></li>
</ul>
<h3>B</h3>
<ul>
<li><a
href="http://imslp.org/wiki/Bubble_Machine_%28Eijkhout,_Victor%29"
title="Bubble Machine (Eijkhout, Victor)">Bubble Machine (Eijkhout, Victor)
</a></li>
</ul>
Some browsers allow to display the source html code of pages, and this would make the task easier for you. For example, Seamonkey provides this feature.
Max
-
- forum adept
- Posts: 73
- Joined: Fri Aug 19, 2011 9:49 pm
- notabot: 42
- notabot2: Human
Re: Parentheses in URLs
Choralia wrote: if you consider this page:
http://imslp.org/wiki/Category:Eijkhout,_Victor
and you inspect the html code produced, you'll find that all links inside the html code are html encoded. This is a fragment of the html contents of such a page:
So you can catch all html encoded links by copying the text after the "href=" tags.Code: Select all
<li><a href="http://imslp.org/wiki/Autumn%27s_Allemande_%28Eijkhout,_Victor%29" title="Autumn's Allemande (Eijkhout, Victor)">Autumn's Allemande (Eijkhout, Victor) </a></li> </ul> <h3>B</h3> <ul> <li><a href="http://imslp.org/wiki/Bubble_Machine_%28Eijkhout,_Victor%29" title="Bubble Machine (Eijkhout, Victor)">Bubble Machine (Eijkhout, Victor) </a></li> </ul>
Truly bizarre. I tell Google Chrome to display the source and I'm not getting your source:
Code: Select all
<ul><li><a href="/wiki/Autumn%27s_Allemande_(Eijkhout,_Victor)" title="Autumn's Allemande (Eijkhout, Victor)" class="categorypagelink">Autumn's Allemande (Eijkhout, Victor)</a></li></ul><h3>B</h3>
Victor.