From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 2OiVOrzklGJKzQAAbAwnHQ (envelope-from ) for ; Mon, 30 May 2022 17:37:33 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id iHKjObzklGLhfQEAG6o9tA (envelope-from ) for ; Mon, 30 May 2022 17:37:32 +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 6CF43139F5 for ; Mon, 30 May 2022 17:37:32 +0200 (CEST) Received: from localhost ([::1]:59842 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nvhSV-000221-LN for larch@yhetil.org; Mon, 30 May 2022 11:37:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60612) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nvhRy-00021n-M5 for emacs-orgmode@gnu.org; Mon, 30 May 2022 11:36:59 -0400 Received: from mout01.posteo.de ([185.67.36.65]:34547) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nvhRw-0002SD-HL for emacs-orgmode@gnu.org; Mon, 30 May 2022 11:36:58 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 92291240027 for ; Mon, 30 May 2022 17:36:53 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1653925013; bh=rDseZU6ZYXo6FCINcmsptd/orqZ+HWC5YtcwaUgovw0=; h=From:To:Cc:Subject:Date:From; b=D07RbKCHr3PZXY924Melg+0IeJNysdylf+OGy+4qDye/4cXCIkMZM3XUIvi0GI1ln nEEzmSt3Fq+41dv9MwfJf1039zFM1+kDaqx8wQNdkHlsTUJFwwXt2Y4yZ4zNWStNT6 01/9aPrt1YL8POyj15E7xSzF1Vlf3gwypibhuDFZwHThG8+ZEZW2oirY4dYZLBkYKW 1QxCc/xV2szLO/t0rIOYLSfj1yJqG4GVSKJ0PJuli2OFV5aAxjs/j/pA4Kz9U/R/8p TkrJGYlpK08ixqnZVU+VUvJQ5Gc+ASfSVU2sKks9L9rNfBRxLWmN83kYgNcoZ6gePW LFAJH0civUP+A== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4LBffF00ZLz6tmY; Mon, 30 May 2022 17:36:52 +0200 (CEST) From: =?utf-8?Q?Juan_Manuel_Mac=C3=ADas?= To: Ihor Radchenko Cc: orgmode Subject: Re: [patch] ox-html.el: add html attribute (verse numbers) to verse blocks References: <87v92cooga.fsf@posteo.net> <87czfvoban.fsf@localhost> Date: Mon, 30 May 2022 15:36:50 +0000 In-Reply-To: <87czfvoban.fsf@localhost> (Ihor Radchenko's message of "Mon, 30 May 2022 13:10:40 +0800") Message-ID: <874k1758x9.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=maciaschain@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, 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=1653925052; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=8D0XLEohKHNAZtM3sqPwqcn9NOuUsjl579Uf18fd04I=; b=Bkbv3CBhVP4MQteRwwarsS9vSw8hXT2bnnv7i2sLXH8Do2zPxY2N9e3SsR/ubXj2goRukS agqlPR4xpLUXRfrUEUPTJwvK6XjBVYVzJtjxTb7JfUZx4RZlMuH059GCciGOFEnXbf8uot 6rk4eOaoe9GFS0WfH8kQInhYH5SRt9/a/2Vt+P+0JHN3Z9XmuveD8qXbhFGtN9tzBddXVr Xzr6mpqXCoo1XU23IL4o7UiGEHtdAo1lO9C0cvRgnddYbY0VypNRDfMgcJIsKwAjGT1i6r 6ob+42fseS6iMotuYsXmLQuHHIvAdmlK59Z4uplUicbdY+bUdtpSg0lF1CIJeQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1653925052; a=rsa-sha256; cv=none; b=BaLDQ07wIVTLO9hYnFZlD7UGcn4FYekrGIcEg2QXP6DxfauSIbo7pIDsLoiPjJv/cnycdS sMFtKlxQBMIsX+yPWR7AUd2SO9wDDwSSerqG45gQQEh5dBJG5J3iYmXSgOFFmlwecnbfV1 2ZXux2XhWKnExj7d2W4hu7zAcerCECtBwuAUueh6f6lT88jMYuEuPj1T+uYz9VYeLerxHP Kd2H863S476bhPElIihzsoaw0MEO6be9K/TSTCRLrRB/U4uUyLRZJCYIwA73fJgo6BSQfo Q2FT+1oJ5U9fH6CTk7yIE/bO5cu4Kw1HXN0vtAMcATRSRS9thpGtPqhdhwaHHw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=D07RbKCH; dmarc=pass (policy=none) header.from=posteo.net; 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: -4.23 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=D07RbKCH; dmarc=pass (policy=none) header.from=posteo.net; 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: 6CF43139F5 X-Spam-Score: -4.23 X-Migadu-Scanner: scn1.migadu.com X-TUID: 339DASm3c21l Ihor Radchenko writes: > 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. (I didn't remember that I had sent this patch...). I'll take a look at the function you mention, when I have some time. In any case, keep in mind that there are some conventions in verse numbering: the white lines (separation between stanzas) are never numbered and there is a sequence: 5 (first verse alwais remains unnumbered) ... 10 ... 15 ..., which can be chosen using the :lines attribute. :lines t defaults to a sequence of 5 verses. I chose this syntax to follow the syntax of verse numbering with output to LaTeX (another patch of mine that is already included in Org. In that case, the 'verse' LaTeX package is used). Verse numbering is a special case. In fact, a long time ago I wrote this package: https://gitlab.com/maciaschain/org-verse-num Best regards, Juan Manuel