From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Maxim Cournoyer Newsgroups: gmane.lisp.guile.devel Subject: [PATCH v2 0/2] Add 'snarfi' guild script to convert SRFI HTML specifications to Texinfo Date: Tue, 12 Dec 2023 23:22:33 -0500 Message-ID: <20231213042306.13654-1-maxim.cournoyer@gmail.com> References: <20231203170504.7818-3-maxim.cournoyer@gmail.com> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30446"; mail-complaints-to="usenet@ciao.gmane.io" Cc: mirai@makinata.eu, Maxim Cournoyer To: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Wed Dec 13 05:23:52 2023 Return-path: Envelope-to: guile-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 1rDGmm-0007hF-7o for guile-devel@m.gmane-mx.org; Wed, 13 Dec 2023 05:23:52 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rDGmH-00023m-H8; Tue, 12 Dec 2023 23:23:21 -0500 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 1rDGmG-00023U-3g for guile-devel@gnu.org; Tue, 12 Dec 2023 23:23:20 -0500 Original-Received: from mail-qk1-x72b.google.com ([2607:f8b0:4864:20::72b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rDGmE-00043u-Jq for guile-devel@gnu.org; Tue, 12 Dec 2023 23:23:19 -0500 Original-Received: by mail-qk1-x72b.google.com with SMTP id af79cd13be357-77f320ca2d5so481170885a.1 for ; Tue, 12 Dec 2023 20:23:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702441396; x=1703046196; darn=gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=DOY7sWZdGMAYhUmaneUPywbJMLgpOWrlSEHujAyp0Dg=; b=mG9pwlEi8SluiIZ0YWjWs07qc2kAXvp59oj2iY2DnvZNd03QBCQG9uQPl05EfC1dzp w5T5+xaWIok13X/UiywkuhrMI/GbH14B0CzPfp3jhOPJqClRIUkilZoPLD1t0ON0N+t4 LQNLVy3mJJzg2RcNFTdgFvz99FVttKoWwEsfSwnckJqo23OEBMSzcmmJZ+a8k4rB0SQr dEfjm36JnE9/9mGlUNVvYGjPO1P9kvONtL+nJDU0O2eHFzKPfbbt6HPnlH2AJtZjj7oQ q0y8SV/bVmISY1ZI4+2/cLWNiuD0SSoClTYL7acUcLfhWvBgAx0mr7agQa61ktOynqW6 myuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702441396; x=1703046196; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=DOY7sWZdGMAYhUmaneUPywbJMLgpOWrlSEHujAyp0Dg=; b=bbXClgkofEDHxDeOc4iA9Zoovhfv6nGQogWphucNb6Q9dWpVYcN8Vp3bGHG7qfiL72 H2/QOxCGQwodKdiJaMHydq7Euc/kgIUcEW56oyoVN7HpN6m+BJ/k/wTwxnKaSYVjn6a+ wJuuBYMIS+NSrfzMu4nY8pH4q/ITMFy2LHJUPMMuwdZUb7JLSbcn8sXXvIfbCYGiX+9+ ipBDYYDjjjr/PMftGDGbMl4ce/iZTCsa1WgxuB3K2OJAPnuwwTMqE/2wb0YFMjRZmdoM ObVIpxQup20tLVXfPUSUc/PVegjlJ+iPnZu84h49uxD/qbPvVOEwPDErlTcvjWypKLiQ G08w== X-Gm-Message-State: AOJu0Yx+635TCuqSMkqmJ0bRrqZlHTB5/Wh9wERO7+xL8Nv21wBcjsFU 2JLRh6BAKDaXfikQDQjf1c6TsunETb3BiA== X-Google-Smtp-Source: AGHT+IFUwPUwLLYYasJlw9s5muhbi7jTYehHoVDSg4cir4dT9ftuwc8m18WZt/2dOwIZ+Xqxjy+BVQ== X-Received: by 2002:a05:620a:2711:b0:77f:2734:4c58 with SMTP id b17-20020a05620a271100b0077f27344c58mr11966166qkp.50.1702441396147; Tue, 12 Dec 2023 20:23:16 -0800 (PST) Original-Received: from localhost.localdomain (dsl-157-186.b2b2c.ca. [66.158.157.186]) by smtp.gmail.com with ESMTPSA id dt8-20020a05620a478800b007749dc7881dsm4212560qkb.48.2023.12.12.20.23.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 20:23:15 -0800 (PST) X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231203170504.7818-3-maxim.cournoyer@gmail.com> Received-SPF: pass client-ip=2607:f8b0:4864:20::72b; envelope-from=maxim.cournoyer@gmail.com; helo=mail-qk1-x72b.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, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.lisp.guile.devel:22227 Archived-At: Due to challenges in the unspecified HTML format used by the various SRFI authors, the result is not perfect, but it's still a great help when adapting the specification HTML into Texinfo. It requires guile-lib for its htmlprag HTML parser, which is autoloaded to avoid introducing a hard dependency on it. Changes in v2: - Add support for HTML table -> Texinfo @multitable - Only splice "Specification" section if necessary - Preserve spliced section leading text instead of discarding it - Various bug fixes - Use SPDX/REUSE for license/copyright notices Maxim Cournoyer (2): .dir-locals: Add indentation rule for sxml-match syntax. scripts: Add SRFI documentation HTML -> Texinfo snarfer. .dir-locals.el | 3 +- LICENSES/LGPL-3.0-or-later.txt | 304 +++++++++++++ am/bootstrap.am | 1 + module/scripts/snarfi.scm | 752 +++++++++++++++++++++++++++++++++ 4 files changed, 1059 insertions(+), 1 deletion(-) create mode 100644 LICENSES/LGPL-3.0-or-later.txt create mode 100644 module/scripts/snarfi.scm base-commit: d8df317bafcdd9fcfebb636433c4871f2fab28b2 -- 2.41.0