edbrowse-dev - development list for edbrowse
 help / color / mirror / Atom feed
From: Karl Dahlke <eklhad@comcast.net>
To: edbrowse-dev@edbrowse.org, niko@nikocarpenter.com
Subject: [edbrowse-dev] shc
Date: Sat, 30 Jan 2021 19:18:47 -0500	[thread overview]
Message-ID: <20210030191847.eklhad@comcast.net> (raw)

As usual, I'm trying to take small steps that won't disturb anything.

This is followup to my previous email about accessing the cells in a possibly wide table.

We want to query a cell by its column name or number, but can we get our hands on the column headings?
That would be the first step, yes?

There is already an shc command to show the columns of a database table,
only meaningful when edbrowse is in database mode.
I generalized it to show the headings of an html table, if headings exist.
But it is very specific,
perhaps too specific,
See html.c line 3970
So no doubt people will play with it and find examples where it doesn't work and I'll have to tweak these routines.
This part has to work, for almost all of the html tables in the real world,
before we can talk about any of the other commands,
such as col35 for the cell in position 35,
or colfoo to find the column with a heading that contains the word foo, etc.

Karl Dahlke


             reply	other threads:[~2021-01-31 22:27 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-31  0:18 Karl Dahlke [this message]
2021-02-13  9:28 ` Adam Thompson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210030191847.eklhad@comcast.net \
    --to=eklhad@comcast.net \
    --cc=edbrowse-dev@edbrowse.org \
    --cc=niko@nikocarpenter.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).