[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Lynx-dev] Issue with lynx --source and gopher menus with h gopherty
Re: [Lynx-dev] Issue with lynx --source and gopher menus with h gophertype
Sun, 30 Aug 2020 18:38:42 -0400
On Sat, Aug 29, 2020 at 10:30:40PM -0400, Zachary Lee Andrews wrote:
> Greetings to all,
> I have noticed that lynx2.9.0dev.5 when converting a gopher menu to HTML
> (e.g. by using `lynx --source gopher://gopher.zcrayfish.soy/1/irc') when a
> gophertype h is encountered and an hyperlink/anchor is generated for said
> type h resource... If the directory delimiter used is the file path part of
> the URL is '/' (as-is typical for most machines these days),
> the first one will be omitted in the HTML output.
hmm - this is a little different from the report in
The short answer is that lynx doesn't recognize the other characters
as being special.
We're talking about the chunk of code beginning here:
I'm reminded that the 'h' type isn't in
and recall that the existing documentation on this extension was sketchy.
We've discussed this a couple of times, e.g., here
...and the existing behavior worked with the test-cases I was shown.
I think that with some improvements to documentation, we could improve
the implementation (and possibly work with the different test-cases,
possibly not - they might have different assumptions embedded).
> Here's an example URL:
> In my example I included a gophertype h file repeated three times with
> commonly used directory delimiters: forwardslash (/), backslash (\), and
> colon (:), like so:
> hsixel.5.html /irc/lynxtest2/sixel.5.html gopher.zcrayfish.soy 70
> hsixel.5.html \irc\lynxtest2\sixel.5.html gopher.zcrayfish.soy 70
> hsixel.5.html :irc:lynxtest2:sixel.5.html gopher.zcrayfish.soy 70
> lynx --source converts the gopher menu to this:
> (HTML) <A HREF="//gopher.zcrayfish.soy:70/hirc/lynxtest2/sixel.5.html"
> (HTML) <A
> (HTML) <A
> In the first example, lynx omits the first / delimiter from the anchor.
> It does as expected when \ or : is used.
> Zachary L. Andrews
> Lynx-dev mailing list
Thomas E. Dickey <firstname.lastname@example.org>
Description: PGP signature