From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ag Ibragimov Newsgroups: gmane.emacs.devel Subject: Re: ASCII Tables with row and colspans Date: Wed, 18 Oct 2023 21:13:08 -0500 Message-ID: References: <878r863f3p.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31299"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Ihor Radchenko Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Oct 19 04:15:19 2023 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qtIZD-0007xo-3h for ged-emacs-devel@m.gmane-mx.org; Thu, 19 Oct 2023 04:15:19 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qtIYZ-0007gP-0p; Wed, 18 Oct 2023 22:14:39 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qtIYW-0007gF-Ar for emacs-devel@gnu.org; Wed, 18 Oct 2023 22:14:36 -0400 Original-Received: from mail-oi1-x232.google.com ([2607:f8b0:4864:20::232]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qtIYU-0000rK-TP for emacs-devel@gnu.org; Wed, 18 Oct 2023 22:14:36 -0400 Original-Received: by mail-oi1-x232.google.com with SMTP id 5614622812f47-3b2d9ac9926so1435583b6e.2 for ; Wed, 18 Oct 2023 19:14:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697681673; x=1698286473; darn=gnu.org; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=pYgMs4y7FJnYvBSuS9vcrdCBzKkc94ikHj+avvRJB9g=; b=jJX/zF6phRRgUcFz/GocK+8/aQc9pLsZYjc3hznCL/NWdOGsV6NHuOnVOKUlBPxflh LoDK8nYQHEqtatm/5j1tz9yRDnWK43lHEyniYhWD8Sv5yYqIr9ispu/gwAN3p16zjPRM jw1e4JdU47y07FkZqFfCB9/rl4AHdSi6UqP8jEvti79HKRr7Om0R23Ar+0h3H/P8nWUA 4MSprf/wwZz68IsTrMniVDvxG3yblM9bJRvgwrtxgA6uZ/GPujbuhPJd6REFkKjH7W9w bYeyw801nVMbFWn90M7vWAnyEHSyKn65529t/e+Bn6ODNae9SMqEIia4W+WhlsXhQLuN 38fw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697681673; x=1698286473; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=pYgMs4y7FJnYvBSuS9vcrdCBzKkc94ikHj+avvRJB9g=; b=ThIQaUvSjq425QtBEsmYpj9XTOoeU+a/ciMQJ4ygv2rDTdr2CS3QTVATRKy3DDd4Zk yCu6b3E4MCQ71ZY9OpYZp4XuZeAtYY9mHc2NbNAPbfFT94yfOjz9wmf8+vABD5DCUjoD GCS/Wyn05j1Gjnb4zKXB+w8tf9T7vlHPuBt+h5lQOOcjZNHYHxSzjMip/FecOX2C47ki T7Qc0lkk0wKnLoKHzxz4dgrQhp+xIVAzoFFvnWwL9lIE6BwPokBXGT4RUCGPYuMcnaDd eUAzQtGVJ3miM6L1ltUyAtZdjdI87MiegUz9LhA2vMvwNT3WwKJx9ff0dtDcJemdQe3Y R5sA== X-Gm-Message-State: AOJu0YyxaaF7ml8Kuol+vA06Uwfs1v8MAAuJOPqcupQxf1QM5tYWdwA2 KA+PODrNbo+dDyjhBViY46PEPZxvewh/Jg== X-Google-Smtp-Source: AGHT+IHRNmIVkdYxxqBTC4MOz+Tb2r8HBeufRsfCmxCiDsO03n/jTSnCAn2l2SnDkTX5z5RVC32DsQ== X-Received: by 2002:a05:6808:7cf:b0:3b2:e3b5:b94 with SMTP id f15-20020a05680807cf00b003b2e3b50b94mr832301oij.16.1697681673371; Wed, 18 Oct 2023 19:14:33 -0700 (PDT) Original-Received: from trabajo ([99.97.209.112]) by smtp.gmail.com with ESMTPSA id n13-20020aca240d000000b003a7a34a4ed8sm895415oic.33.2023.10.18.19.14.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 19:14:33 -0700 (PDT) In-Reply-To: <878r863f3p.fsf@localhost> Received-SPF: pass client-ip=2607:f8b0:4864:20::232; envelope-from=agzam.ibragimov@gmail.com; helo=mail-oi1-x232.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:311568 Archived-At: Ihor Radchenko writes: > Ag Ibragimov writes: > >> I've driven myself into a self-imposed headache. I need to render an >> HTML table (Elisp representation of it, result of libxml-parse) in >> ASCII. >> ... >> What's fast and easy way to render it in ASCII? > > AFAIK, AsciiDoctor has a very flexible table syntax. So, you may > consider converting the AsciiDoctor format and then using AsciiDoctor > ASCII export. I think you missed the point that I'm trying to do this in Elisp. This is for a small package I'm writing. I couldn't find a function anywhere that prints an ASCII table with spans. I thought it would be trivial to write one, turned out to be a bit trickier than I expected. I'm surprised that something like this doesn't exist already. I'm still hoping someone already solved that.