Re: [elinks-users] Preserving spaces when using protocols?

2007-07-30 Thread Kalle Olavi Niemitalo
"Kelly Jones" <[EMAIL PROTECTED]> writes:

> If I go to "wiki:sue lawley" in ELinks, it takes me to the Wikipedia
> search page for "Sue%20Lawley" [sic], which does not include the
> article I want.

get_hooked_uri() calls trigger_event() and gets uristring =
"http://www.wikipedia.org/w/wiki.phtml?search=sue%20lawley";.
The bug is in the server, which incorrectly redirects to
"http://en.wikipedia.org/w/wiki.phtml?search=sue%2520lawley";.

So the solution is to edit the smartprefix and change "www" to
"en".  I asked on #wikimedia-tech, and www.wikipedia.org does
always redirect to en.wikipedia.org; it does not guess any other
language based on headers or IP addresses or such.

I will change the default "wiki" smartprefix in elinks-0.11 and
elinks-0.12.  Eventually, www.wikipedia.org may be fixed as well.
___
elinks-users mailing list
elinks-users@linuxfromscratch.org
http://linuxfromscratch.org/mailman/listinfo/elinks-users


[elinks-users] Preserving spaces when using protocols?

2007-07-27 Thread Kelly Jones
If I go to "wiki:sue lawley" in ELinks, it takes me to the Wikipedia
search page for "Sue%20Lawley" [sic], which does not include the
article I want.

Is there any way to tweak the protocol to NOT convert ' ' to %20?

I realize that "wiki:sue_lawley" works, but it'd be nice to get ' '
working as well.

Oddly, "google:sue lawley" works fine (and ironically returns her
Wikipedia page as the first result), but I'm guessing this is google
magic, since the protocols look virtually identical:

http://www.google.com/search?q=%s
http://www.wikipedia.org/w/wiki.phtml?search=%s

-- 
We're just a Bunch Of Regular Guys, a collective group that's trying
to understand and assimilate technology. We feel that resistance to
new ideas and technology is unwise and ultimately futile.
___
elinks-users mailing list
elinks-users@linuxfromscratch.org
http://linuxfromscratch.org/mailman/listinfo/elinks-users