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=-0.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 23913 invoked from network); 13 Feb 2021 09:29:04 -0000 Received: from hurricane.the-brannons.com (2602:ff06:725:1:20::25) by inbox.vuxu.org with ESMTPUTF8; 13 Feb 2021 09:29:04 -0000 Received: from localhost.localdomain (localhost [127.0.0.1]) by hurricane.the-brannons.com (OpenSMTPD) with ESMTP id 4ed85f37 for ; Sat, 13 Feb 2021 01:29:01 -0800 (PST) Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [2a00:1450:4864:20::430]) by hurricane.the-brannons.com (OpenSMTPD) with ESMTPS id 624b6234 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO) for ; Sat, 13 Feb 2021 01:28:41 -0800 (PST) Received: by mail-wr1-x430.google.com with SMTP id g6so2328957wrs.11 for ; Sat, 13 Feb 2021 01:28:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=O2pCWxo9ViqCkBz8SXYWOK+pKcSzPaoMYfExFXrx1nA=; b=iy9mQ2alFfEcdRHNmZEfeN2O45F7z9hUjBZIEnUOfW3FfqizHvwCIt5NIpzQe1g4eu /+i39k1s5nWjGSa3K8GCEwP7gGycg1NoAd6uGAtstDurnoLodwkUD6Ast0ABJowkQvjN jSND7ZV/Q77ghXUIGXjBzj/F4coXhBQ6FwsOc141f/0ChdsgmUccLfWMVIQVYTcYA0fq y64qGhd6zvQPpZbGbc3k3uwaLGZ+UL3T93sU86SCYVFF7EpE9lIEUD3GTe6+EVog6nfj Csb2pYHY5jw9sXNGbyWoCgYGis4XaEtXt3McohIC1EBvg8uhMyxZ2UKaIKJGhDk4sQt3 2kPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=O2pCWxo9ViqCkBz8SXYWOK+pKcSzPaoMYfExFXrx1nA=; b=qOOFztbdkohw8FuH6MW8Mr6GDmJ6Pxlm/dj+9tWe/gV0WRB85hFqYMTCIyb2KTCo7q 60Pi6Ot3cxdGXGtcr8CynV4ugxILftmDHuB5FK75NMp+rTYfuSqYdlsDj2g/4IHVE+mx LhB0Pmmpeofn7mmjGL/tJd+pUEI6LglFtevD3tR7CBMORPczsKJi8iRyr8KKKogPsRwO mkfoD6WREt44HPqG1D+41nk0R2g3aS7Ho8Pclv07mrxX9r3TiaIz6aGtsMNlf6jHvG/y +AtK+XD39SGhm3EGEWUqfGHUV0drVhy/xAAi9tj8/Vusu4HYdbbML3E9mkdMEp5FVGO1 4x1Q== X-Gm-Message-State: AOAM5318/nGXE+iBN1kBLQOZo5sRdJXcFcuxS/hfU3gm5HTYgxE+O58T 2VqhHCwpOdyD01JSz+7NQVV8nRdp0xI= X-Google-Smtp-Source: ABdhPJzHOyAdKgz277BSTMK3I5KHIrLKQ2MgaH1HRoeHODPj/i+HVEJKw/5rSzPjdgw74kBV0nwA4Q== X-Received: by 2002:adf:f80f:: with SMTP id s15mr8097348wrp.253.1613208519728; Sat, 13 Feb 2021 01:28:39 -0800 (PST) Received: from toaster (b.5.b.9.4.f.e.f.f.f.c.f.1.b.a.e.1.4.0.9.2.4.1.1.0.b.8.0.1.0.0.2.ip6.arpa. [2001:8b0:1142:9041:eab1:fcff:fef4:9b5b]) by smtp.gmail.com with ESMTPSA id m5sm14550906wmc.25.2021.02.13.01.28.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 13 Feb 2021 01:28:39 -0800 (PST) Date: Sat, 13 Feb 2021 09:28:37 +0000 From: Adam Thompson To: Karl Dahlke Cc: edbrowse-dev@edbrowse.org Subject: Re: [edbrowse-dev] shc Message-ID: References: <20210030191847.eklhad@comcast.net> X-BeenThere: edbrowse-dev@edbrowse.org List-Id: Edbrowse Development List MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210030191847.eklhad@comcast.net> On Sat, Jan 30, 2021 at 07:18:47PM -0500, Karl Dahlke wrote: > 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. Sounds like a step in the right direction. Cheers, Adam.