From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: * X-Spam-Status: No, score=1.5 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, FREEMAIL_FROM,RDNS_NONE,SPOOFED_FREEMAIL_NO_RDNS autolearn=no autolearn_force=no version=3.4.4 Received: (qmail 9781 invoked from network); 31 Jan 2021 22:27:43 -0000 Received: from unknown (HELO hurricane.the-brannons.com) (216.252.162.32) by inbox.vuxu.org with ESMTPUTF8; 31 Jan 2021 22:27:43 -0000 Received: from localhost.localdomain (localhost [127.0.0.1]) by hurricane.the-brannons.com (OpenSMTPD) with ESMTP id cab9de21 for ; Sun, 31 Jan 2021 14:27:37 -0800 (PST) Received: from resqmta-ch2-08v.sys.comcast.net (resqmta-ch2-08v.sys.comcast.net [2001:558:fe21:29:69:252:207:40]) by hurricane.the-brannons.com (OpenSMTPD) with ESMTPS id 0e2a75da (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO) for ; Sun, 31 Jan 2021 14:26:59 -0800 (PST) Received: from resomta-ch2-03v.sys.comcast.net ([69.252.207.99]) by resqmta-ch2-08v.sys.comcast.net with ESMTP id 60FLlzuP592Bp60S2lVKWE; Sun, 31 Jan 2021 00:18:50 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=20190202a; t=1612052330; bh=9hEf35MLgAowRW/+EzFewi92vo5ZHmiFY9nvsvicX2M=; h=Received:Received:To:From:Reply-to:Subject:Date:Message-ID: Mime-Version:Content-Type; b=rPPMtML8hDKMGwj7SOkTarus0iKCJwMb4PEEAmJaUYPumqvg9T0Dl8UD+MvIFwCgS 6irtdH22TQLalF6yTSGy6s3Ga3OO6am6p2cERoEVXjpLgFR8KO5RI619ApCwR1F85c Mgh9zjjEYNYmAab1KSwF/jbfqyUErLDj7KWmUfyPBcoY3AODnKZ1R+tTjhIwp/6T2E En8NcRDde/4mVVvq6135HoCKtFdGbulAKPdUCM3HHheQenO9D/etRIuLkDZwgGTP92 A1/pbDpUWZU8TOp+/TWxRZSu/DYikVK8qBOe7tpU+PxWzavJJjlwEPdLf2XLHEYCNW k+ic8YhH01k/w== Received: from unknown ([IPv6:2601:408:c300:a3d0::8f97]) by resomta-ch2-03v.sys.comcast.net with ESMTPSA id 60RzluEGSM6HJ60RzlccoC; Sun, 31 Jan 2021 00:18:49 +0000 X-Xfinity-VMeta: sc=0.00;st=legit To:edbrowse-dev@edbrowse.org, niko@nikocarpenter.com From: Karl Dahlke Reply-to: Karl Dahlke User-Agent: edbrowse/3.7.7 Subject: [edbrowse-dev] shc Date: Sat, 30 Jan 2021 19:18:47 -0500 Message-ID: <20210030191847.eklhad@comcast.net> X-BeenThere: edbrowse-dev@edbrowse.org List-Id: Edbrowse Development List Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit 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