From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id QGm3FwpSlGL5VwAAbAwnHQ (envelope-from ) for ; Mon, 30 May 2022 07:11:38 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id CDOKFwpSlGKfLAAAauVa8A (envelope-from ) for ; Mon, 30 May 2022 07:11:38 +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 0733DDDF1 for ; Mon, 30 May 2022 07:11:37 +0200 (CEST) Received: from localhost ([::1]:49494 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nvXgn-0003RM-1w for larch@yhetil.org; Mon, 30 May 2022 01:11:37 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53020) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nvXfJ-0003PZ-MW for emacs-orgmode@gnu.org; Mon, 30 May 2022 01:10:05 -0400 Received: from mail-qv1-xf36.google.com ([2607:f8b0:4864:20::f36]:45905) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nvXfG-00020Z-Mu for emacs-orgmode@gnu.org; Mon, 30 May 2022 01:10:05 -0400 Received: by mail-qv1-xf36.google.com with SMTP id ea7so1580628qvb.12 for ; Sun, 29 May 2022 22:10:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-transfer-encoding; bh=5za/BFR2xqiQS2kwgRQIVyo6VBBB2ZZ87vVSLxYBNLc=; b=ZAd8xJLtqhkKiXP/V9ebHQOKBoyHXyBbRodXJ2njIfED6PC7r4oWWy2cLoerJgyKS0 4SJHIp/fes10ILwDgJmBJAPKo+9MZUR9XjosIZqbGmIL4KkpEcl04TF3ElFPRAxdp/ZR bcJQTEbCxPFhpgfcI046RQy+nFEggzAwsmTks5jO7lV9PrKXv0OtgEaKs9nSeDhNHdkJ 9v1I9nS2Q8OfESDpAyA2P4WW+x8DKDSR83ZgshGIjRvZVj/TOUffur8e66W2F+09ju1L aPejMwIdDX/cn5cfDPpWJCqt+Z7/J+QQmFq78N+zRI20Qe6EGcRuuTrVO0LgHSG2n+Tf VeLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=5za/BFR2xqiQS2kwgRQIVyo6VBBB2ZZ87vVSLxYBNLc=; b=U3nD6wrvpGuAMUR2QrGqt3YhnSf8qxTgFscZdifFnSa/HPBdaLk5EMLS8fGF/IzJVo UWOZ/rGgIN/DV7/jArVIh2RxOXX9TGCBrbdhZk/zVgUxF9x7G6U/yBaTPyn3sGWe1N6H OaKic/6tpq9ckiLAvZTUxe7tYj633+7UC8mHU7TQcveErU3EAZQUrJe+4StYixy5diuS k8/VZIgodO4nbq/pLtbFJxyQsh2AaSByPNZYciwCcRTqhYDdF40l/lhqiSnzIMHLGIzf MQhXSXjxHX24wRhMGOq7PZ4dkIg0fFtku/7xNsh7kiVu+pkHXibPyrXFolQ1sdb2aiBT CDvQ== X-Gm-Message-State: AOAM531IjqVYtpc/cTIHyPu4cajVMIXPN1tDrR1cv+qCUTD8dmkx043j juQYtPjNiQyRXcYEvdHmguNK7P+XVxnLN//K X-Google-Smtp-Source: ABdhPJw2enClKvVAkO6Ze5Pbo7+xW5xZbOAzoc0xozGbgzXWdjFbLwyBRV0izpWe5OQbL0v4s+SaNg== X-Received: by 2002:a0c:9121:0:b0:464:35eb:23f8 with SMTP id q30-20020a0c9121000000b0046435eb23f8mr9740447qvq.49.1653887401705; Sun, 29 May 2022 22:10:01 -0700 (PDT) Received: from localhost (22.b2.a86c.ip4.static.sl-reverse.com. [108.168.178.34]) by smtp.gmail.com with ESMTPSA id s1-20020a05620a16a100b006a5fb8219bbsm3862390qkj.44.2022.05.29.22.10.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 May 2022 22:10:01 -0700 (PDT) From: Ihor Radchenko To: Juan Manuel =?utf-8?Q?Mac=C3=ADas?= Cc: orgmode Subject: Re: [patch] ox-html.el: add html attribute (verse numbers) to verse blocks In-Reply-To: <87v92cooga.fsf@posteo.net> References: <87v92cooga.fsf@posteo.net> Date: Mon, 30 May 2022 13:10:40 +0800 Message-ID: <87czfvoban.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::f36; envelope-from=yantar92@gmail.com; helo=mail-qv1-xf36.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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_ENVFROM_END_DIGIT=0.25, 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: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1653887498; 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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=5za/BFR2xqiQS2kwgRQIVyo6VBBB2ZZ87vVSLxYBNLc=; b=lJmM6cefH4w6Hl36jSD83QtEtPyE4M/uiBHdGdvZ+T7Du7kOZMA44uOgsOJ2oTocLm5DuT A1Uz8GaLSC9gu1o1oINNnSlOxk+pw6e6BqgBzBoCMGgAEp3sGRBr/DJjzYWZnhd+0iYInf uoV7VBK6O1KFauCn91HJOXHVAa/yZw3PGKzRhTqWYuZDigxBqfHB8tglg4NcynhaKNcBYn q00lGW7TrVX7SK14vJ12tyowvfauN1b/DmHTwd4lBi7RRKU/L4SUshT0+jdeceAj8bzrPE ObkPLmHUojwYBWnjVaYWBneRnC7PRuok0qANNTSO/sceP2/MZDVuUDXa43YVBw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1653887498; a=rsa-sha256; cv=none; b=RU2radICbZcBqvk0A78Uu+RkW/GNuokE3urLEKBO3QkGdfqh64VmqOQE2yL4k1FUzdCDY2 Jv2kPn9lgIOJey7gT/luMLeAqykyWuKnrd69AGgcEH1prlNbEodW6cjYzwRc+vPvJyL42N AvYZFZuLvPQ2Xnd5eci5s7stTTm/z82MpZfo/35bO8QDntI0gBBMfywjkqFiLIsYC6VAwB JmiR+LnsyGJJONTE3XJEJ1ymYso3MyqwTy/J4WVeE7GffprSqFYpl13ySLdyjyEcq9yj9I 1Wr3Pk0zfnFf+HQf0lqJRJiYjkz5tqd/2y+ccn36IEVZi2zVVgSWNYa6zi52zQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=ZAd8xJLt; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -5.33 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=ZAd8xJLt; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 0733DDDF1 X-Spam-Score: -5.33 X-Migadu-Scanner: scn0.migadu.com X-TUID: ohAvpzerGnQ0 Juan Manuel Mac=C3=ADas writes: > I believe that an html attribute to display marginal verse numbers in > sequence could be useful for certain content, as philological texts > (like here: > https://en.wikisource.org/wiki/The_Iliad_and_Odyssey_of_Homer_(Cowper)/Vo= lume_2/The_Odyssey/Book_I) > > The `lines' property must be a digit that is equivalent to the verse > numbers sequence: > > #+ATTR_HTML: :lines 5 > #+begin_verse > some verses... > #+end_verse Sounds reasonable. However, a more consistent way to handle line numbers would be using switches, like what we do in EXAMPLE blocks. See org-element-example-block-parser and 12.6 Literal Examples section of the manual. Similarly, line numbering support can be implemented across more export backends. Best, Ihor