Re: [Lynx-dev] magnets and lynx

2024-08-05 Thread Chuck Martin via Lynx-dev
On Sun, Aug 04, 2024 at 11:35:20PM -0400, Jude DaShiell wrote:
> How can a magnet be opened and downloaded with lynx?

Magnet links are for torrents.  You'll need a bittorrent client for
that, not a web browser, as it's not a part of the web.



Re: [Lynx-dev] directv blocking lynx

2024-07-09 Thread Chuck Martin via Lynx-dev
On Sun, Jul 07, 2024 at 03:54:26PM -0400, Karen Lewellen wrote:
> Is there a limit to how long a user agent string can be in lynx?
> Kare

There is probably a limit, but I haven't run into it if there is.
I have shell aliases that each start lynx with a different useragent,
and two of them are 140 characters long.  Those are taken from Firefox
on Android and Firefox on IOS.  Another, from Safari on IOS, is 138
characters, and one from Chrome on Android is 137 characters.

Chuck



Re: [Lynx-dev] directv blocking lynx

2024-07-07 Thread Chuck Martin via Lynx-dev
On Sat, Jul 06, 2024 at 12:31:35PM -0700, Chime Hart wrote:
> Well, Chuck-and-All, I am subscribed to press advisories from NATO, but this
> morning's item you had to visit their site to read or download a pdf.
> More-and-more we see L I N K S works, while L Y N X has a 403 error, even
> after fooling with a user-agent
> http://www.nato.int/cps/en/natohq/events_226992.htm
> Chime

Since I hadn't updated my regular Firefox on Linux useragent string in
my lynx alias in awhile, I just now updated it to match my currently
installed Firefox, and now it also worked for this URL, and also the
DirectTV one you provided in your previous message.  My "go to" alias to
use in such cases, though is the one that tells them what I think of
people who block browsers based on useragent, in the off-chance that
they look through their logs.  It may not change their behavior, but it
does let them know what I think of that deplorable behavior.

Chuck



Re: [Lynx-dev] directv blocking lynx

2024-07-07 Thread Chuck Martin via Lynx-dev
On Sat, Jul 06, 2024 at 12:31:35PM -0700, Chime Hart wrote:
> Well, Chuck-and-All, I am subscribed to press advisories from NATO, but this
> morning's item you had to visit their site to read or download a pdf.
> More-and-more we see L I N K S works, while L Y N X has a 403 error, even
> after fooling with a user-agent
> http://www.nato.int/cps/en/natohq/events_226992.htm
> Chime

All three of the useragents I provided in my previous reply work for
that URL, although the regular Firefox on Linux desktop useragent
doesn't, and neither does the default.  I didn't try any of my others.

Chuck



Re: [Lynx-dev] directv blocking lynx

2024-07-06 Thread Chuck Martin via Lynx-dev
Sorry, I erroneously sent a private reply, since I don't reply often
enough to mailing lists to remember that "list reply" in mutt is
different than "reply", and I thought others might be interested in my
reply, so I'm reposting it here.

On Fri, Jul 05, 2024 at 01:11:36PM -0400, Jude DaShiell wrote:
> they're also blocking elinks and w3m.  Thanks for the heads up on links
> though.

It depends on the useragent.  I, too, see it hang if I don't change the
useragent string, but I have a number of aliases for lynx that present
different useragent strings.  A Firefox useragent also hangs, an
Internet Explorer useragent gets a page that says my browser isn't
supported, but here are a few that get the page with lynx:

Firefox on Android:
lynx -useragent="Mozilla/5.0 (Android 7.0; Mobile; rv:54.0) Gecko/54.0 
Firefox/54.0"

The long ago discontinued Sidekick, from T-Mobile:
lynx -useragent="Mozilla/5.0 (Danger hiptop 5.0; U; rv:1.7.12) Gecko/20050920"

Blackberry:
lynx -useragent="Mozilla/5.0 (BB10; Kbd) AppleWebKit/537.35+ (KHTML, like 
Gecko) Version/10.3.3.2205 Mobile Safari/537.35+"

I also got it to load using useragents for Chrome on Android, Firefox on
IOS, and Safari on IOS, but those useragent strings are much longer, and
I didn't feel like posting them here, either broken into multiple lines,
or joined into one really long line, but they work.  Interestingly, I
have three different Googlebot useragents I found somewhere, which all
hung, but I was successful with a useragent that was nothing but a nasty
message about what kind of despicable people block browsers based on
useragent, but I won't post that one here.

Chuck



Re: [Lynx-dev] Any solution for youtube searching

2021-10-24 Thread Chuck Martin
On Sat, Oct 23, 2021 at 02:56:45PM -0400, dan d. wrote:
> For some time now google has blocked the youtube page when using lynx.
> 
> Has anyone an alternative method to get youtube search results in lynx?

Although the original invidious instance is gone, there are others who
use the same software.  There is a list at:

https://github.com/iv-org/documentation/blob/master/Invidious-Instances.md

(linked from https://github.com/iv-org/documentation).  The one I usually
use is https://invidious.snopyta.org.  Another site I've used is
https://tube.cadence.moe.

Chuck

-- 
My e-mail uses a whitelist and tags (AKA "plus addressing").  If
you're not on the whitelist, your mail will bounce unless you use
a tag (unicorn+@sdf.org).  If that should happen, please go
to https://unicorn.sdf.org/HowToEmailMe.  If I've recently sent
you e-mail, you're on a temporary whitelist.



Re: [Lynx-dev] The alts for images in newyorker.com

2021-08-11 Thread Chuck Martin via Lynx-dev
I accidentally sent a private reply to Russell when I meant to reply to
the list.  Apologies to Russell.  Here is the reply I sent:

On Wed, Aug 11, 2021 at 07:51:15AM -0600, russellb...@gmail.com wrote:
> newyorker.com is one of the few websites that takes seriously alts for
> its images (if you don't know, an image tag is allowed to have
> alternative text that a browser can display if it can't, or won't, the
> image - who but we lynxsters read them?)

Unfortunately, graphical browsers generally display alt text when you
mouse over an image, with the result that most web pages that provide
alt text misuse it to provide additional information on mouseover instead
of its intended purpose, meaning that lynx users end up seeing text that
is totally meaningless out of the context of the image it replaces.
Often this meaningless text appears in the middle of a sentence, causing
the sentence to look like gibberish.  I'm sure this is even more confusing
to blind users than it is to me, since I can usually see where the alt
text starts and ends.

Chuck

___
Lynx-dev mailing list
Lynx-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lynx-dev


Re: [Lynx-dev] copy URL to clipboard shortcut

2020-04-20 Thread Chuck Martin
I'm sorry, I accidentally sent this to the original poster instead of
the list.  My apologies.  I'm resending it to the list, in case others
may find the information useful.

On Mon, Apr 20, 2020 at 09:00:23PM +0530, s...@stof999.ch wrote:
> but since i'm often copy/paste URL for documention reason i need them in
> the citation kontext and therefore bookmark page would be soon overcrowed.
> and using '=', select URL, copy, concat takes about the same time.

What are you using to copy and paste?  If you're using gnu screen, you can
do the concatenation at the same time as the copy.  Just move the cursor
to the beginning of the URL and press "c" (without the quotes) to set the
first column, press "y" to "yank" the whole line, cursor down to hilight
all lines of the URL, then press "J" (shifted "j") to "join lines", then
either space or enter to finish the copy, and the lines will be copied as
one line.

Make sure you only press the "J" once, as it cycles between joining,
joining with blanks, joining with commas, and not joining.  Also, if for
some reason, spaces are hilighted at the end of a line, you may need to
press "C" (shifted "c") at the end of the line to set the last column,
but that doesn't usually happen.

If you're using tmux, you can do something similar, but you have to
concatenate the lines when you paste instead of when you copy.  For
example, you can use the "|" key to paste the paste buffer with all
lines concatenated with the following:

bind-key | paste-buffer -s ""

You'll need to do a "rectangle toggle" when you copy the URL to get
the same effect as the "c" and "C" keys in gnu screen.  The default
keys for this are "v" in vi mode, and "R" in emacs mode.

HTH.

Chuck

___
Lynx-dev mailing list
Lynx-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lynx-dev


Re: [Lynx-dev] Text format change in latest version

2018-10-15 Thread Chuck Martin
On Mon, Oct 15, 2018 at 06:33:28AM -0400, Chuck Martin wrote:
> I somehow accidentally deleted the original message I'm replying to,
> and have manually copied it from the archive at lists.nongnu.org.
> I've also copied the message-id into my headers, so hopefully it
> will thread properly.
 
Sorry, I started by replying to another message from the the lynx-dev
mailing list when I sent that reply, and I forgot to change the subject
to match the thread I was replying to.  Here's a repeat of the message
with the proper subject line.

On Thu, Sep 20, 2018 at 04:07:13AM -0400, dan d. wrote:
> With the new version a minor change was introduced with the = intro current
> document page in lynx.  Here is an example:
>
> Linkname:World - The New York Times
>  URL:https://www.nytimes.com/section/world
>
> There is no longer a space following the :.
>
> This makes it cumbersom for a copy and paste of the info because the name
> > and/or url are not isolated from the label. as before.
>
> Using a screen reader one must start at the left and then character by
> character move past the : to start the copy.
> I make use of the info page frequently when making reference to a page for
> someone's attention.

I've just installed the newest stable version and found the same issue,
so I looked into it.  Here is a patch that will fix the problem:

===
--- lynx2.8.9rel.1.orig/src/LYShowInfo.c2018-05-11 16:43:26.0 
-0400
+++ lynx2.8.9rel.1/src/LYShowInfo.c 2018-10-15 00:40:16.127178358 -0400
@@ -87,9 +87,9 @@
 while (need++ < label_columns)
fprintf(fp, " ");
 if (LYwideLines && allow_wide)
-   fprintf(fp, "%s%s\n", the_label, the_value);
+   fprintf(fp, "%s %s\n", the_label, the_value);
 else
-   fprintf(fp, "%s%s\n", the_label, the_value);
+   fprintf(fp, "%s %s\n", the_label, the_value);

 FREE(the_label);
 FREE(the_value);
===

-- 
My address uses a whitelist.  If you aren't in my whitelist, you can
only send me e-mail if you send to an appropriately tagged address (it
includes +sometag between the username and @).  Finger my untagged e-mail
address for a tag guaranteed good for 24 hours if you're unsure.  If I've
sent you mail recently, you're temporarily whitelisted automatically.

___
Lynx-dev mailing list
Lynx-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lynx-dev


Re: [Lynx-dev] lynx updates

2018-10-15 Thread Chuck Martin
I somehow accidentally deleted the original message I'm replying to,
and have manually copied it from the archive at lists.nongnu.org.
I've also copied the message-id into my headers, so hopefully it
will thread properly.

On Thu, Sep 20, 2018 at 04:07:13AM -0400, dan d. wrote:
> With the new version a minor change was introduced with the = intro current
> document page in lynx.  Here is an example:
>
> Linkname:World - The New York Times
>  URL:https://www.nytimes.com/section/world
>
> There is no longer a space following the :.
>
> This makes it cumbersom for a copy and paste of the info because the name
> and/or url are not isolated from the label. as before.
>
> Using a screen reader one must start at the left and then character by
> character move past the : to start the copy.
> I make use of the info page frequently when making reference to a page for
> someone's attention.

I've just installed the newest stable version and found the same issue,
so I looked into it.  Here is a patch that will fix the problem:

===
--- lynx2.8.9rel.1.orig/src/LYShowInfo.c2018-05-11 16:43:26.0 
-0400
+++ lynx2.8.9rel.1/src/LYShowInfo.c 2018-10-15 00:40:16.127178358 -0400
@@ -87,9 +87,9 @@
 while (need++ < label_columns)
fprintf(fp, " ");
 if (LYwideLines && allow_wide)
-   fprintf(fp, "%s%s\n", the_label, the_value);
+   fprintf(fp, "%s %s\n", the_label, the_value);
 else
-   fprintf(fp, "%s%s\n", the_label, the_value);
+   fprintf(fp, "%s %s\n", the_label, the_value);

 FREE(the_label);
 FREE(the_value);
===

-- 
My address uses a whitelist.  If you aren't in my whitelist, you can
only send me e-mail if you send to an appropriately tagged address (it
includes +sometag between the username and @).  Finger my untagged e-mail
address for a tag guaranteed good for 24 hours if you're unsure.  If I've
sent you mail recently, you're temporarily whitelisted automatically.

___
Lynx-dev mailing list
Lynx-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lynx-dev


Re: [Lynx-dev] can't change user-agent-header

2018-01-25 Thread Chuck Martin
On Wed, Jan 24, 2018 at 07:52:16AM -0500, Jude DaShiell wrote:
> the program keeps forcing it back to lynx original and this is not good for
> certain web sites.  I did the change in the lynx options and when I started
> up lynx again and checked the user-agent-header it was back to default.  Do
> I need to do something in lynx.cfg as well?

Although you can make it permanent, as others have mentioned, I've chosen
a different approach: shell aliases, using the -useragent command line
option.  I have several different aliases for different user agents, so
if one doesn't work, I can quickly try another.  Some of them aren't real
user agents, but messages I hope the webmaster will find in his logs
advising of problems with the site, or idiotic things he's implemented
(like blocking browsers based on the user agent string).  Surprisingly,
those messages often allow me to view a page or site that specifically
blocks browsers with the string "lynx" in their user agent.

-- 
My address uses a whitelist.  If you aren't in my whitelist, you can
only send me e-mail if you send to an appropriately tagged address (it
includes +sometag between the username and @).  Finger my untagged e-mail
address for a tag guaranteed good for 24 hours if you're unsure.  If I've
sent you mail recently, you're temporarily whitelisted automatically.

___
Lynx-dev mailing list
Lynx-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lynx-dev


Re: [Lynx-dev] Wrapping line behavior

2017-01-21 Thread Chuck Martin
On Sat, Jan 21, 2017 at 02:07:44PM +, Thorsten Glaser wrote:
> Chuck Martin dixit:
>
> >I use screen, and have no problem copying long URLs.  Use 'c' to mark
> >the first column before selecting any text, and 'J' to join lines
> >before completing the selection.
>
> Oh, I didn?t know this either ;) but that only helps when the paste
> destination is also in GNU screen and not, for example, in a GUI
> browser. I occasionally need to do this also, from xterm.

I just start the browser from the command line.  I don't know if this
works with all browsers, but firefox and seamonkey will open the page
in an already running browser, if one is running, instead of starting
another instance, unless you add -no-remote to the command line.  I have
a script called browse that takes a URL as an argument and allows me
to select a browser from a list to open it in.  The list includes
firefox/new and firefox/existing, and runs firefox with or without
the -no-remote option depending on which one I choose.  Same for
seamonkey/new and seamonkey/existing.

-- 
My address uses a whitelist.  If you aren't in my whitelist, you can
only send me e-mail if you send to an appropriately tagged address (it
includes +sometag between the username and @).  Finger my untagged e-mail
address for a tag guaranteed good for 24 hours if you're unsure.  If I've
sent you mail recently, you're temporarily whitelisted automatically.

___
Lynx-dev mailing list
Lynx-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lynx-dev


Re: [Lynx-dev] Lynx on Linux / automating a search via a script or macro

2017-01-21 Thread Chuck Martin
On Sat, Jan 21, 2017 at 08:12:55AM -0500, Michael Jones wrote:
> I want to automate a Google search for "foo bar."

Try:

lynx http://www.google.com/search?q=foo+bar

-- 
My address uses a whitelist.  If you aren't in my whitelist, you can
only send me e-mail if you send to an appropriately tagged address (it
includes +sometag between the username and @).  Finger my untagged e-mail
address for a tag guaranteed good for 24 hours if you're unsure.  If I've
sent you mail recently, you're temporarily whitelisted automatically.

___
Lynx-dev mailing list
Lynx-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lynx-dev


Re: [Lynx-dev] Wrapping line behavior

2017-01-21 Thread Chuck Martin
On Fri, Jan 20, 2017 at 09:56:25AM +0100, X dej wrote:
> Tmux and Screen have copy-paste included, use the shortcuts '[' and
> ']' (square brackets).
>
> They are also fooled by these spaces at linewraps.

I use screen, and have no problem copying long URLs.  Use 'c' to mark
the first column before selecting any text, and 'J' to join lines
before completing the selection.  Tmux probably has something similar,
and possibly exactly the same.

-- 
My address uses a whitelist.  If you aren't in my whitelist, you can
only send me e-mail if you send to an appropriately tagged address (it
includes +sometag between the username and @).  Finger my untagged e-mail
address for a tag guaranteed good for 24 hours if you're unsure.  If I've
sent you mail recently, you're temporarily whitelisted automatically.

___
Lynx-dev mailing list
Lynx-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lynx-dev


Re: [Lynx-dev] emulating tabs in Lynx

2005-02-09 Thread Chuck Martin
On Tue, Feb 08, 2005 at 10:50:57AM -0500, [EMAIL PROTECTED] wrote:
> 050207 Chuck Martin wrote:
> > Learn how to use Screen.
> 
> i used to use it all the time in the 1990s ,

I didn't mean to imply that you didn't know how to use screen.  I
included that step in response to you statement that "it's far too
complicated to expect an ordinary user to employ," since many
ordinary users may be unfamiliar with screen, or if they're familiar
with it, they may not have ever used it, and may not understand how
to use it.

> have you thought of writing up a small help doc
> to describe how to use Screen to do clever things with Lynx ?
> i would be willing to add it to my 'Lynx Help for Beginners' WWW doc,
> if you were to send it to me in an appropriate HTML form:
> you would be properly acknowledged as author.

No, I hadn't considered it before, but I will think about it if I can
find the time.  I'm always looking for ways to make more efficient use
of my time, and I don't normally think about it that others may find my
methods useful.

Once again, I sent my previous response directly to you, and failed to
send it also to the list.  I'm going to have to break the habit of
pressing 'r' and learn to press 'L' when responding to this list.
Since others may find the "using screen to emulate tabs in a nutshell"
useful, I'm pasting my previous response at the end of this message.

Chuck


My previous response:
-

On Sat, Feb 05, 2005 at 07:18:55AM -0500, [EMAIL PROTECTED] wrote:
> 050205 Chuck Martin wrote:
> > If you use screen in the way that I described in my previous response
> > in the other thread, they will be downloaded simultaneously
> > by the separate Lynx sessions in each screen window.
> > Do you still think Lynx needs this capability?
>
> yes, i appreciate your detailed reply & will store it in my archives,
> but it's far too complicated to expect an ordinary user to employ.

I don't think so.  I think anyone who can understand how to use Lynx can
understand how to use Screen to emulate tabs.  Perhaps I went into too
much detail, giving the impression that it's more complicated than it
is.  That was partly because I wanted to show exactly how it's done,
and partly because I also included some information that it isn't totally
necessary to use Screen and Lynx together, but that I thought would be of
interest because it can make you much more efficient.  Here it is, in a
nutshell:

  1)  Learn how to use Screen.  You don't need to learn everything
  about the program.  Just enough to start it up and switch
  windows, since these windows will be your "tabs".

  2)  Enter this line in your lynx.cfg:

  EXTERNAL:http:screen lynx %s:TRUE

  You can also use this line as a pattern for other URL types,
  like file or ftp, and they don't have to use Lynx.  Your
  "tabs" can be running other programs like wget or lftp (try
  *that* in your favorite GUI browser that does tabs).

  3)  Learn how to activate the command in that lynx.cfg line by
  using "." and "," (see the lynx documentation).

I still included more information than necessary, especially in step #2
(ignore all but the first two lines of that step if you like), but I
think you should be able to see that it isn't as difficult as you portray
it.

> also, i would have to install Screen on my system, adding to bloat there.
> and can you in fact have  > 1  instance of Screen running simultaneously ?

As has already been pointed out, it's less bloat than adding that
functionality to lynx.  And yes, multiple instances of screen can be
running at the same time.  If you run the screen command outside of
screen, it starts a new instance.  If you run it inside of screen, it
runs the specified program (or a shell, if none is specified) in a new
window of the current instance.  I almost always have it running more
than once on my computers.

Chuck



___
Lynx-dev mailing list
Lynx-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/lynx-dev


Re: [Lynx-dev] Re: how to maximize client area???, etc.

2005-02-09 Thread Chuck Martin
On Tue, Feb 08, 2005 at 06:00:19AM -0500, Thomas Dickey wrote:
> >That should work if you remove all of the quotes (they aren't necessary,
> >and will probably prevent it from working).  One caveat, however, is
> >that you must be viewing the source when using this to view the page with
> >w3m because the %s is replaced by the name of the temporary file used by
> >lynx, which will contain whatever is being viewed at the time.  If that
> >isn't the source, w3m will be looking at the plain text that Lynx
> >produced.
> 
> But that's the case for which EXTERNAL is useful.  You can define more 
> than one EXTERNAL command.

I've used both, depending on the situation, although I usually use
EXTERNAL.  The disadvantage is that EXTERNAL causes the page to be
downloaded a second time, and sometimes I don't want to wait for that.
On the other hand, setting up a proxy like Squid and pointing all your
browsers at it might eliminate that problem because they all use the
same cache, if I understand Squid properly.  I've been meaning to do
that, and then disabling the cache completely in all of my browsers.

Using PRINTER can also be good if there's a possibility of the page
changing each time you download it in case you want to ensure you're
looking at the same data in both browsers.  Again, that might depend
on if you're using a proxy like Squid, and if the page is cacheable.

Chuck



___
Lynx-dev mailing list
Lynx-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/lynx-dev


Re: [Lynx-dev] Re: how to maximize client area???, etc.

2005-02-07 Thread Chuck Martin
On Sun, Feb 06, 2005 at 08:45:15AM +0900, Henry Nelson wrote:
> Another possibility is to just give in and use another browser such as
> "w3m" which handles tables better.  I suspect you could call w3m from
> Lynx with a PRINTER define, but I'm not confident enough to direct you.
> Maybe `` PRINTER:View page with w3m:/usr/local/bin/w3m "%s":FALSE" ''.
> (Perhaps Chuck can give us a good one.)

That should work if you remove all of the quotes (they aren't necessary,
and will probably prevent it from working).  One caveat, however, is
that you must be viewing the source when using this to view the page with
w3m because the %s is replaced by the name of the temporary file used by
lynx, which will contain whatever is being viewed at the time.  If that
isn't the source, w3m will be looking at the plain text that Lynx
produced.

Chuck



___
Lynx-dev mailing list
Lynx-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/lynx-dev


Re: [Lynx-dev] how to maximize client area???

2005-02-07 Thread Chuck Martin
On Sat, Feb 05, 2005 at 03:59:36PM +, Harry F Doherty wrote:
> Oo, how do you do that?
> I've been trying to set up "vi-keys with lynx" style navigation any
> pointers please?

It's set from the options page (press "o").  The option is labeled
"VI keys" and is under the heading "Keyboard Input".  Or did I
misunderstand your question?

> If you do this you could try citing relevant legislation eg for the uk:
> http://www.disability.gov.uk/dda/
> Although most UK goverment sites only accept feedback via forms that
> don't work without Javascript!

I'll definitely have a look at that.  I do want to cite any relevant
pages.

> I do something similar.
> Is it possible to to bind a key in screen to cycle through just the lynx
> instances?
> eg
> binding a key to exec a script that calls
> "screen -X select $NEXT_LYNX_INSTANCE" ?

I don't know any way off-hand, but I'm not a screen expert.  A cursory
examination didn't come up with anything, but you might want to give the
lynx sessions the title lynx by adding the -t option to the screen command
in lynx.cfg.  Then, press ^A followed by ", which will bring up a list of
windows by name and number, with the current window selected.  Just cursor
to one with the name lynx.  It's not as quick or automated as ^A-n, ^A-p,
or ^A followed by ' and a digit, but it isn't too hard or lengthy, either.

> And more ambitiously would it be possible to have a script update a
> jumps file of lynxexec links to "screen -X " commands emulating a
> "goto tab" page?

Possibly.  I like to think almost anything you can dream up is possible
if you put your mind to it.

I don't have any answers for your other questions off the top of my head,
either, but like I said, almost anything's possible if you put your mind
to it.  Then again, some things need modifications to Lynx.  What is
sometimes not obvious is which need changes in Lynx and which ones are
already possible with the existing mechanisms.

Chuck



___
Lynx-dev mailing list
Lynx-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/lynx-dev


Re: [Lynx-dev] how to maximize client area???

2005-02-05 Thread Chuck Martin
On Fri, Feb 04, 2005 at 03:10:46AM -0500, [EMAIL PROTECTED] wrote:
> well, i was & did (smile).  thanx for your further grown-up thoughts,
> which are a welcome contrast to some of the "Yah-Boo" kind.

Well, I'm aware that there's a natural tendency for people to become
much more agressive online than they are face-to-face, so I make a
concious effort to make sure I don't come across that way.  I always
try to think "Would I respond to this person face-to-face like this?"
and if the answer is "No", I try to reword my response in the way that
I would be likely to respond in person, and in the way that I would
like others to respond to my comments.

> you will be pleased to hear that you have persuaded me -- a rare event --
> that adding an option to vary the left margin is a low priority or none.

One down, and, umm...how many more to go?  I've lost track.  :)

> > PRINTER:Save left-justified text:sh -c "sed -e 's/^ *//' %s > lj.txt":TRUE
> 
> i tested it & it works.  i've added it commented in case i ever want it.

Did you have any doubts?  :)

> another vital use for Lynx, which i didn't mention before,
> is to view HTML attachments in e-mails with Mutt.

I do this, too, and Lynx has the added benefit over most other browsers
and mail programs that handle HTML internally that web bugs don't work.
I have seriously been considering just blocking all HTML mail, though,
because I rarely get any that isn't spam, and I don't think HTML belongs
in e-mail, anyway.  The only exception I can see is as an attachment to
send someone a page so they can put it online somewhere, such as if you're
in the business of writing web pages, and you're mailing your work to a
client.  The primary message should always be plain text.

> > javascript is annoying
> > and I'm seriously considering starting to complain about those that use it.
> 
> good luck: i don't have such time to spare.

If I do it, I'll write a form letter that I can then customize for each
individual case, which will reduce the amount of time required.

> i really don't follow you here: how can you use Screen to sub for tabs ?

Put something like this in your lynx.cfg:

EXTERNAL:http:screen lynx %s:TRUE

Then when you want to follow a link in another "tab", just press ".",
and the page will be loaded in a separate window.  Changing tabs is
as simple as pressing ^A followed by a single digit, or if you have
more than 10, pressing ^A followed by ' and then the two digit number of
the window you want to switch to (the single digit windows can still be
switched to by the ^A-followed-by-a-single-digit method).

Actually, I do it a little differently, myself.  Instead of the above
line in my lynx.cfg, I have this:

EXTERNAL:http:browse %s:TRUE

and I have a shell script called browse that brings up a menu of browsers,
allowing my to not only bring up a page with Lynx and screen, but also
with Lynx in a separate Linux virtual console, Lynx in an xterm, several
other text browsers in screen, virtual console, or xterm, or any one of
the multitude of graphic browsers I have installed.  The shell script will
even check for the value of the $DISPLAY variable, and set it to ":0" if
it isn't set because some of these will need it if the current Lynx is
running in a virtual console.

This method also works if your current Lynx is in an xterm, and in fact,
I have a keyboard shortcut that I can use in X (with the FVWM window
manager that runs xterm like this:

xterm -g 134x56 -bg black -fg white -tn xterm-color -T Lynx -e screen lynx

That way, if I quit the last instance of Lynx in the window, the xterm
will close.  If you use that, you may want to change some of those options.
I've set it for a very big window that fills most of my screen (768x1024).
This also has the added benefit that if X crashes for some reason, you
haven't lost your Lynx sessions.  Just restart X and start another xterm
of the appropriate size and attach it to the screen session.  If you use
the above line to reattach, replacing the word lynx at the end with "-r"
and the optional screen session identifier, it will still close when you
exit the last instance of lynx.  If you open the xterm and then type the
screen command to reattach, you'll have to close the window yourself.

> > I should point out that the start-up time is very important to me
> > because I don't spend my whole day browsing the web,
> > and when I want to go to a web site quickly,
> > I don't like having to wait for the browser to start up.
> 
> yes, that's understandable, esp if you're not using multiple desktops.

I do sometimes use multiple desktops, but I don't start up a graphic
browser in one until I need it because I may not always want the same
graphic browser, depending on my needs.  In fact, if I don't need it,
I may not always have X running at all.

> > IMHO, those pages almost invariably look cluttered and ugly.
> 
> not how i see them -- everyone has different tastes -- :
> i find it easier to run thro' a list of news sto

Re: [Lynx-dev] emulating tabs in Lynx

2005-02-05 Thread Chuck Martin
On Fri, Feb 04, 2005 at 03:28:46AM -0500, [EMAIL PROTECTED] wrote:
> the current-recent thread about Lynx's uses raised the question of tabs.
> all the Linux GUI browsers offer tabs & Elinks makes a stab at them.
> it occurred to me that one way of emulating tabs in Lynx is to use 'V',
> ie running down a list of news stories -- my typical use of tabs -- ,
> following each interesting link in turn, then hitting 'V'
> & going to the stories individually in a natural order.
> 
> however, the problem with using this method is
> that Lynx follows links sequentially,
> whereas Firefox etc do it simultaneously,
> so that if one of the links you want to grab is a bit slow,
> the others are not delayed nor is your general reading rhythm.

If you use screen in the way that I described in my previous response in
the other thread, they will be downloaded simultaneously by the separate
Lynx sessions in each screen window.  Do you still think Lynx needs this
capability?

Chuck



___
Lynx-dev mailing list
Lynx-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/lynx-dev


Re: [Lynx-dev] how to maximize client area???

2005-02-04 Thread Chuck Martin
On Thu, Feb 03, 2005 at 08:42:32AM +, Thorsten Glaser wrote:
> Heyhey, emacs is an operating system, Lynx just
> a (real slim) browser.

The first time I heard someone say that about emacs, I thought he was
joking.  Then I learned more about emacs, and I realized that what he
said was true.  Make emacs bootable, and you'd have a complete operating
system.  As has been said, it just lacks a decent editor (I haven't tried
viper, but can it really compete with vim?).

To keep this somewhat on topic, I think emacs even has a text based browser
available, doesn't it?  I haven't heard much about it, like I have about
links, elinks, and w3m.  Does anyone know how it compares to those, and
of course, to Lynx?  Is it even still around, and does anyone still use
it?

Chuck



___
Lynx-dev mailing list
Lynx-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/lynx-dev


Re: [Lynx-dev] how to maximize client area???, etc.

2005-02-04 Thread Chuck Martin
I was going to reply to this last night, but I ran out of time.  I
apologize for the belated response.

On Wed, Feb 02, 2005 at 12:01:43PM -0600, [EMAIL PROTECTED] wrote:
> You write "default", and that implys options, which you here disdain.

No it doesn't.  They can be changed in the src/DefaultStyle.c before
recompiling.

I don't have a problem with options, anyway.  I just feel that in this
case, that is the wrong way to go about it.  I believe a better way to
do this would be to implement some sort of style sheets into Lynx,
preferably with the ability to assign separate style sheets to individual
domains or even specific URLs, so that you could create a style sheet
custom tailored for a site after visiting it to determine what format
was best for that site, and a default style sheet to be used for all
sites that didn't have custom style sheets.

> It is presumptous to suppose that all Lynx-users hav all those lovely
> Unix-kind programs--I hav not.

I believe they are available for Windows (for free?).  You installed,
Lynx; you could also install the utilities needed to do the things
you want with Lynx that are better done outside of Lynx.  Those
utilities would be very useful even apart from Lynx, too.

> If there are headers to scan!  I seldom see them, and most that I
> do serve the purpose of TITLE.

I see them quite often, so I don't know why you don't.  Most of the
pages I see that don't use them also do a lot of other things that
make them difficult to view with Lynx, like use graphics for everything,
including text.

> As for "man"-pages, they are based
> on the printed form, and there margins are less precious than on
> the text-screen.

No, man pages are more often viewed online than printed out.  I think
I've only ever printed out one man page, but I've probably viewed
hundreds, many of them multiple times.  They also generally have an
indent of about seven spaces for everything but headers, as opposed
to the three in Lynx.  They also have a much larger right margin than
Lynx.  I really doubt that removing three spaces from the beginning of
each line is going to change the word wrap enough to add more that three
or four words to any given screenful of text, anyway.  Maybe I'll have
to try it to find out.

> Now, too, I suggest the form of the option: the split between even
> & odd for heading & text is good, and also that H1 is centered.
> Therefore, I suggest in the local option file, or on the
> command-line, some this-like thing, maybe not this curt,
> 
>   indent  h(eading,)t(ext)
> 
> for the case that we now hav, and
> 
>   indent  t(ext,)h(eading)
> 
> for the case desired by me and two others.  If text is flush to
> the left, then no H1 is allowed to reach the left, however long.

As I said above, I think this would be better served by the addition
of some sort of style sheet capability.  Does everyone else who
wants to remove those three spaces want exactly what you described
above?  I doubt it.

Chuck



___
Lynx-dev mailing list
Lynx-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/lynx-dev


Re: [Lynx-dev] how to maximize client area???

2005-02-03 Thread Chuck Martin
On Thu, Feb 03, 2005 at 08:57:34AM +0100, Karl Eichwalder wrote:
> > Besides, GNU screen exists.
> 
> I use screen but I don't want to start 10 or more browser sessions at
> the same time.  Likewise I do not start more than one Emacs session :)

I don't find that to be a problem.  Only one copy of Lynx will be loaded
into memory, and with Linux, you can easily open a separate virtual console
for the whole set of Lynx sessions.  You can use screen as an external
program (see the External Programs section in your lynx.cfg) to load a
page into a new window in screen (these screen windows act as virtual
consoles within a Linux virtual console).  This may also work with other
Operating Systems (I believe FreeBSD has a similar feature), and I often
do it even in an xterm window in X.

Chuck



___
Lynx-dev mailing list
Lynx-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/lynx-dev


Re: [Lynx-dev] how to maximize client area???

2005-02-03 Thread Chuck Martin
On Wed, Feb 02, 2005 at 07:07:35AM -0500, [EMAIL PROTECTED] wrote:
> well, i deleted the 1st, thinking to let you have the last word, but ...

I wasn't trying to get the last word.  I just thought others might be
interested in what I had to say, and may want to comment on it.

> > Lynx is a web browser.  The defaults should be those
> > that help those of us who use it as a web browser.
> 
> the issue isn't defaults, but options: they're quite different.

My point is "Are more options necessary when there are easy ways to
do these things already?"  Especially if everyone who wants such an
option might have a different idea of what the additional option
should do based on their own use for that option.

> > Any other uses are the exception.
> > Those exceptions can generally be accomodated by a little scripting
> > using sed/awk/perl/shell/whatever-other-tools-you-may-find-useful.
> 
> are you seriously suggesting that people should learn Perl
> in order to e-mail news articles to their friends ??

No.  That was just one possibility, for those who already know Perl and
need it's power for what they want to do.  If I understand you correctly,
what you want could be very easily done with nothing more than sed.  Try
putting this in your lynx.cfg file:

PRINTER:Save left-justified text:sh -c "sed -e 's/^ *//' %s > lj.txt":TRUE

With that, you can just press P when you want to save a page with all text
left-justified (and select the appropriate option from the menu), and then
import the lj.txt file into whatever program you want to use it in.  Each
time you do that, the file lj.txt will be overwritten (I assume you don't
need it after you've done whatever you wanted it for).  If you don't want
that file hanging around afterwards, and would prefer to cut and paste
from the screen, use this instead:

PRINTER:Display as left-justified text:sh -c "sed -e 's/^ *//' %s | less":TRUE

I just tried both of these, so I know they work.

> > Some of my reasons for preferring Lynx have already been stated
> > by others who share my preference.  Others are my own reasons,
> > which I won't go into at the moment.
> 
> i'ld love to know which Internet sites you & the others visit.
> astronomy ?  archaelogy ?  Yahoo news ?  your local newspaper ?

Most non-commercial sites, and many commercial sites work fine.  Those
that don't are usually very graphics intensive, and I avoid them as much
as possible.

> just this week, i tried to access an article in Spectator (London),
> but its free (still just) sign-up has a 'go' javascript button:

I admit, javascript is annoying, and I'm seriously considering starting
to complain about those that use it.  Many of those that use javascript
use it to open a page in a new window, which I find annoying even with
a graphic browser.  If I want a page loaded in a new window, I can do it
myself, thank you.  Often, with Lynx, I can use G and cut and paste the
address in to avoid that problem.

Personally, I have a problem with javascript being so universally accepted
by the unwashed masses that commercial entities feel it's appropriate
to use it so extensively.  I disable it in all of my browsers that have
the capability on principle because I don't like the idea of running
programs from every unknown Tom, Dick, and Harry that puts up a web page.
I know that many people claim that it's safe, but I don't trust it, and
I will only enable it grudgingly if I really have to have access to a
web site that uses it, and I feel that the page is from a trusted source,
but even then I always feel I'm taking a risk.  Call me paranoid, but
when someone finds another hole in it to abuse, I'll probably be one of
the few people in the world that remain safe from whatever exploit they
find.

> have you heard about tabs ?  they make it possible to run down an index,
> send off for the stories, then read them in the order you choose,
> great eg for Linux Today: Lynx has no such device.

As someone else mentioned, the screen program does that nicely, and I
use it for that quite often.

> what do you spend your day doing ?  real-life work ?  scholarship ?
> or are you just a coder or sysadmin ?

I code only when necessary (to fix bugs or add features to programs that
are missing things I think would be useful).  Part of the reason I use
Lynx is because it makes much more efficient use of my time.  Not only
does the browser start up more quickly than any graphic browser (except
maybe Dillo), but pages load quicker and the vikeys option makes
navigation extremely fast.  I should point out that the start-up time is
very important to me because I don't spend my whole day browsing the web,
and when I want to go to a web site quickly, I don't like having to wait
for the browser to start up.

> > This is one of my pet peeves.
> > HTML was intended as a mark-up language, not a document layout language.
> 
> back around 1995, that was true.

It still is.  That's why CSS was invented.

> > Web page authors should be providing in

Re: [Lynx-dev] it doesn't render tables.... :-(

2005-02-03 Thread Chuck Martin
On Wed, Feb 02, 2005 at 03:05:14AM -0700, Seth House wrote:
> Whoops. One more made headlines today: MSN.
> (Although they don't get any brownie-points for displaying an error
> message if you hit it with a browser that doesn't support CSS.)
> 
> Here's a good write-up: http://stopdesign.com/log/2005/01/31/msn-goes-css.html

I'll check that one out, too.

> On that note, do most of you guys and you Lynx devs keep up on CSS
> news and technique? Or even Unobtrusive Javascript (hopefully the
> buzzword for 2005)? It's funny to me that something such as CSS that
> Lynx doesn't need or use has such potential to make the web a more
> Lynx-friendly place.

My thinking is that CSS was created as a concession to those who like
to abuse HTML for layout, so that they'll separate the layout from the
content and go back to using HTML for what it was intended for.

Chuck



___
Lynx-dev mailing list
Lynx-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/lynx-dev


Re: [Lynx-dev] it doesn't render tables.... :-(

2005-02-03 Thread Chuck Martin
On Wed, Feb 02, 2005 at 02:51:41AM -0700, Seth House wrote:
> Sorry, I've been posting on a few different threads, I mentioned here earlier:
> http://lists.gnu.org/archive/html/lynx-dev/2005-02/msg1.html
> 
> Perhaps I'm spending too much time reading sites of like mind and the
> movement isn't as widespread as I'd like it to be. But there are a lot
> of high-profile sites in Erik Meyer's 'Redesign Watch':
> http://www.meyerweb.com/eric/redesigns/
> 
> ABC News, Disney Store UK, Wired, Chevrolet, Movies.com, Amnesty
> Intl., AOL, Sprint, AT&T, Macromedia. Heck there's even been some
> hubbub about the Microsoft homepage trimming down the use of poor
> design methods - they still use tables, but not many. And it looks
> great in Lynx.

Thanks.  I'll check those out.

Chuck



___
Lynx-dev mailing list
Lynx-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/lynx-dev


Re: [Lynx-dev] how to maximize client area???

2005-02-02 Thread Chuck Martin
This one was also supposed to go to the list, so I'm rereplying.

On Sun, Jan 30, 2005 at 02:50:37PM -0500, [EMAIL PROTECTED] wrote:
> so, no-one will be preventing you from setting it for yourself.
> don't try to impose it on others who don't need it.

Lynx is a web browser.  The defaults should be those that help those
of us who use it as a web browser.  Any other uses are the exception.
Those exceptions can generally be accomodated by a little scripting
using sed/awk/perl/shell/whatever-other-tools-you-may-find-useful.

> > For one thing, without those spaces,
> > it's impossible to tell the difference between an H2 header
> > and a single line paragraph, which makes it very difficult
> > to scan through the headers in a web page when searching for something
> > or when trying to get a rough idea of a web page's content.
>
> why don't you use a GUI browser for such things ?

Because I prefer Lynx.  Some of my reasons for preferring Lynx have
already been stated by others who share my preference.  Others are
my own reasons, which I won't go into at the moment.

> i use Lynx mainly to send news articles to people via e-mail,
> when the indentation is a big pain, taking space unnecessarily
> or requiring a lot of editing to remove it.

As I stated above, this can be easily done with many readily available
tools.  Lynx can't accomodate every specialized use someone may come
up with, and shouldn't try.  It's a web browser.  Specialized uses can
be easily scripted to suit your preferences.

> otherwise, i use it to read local help files,
> where what is important is the text, not the variations in headers.

I find local help files much easier to use when I can see where the
headers are.  It helps me to find the section where the answer to my
question is most likely to be found, which makes more efficient use of
my time.

> surely, anyone outside the poorest parts of the World today
> has access to Firefox, Konqueror & other graphical browsers,
> which display WWW pages as their authors intend them to be seen.

This is one of my pet peeves.  HTML was intended as a mark-up language,
not a document layout language.  Web page authors should be providing
information, and let the end user decide what format is the most useful
to him/her.  I want to see the information the way it is most useful to
me, not in the way the author intended it to be seen.  We all work in
different ways.

> Lynx still has important uses, but in limited contexts.

Not so limited.  As others have pointed out, some of us use Lynx as our
primary web browser.

> > In fact, if you look through the src/DefaultStyle.c file
> > at the number of spaces in the various structures,
> > you'll find that information very useful in understanding web pages.
>
> i'm not the slightest interested in "understanding web pages".

I, for one, like to understand what I'm looking at/reading.

> i use Lynx for a couple of practical everyday purposes,
> where the actual text is important & structure largely irrelevant.

If structure really is irrelevant, then the current defaults should be
no problem, right?  :)

> sorry if i'm being a bit harsh -- it's not personal (smile) -- ,

Although it may sound that way, my points should not be taken personal,
either.  Even the one about my pet peeve.  It isn't you.  It's the way
the vast majority of web page authors misunderstand the purpose of HTML,
and try to make it do something it was never designed to do, which can
only be done by abuse of elements such as TABLEs and superfluous graphics
such as spacer.gif (a common "invisible" graphic used to position things).
Commercial web page authors are the worst offenders.  If they must try
to create a layout for their pages, it should be done with CSS, not HTML,
and they need to understood that some people may choose to ignore their
chosen style, or may be unable to use it.  It should never be assumed that
everyone will see your page in the same way, or that they even want to,
or are able to.

> but i really am irritated by the narrow-minded attitude of some replies.
> what's needed is a choice in  lynx.cfg  & the Options menu,
> when i can suppress the indentation & you can set it how you want.

That's a possibility, but is it necessary?  Will it serve everyone's needs?
Will it serve every specialized purpose that people are using Lynx for?
Or would most of these specialized purposes be better served by custom
scripting.  You may want everything flush left for your purposes, but
someone else may need something different for their specialized purposes.
Will an option to remove all spaces at the beginnings of lines (one of
the easiest things to script) suit everyone's specialized needs?

Chuck



___
Lynx-dev mailing list
Lynx-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/lynx-dev


Re: [Lynx-dev] it doesn't render tables.... :-(

2005-02-02 Thread Chuck Martin
On Mon, Jan 31, 2005 at 01:58:59PM -0700, Seth House wrote:
> Also many sites misuse tables. Try using Lynx to visit someone's blog
> or another modern site that doesn't use tables for layout, it's
> gorgeous. I have found that for displaying tabular data, Lynx can be
> more effective than the popular GUI browsers. As designers move away
> from these deprecated design methods Lynx users will experience less
> and less frustration with uncomfortable site rendering.

I haven't seen any evidence that web designers are moving away from
tables.  Have you seen it?  Do you have examples?

Chuck



___
Lynx-dev mailing list
Lynx-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/lynx-dev


Re: [Lynx-dev] Re: how to maximize client area???

2005-02-02 Thread Chuck Martin
I accidently sent a private reply instead of a reply to the list on this
one, so I'm rereplying.

On Sun, Jan 30, 2005 at 03:43:12PM -0600, [EMAIL PROTECTED] wrote:
> Switch the indentings s function, even for text and odd for headings.
> Few pages that I see hav headings, better to fill the screen for the
> commoner case--or option:

I think it's easier to scan headers if they're the only thing that starts
all the way to the left, and it seems that others agree with me.  Look
at man pages, for one example.

For another example, subscribe to the "This is True" newsletter
(www.thisistrue.com).  It's an interesting newsletter you'll probably
enjoy, anyway, and it's free (there's a non-free version for those who
want more stories and no ads), and all news items have a left justified
heading, with the story itself indented three spaces.  I haven't heard
of any complaints, and Randy (the author of the newsletter) would
likely publish complaints if there were any (at least a representative
sample) even if he didn't agree and didn't want to change the format.

Chuck



___
Lynx-dev mailing list
Lynx-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/lynx-dev


Re: [Lynx-dev] how to maximize client area???

2005-01-29 Thread Chuck Martin
On Fri, Jan 28, 2005 at 08:45:38PM -0500, [EMAIL PROTECTED] wrote:
> >> on the left size some blank columns are always present.
> 
> -- comment re hacking source snipped --
> 
> isn't it time to remove this rather burocratic left-over (smile) ?

I wouldn't call it a "burocratic (sic) left-over".  In fact, I find it
highly useful.

For one thing, without those spaces, it's impossible to tell the
difference between an H2 header and a single line paragraph, which
makes it very difficult to scan through the headers in a web page
when searching for something, or when trying to get a rough idea of
a web page's content.

In fact, if you look through the src/DefaultStyle.c file at the number
of spaces in the various structures, you'll find that information very
useful in understanding web pages.

For example, an H1 header is always centered (presumably because it's
usually used for the title of the page).  The rest of the headers are
indented progressively by even numbers of spaces; i.e. H2 headers are
indented zero spaces, H3 headers two spaces, H4 headers four spaces,
etc.  Since normal text is indented by three spaces, which is an odd
number, it will never line up with a header, so it's impossible to
mistake a single-line paragraph for a header.  Blockquotes are indented
five spaces, which is also an odd number, and will therefore also never
line up with a header.  And on and on.

Since Lynx can't have text in varying sizes and fonts to differentiate
these things, I think that the various numbers of spaces used to indent
things can be used, and is used, very effectively, to serve that purpose.

Perhaps these things should be documented somewhere so that users under-
stand why things are as they are.  I certainly don't want the defaults
to change, and if I were to change them for some purpose (such as a
small screen), I would want to change more than the default for normal
text, so that the various parts of a web page would still be distinguish-
able.  You definitely don't want normal text lined up with any of your
headers, for example, so you might want to increase the indents for
each of those by two.  You might also want to indent preformatted text
three spaces to set it apart.

Chuck



___
Lynx-dev mailing list
Lynx-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/lynx-dev