From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id oLjIFRiPIWUHdwEAG6o9tA:P1 (envelope-from ) for ; Sat, 07 Oct 2023 19:02:16 +0200 Received: from aspmx1.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id oLjIFRiPIWUHdwEAG6o9tA (envelope-from ) for ; Sat, 07 Oct 2023 19:02:16 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id C4CC6432EA for ; Sat, 7 Oct 2023 19:02:15 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=AqQlZfWD; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1696698136; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=/2k21dLx6m3tTmMJz22aKZnGvGJlcKjSe8B32HOii+Y=; b=BZ1hUNOqHgrIrjiZPHWNkQU64d3W8FHHYNG/Ss94VETXr9HImUwjPg/Gkrox1ozTb4T1Cf 4XrkZTme+HgBgYMMh3I+oRkG7Y9q/LkY1eeeOHm4TUcPkmQ/moKHQn14aSEkOkobFyidVZ hzv1XZ28fT2MEUD2r3Kva2N8HtyFD3UiRuqxQTfjiB6Dl/VaeLu8HiRnmylsN5NT9OMPUU V6hnvFxPTYQ/lvU+qEue6BmCPuGZx2M513Csj4e1CD5jmtp809xoI64HDdzFQThVtYQMA5 DHti6RmRuprx/EeUOTfAqbZnEjQTUnoRAsqC7QEGtcx7qrehOCRhwV3seWnxHA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=AqQlZfWD; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1696698136; a=rsa-sha256; cv=none; b=D5/odI4P1I0tCTXxjvNJHwwNH/MQr1Fk4cHjVQlpyj5qJR+qyoFjangWSgibdFWItceg+/ wEY/cjhRPO5R1/qp7QPmZOio3ogXpcjsyKg6Xim8apoaO5aNzi+ly9gWZkenEIWpjPz9XN oT7KWIsuNH6MJL1AZuL+8zVBTQEmRUCsshAciVR5lzoeqMYH8b5lWsDIH79sZzA9MP6Wu/ mvRM8R5AUEdz2Wnn08T7TLSu8EQK5KgPLDuaivNbui7GngcHlrlpOv6HMfplHhZRExhWxl gAehQfjqgRxbVqBJ+znJYEdJSmRuWSc1szwOQgXQYaoJib30omLKSKDS+Jn15g== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qpAgT-0005RO-NP; Sat, 07 Oct 2023 13:01:45 -0400 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 1qpAgR-0005Qs-Dr for guix-patches@gnu.org; Sat, 07 Oct 2023 13:01:43 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qpAgR-0003sL-1u for guix-patches@gnu.org; Sat, 07 Oct 2023 13:01:43 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qpAgk-0007Du-Gp for guix-patches@gnu.org; Sat, 07 Oct 2023 13:02:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#65479] [PATCH core-updates 17/61] gnu: Add docbook-mathml-1.0. Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 07 Oct 2023 17:02:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65479 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Bruno Victal Cc: 65479@debbugs.gnu.org Received: via spool by 65479-submit@debbugs.gnu.org id=B65479.169669811327749 (code B ref 65479); Sat, 07 Oct 2023 17:02:02 +0000 Received: (at 65479) by debbugs.gnu.org; 7 Oct 2023 17:01:53 +0000 Received: from localhost ([127.0.0.1]:55836 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qpAga-0007DV-GF for submit@debbugs.gnu.org; Sat, 07 Oct 2023 13:01:52 -0400 Received: from mail-yb1-xb2e.google.com ([2607:f8b0:4864:20::b2e]:52707) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qpAgZ-0007DG-3O for 65479@debbugs.gnu.org; Sat, 07 Oct 2023 13:01:52 -0400 Received: by mail-yb1-xb2e.google.com with SMTP id 3f1490d57ef6-d81adf0d57fso3327370276.1 for <65479@debbugs.gnu.org>; Sat, 07 Oct 2023 10:01:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696698085; x=1697302885; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=/2k21dLx6m3tTmMJz22aKZnGvGJlcKjSe8B32HOii+Y=; b=AqQlZfWDaKrsVFzFMdAdjocnEUOmLA6OVmIQy3Ma1shUQH68dC6u+Anqx0bVag5GNs 59jiRb64LpOl+Vq7Wz0trjjU313ta1cWKhyjrvz5s9C2IvCpvd4BIdSSOkY8hZKW2k3j KxUvfnZ8mJvZT/THS1toR7nwpvw0JTmClJhzsYKq/BXfK5gDJBi43aZFoOsMUIP46GDB w1DsqMdwrM31BIOjWA0glg8WTURJOa6Sv21HwuIlbIwQDaYbPP9KTVMD9LjVx2AxZWg+ cgPPsuVE7FOiyWmgCmZCtRZMeYY4GrUDLaL4hUVysujdK9g85Vxo2XIyax/IlFK7WI5U 49ww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696698085; x=1697302885; h=content-transfer-encoding:mime-version:user-agent: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=/2k21dLx6m3tTmMJz22aKZnGvGJlcKjSe8B32HOii+Y=; b=mhak0bqRkf/F/EjNlxJsOILGviQmcQyXhT2ouT0o/OTeDOcP/yfdbKtfCD/bpYgUiY IiN/7xCh4TkyioREaARXF6eS6Q8P0jDlBXaDRIxYhZ/1RHVksDfYL97GUuv6o3izCOzV Jp29rf5r5CcY/ubgBYghkYVZYXk4ksfEMcifZfzz278DuzVJFJjSKhpmq32rw9trg6e/ KBwyJfq7n5CtAiIfAmTRTYH6OPzC20p0JBbqKE4FSp+JgLlHGYg/ug1fEa/PYO1lqLD+ bfuZb+2wXuUIwXRS+ieWXabYwrjpqFK1zBQ7T3zl2cFeupbtqHIq+Lf1Jvo90jwx3Bhs OuIQ== X-Gm-Message-State: AOJu0YwTEn3bOXAechDDSZTuyjRXXw6TtYUwxGy1aP46wCquB1TOA9Ja 1tzZjFKG+TOPP8CAwkHhzbR/K3wCiZU= X-Google-Smtp-Source: AGHT+IHdtWysIpNrSsY6VQnJo+brBchjxkiQ8DfRRo5I1hOrfT35EpbFdsjS8+s7mT36HnSNj/dXeQ== X-Received: by 2002:a25:4158:0:b0:d05:9c0f:7690 with SMTP id o85-20020a254158000000b00d059c0f7690mr10506265yba.20.1696698085409; Sat, 07 Oct 2023 10:01:25 -0700 (PDT) Received: from hurd (dsl-158-21.b2b2c.ca. [66.158.158.21]) by smtp.gmail.com with ESMTPSA id a12-20020a0ce38c000000b0064723b94a23sm2308987qvl.27.2023.10.07.10.01.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 07 Oct 2023 10:01:25 -0700 (PDT) From: Maxim Cournoyer In-Reply-To: <996765ea-6f86-441f-bb9e-710fc1c70f9e@makinata.eu> (Bruno Victal's message of "Fri, 6 Oct 2023 15:59:21 +0100") References: <3971596b65c5520b349e80cff4e07f67a840131b.1692830149.git.mirai@makinata.eu> <87wmw0linu.fsf@gmail.com> <996765ea-6f86-441f-bb9e-710fc1c70f9e@makinata.eu> Date: Sat, 07 Oct 2023 13:01:23 -0400 Message-ID: <87wmvygye4.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: 2.81 X-Spam-Score: 2.81 X-Migadu-Queue-Id: C4CC6432EA X-Migadu-Scanner: mx2.migadu.com X-TUID: HHla0i7tR0BM Hi Bruno, Bruno Victal writes: > On 2023-10-06 01:05, Maxim Cournoyer wrote: >>> + (add-before 'install 'generate-catalog.xml >>> + (lambda _ >>> + (let ((store-uri (string-append "file://" >>> + #$output "/" >>> + #$target "dbmathml.dtd= "))) >>> + (call-with-output-file "catalog.xml" >>> + (lambda (port) >>> + (sxml->xml >>> + `(*TOP* >>> + (*PI* xml "version=3D'1.0'") >>> + (catalog (@ (xmlns "urn:oasis:names:tc:entity= :xmlns:xml:catalog")) >>> + (public (@ (publicId "-//OASIS//DTD DocBook= MathML Module V1.0//EN") >>> + (uri ,store-uri))) >>=20 >> These lines are > 80 chars. You could bind the public ID and namespace >> as variables to keep these lines shorter. > > Would it perhaps be better to define the SXML catalog instead as a > separate procedure/phase and invoke it instead? i.e. > > ;; Decouple catalog > > (define make-dbmath-catalog-sxml > #~(lambda* (#:key outputs #:allow-other-keys) > (let* ((=E2=80=A6something along the lines of (assoc-ref output "ou= t") > or (search-input-files outputs "dbmath.dtd")) > (uri (string-append "file:/" =E2=80=A6))) > =E2=80=A6 SXML representation of catalog=E2=80=A6)) > > (define-public > =E2=80=A6 > (add-before 'install 'generate-catalog.xml > (lambda* (#:key outputs #:allow-other-keys) > (call-with-output-file "catalog.xml" > (lambda (port) > (sxml->xml (#$make-dbmath-catalog-sxml outputs))))))) > > ;; alternatively, if this is valid=E2=80=A6 > > (define-public > (define make-dbmath-catalog-sxml =E2=80=A6) > (package > =E2=80=A6 > (add-before 'install 'generate-catalog.xml > (lambda* (#:key outputs #:allow-other-keys) > (call-with-output-file "catalog.xml" > (lambda (port) > (sxml->xml (#$make-dbmath-catalog-sxml outputs))))))) > I don't think that's valid, but I've not tried. The idea is to try to meet the 80 chars limit while not making the unique strings awkward to use (e.g. by breaking them on multiple lines). I thought there's only 2 of them here so binding them in a let seemed the best way to go. Let's keep it simple :-). --=20 Thanks, Maxim