From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id SJ4dLkD7lWJlGQEAbAwnHQ (envelope-from ) for ; Tue, 31 May 2022 13:25:52 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id QI/9LUD7lWKcIgAAauVa8A (envelope-from ) for ; Tue, 31 May 2022 13:25:52 +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 33883BB43 for ; Tue, 31 May 2022 13:25:52 +0200 (CEST) Received: from localhost ([::1]:36040 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nw00V-0000M1-BK for larch@yhetil.org; Tue, 31 May 2022 07:25:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49426) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nvzcR-0001H9-AG for emacs-orgmode@gnu.org; Tue, 31 May 2022 07:01:09 -0400 Received: from mout01.posteo.de ([185.67.36.65]:54381) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nvzcH-00074n-Ps for emacs-orgmode@gnu.org; Tue, 31 May 2022 07:00:54 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 0015F240028 for ; Tue, 31 May 2022 13:00:42 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1653994843; bh=oMydmIpEy54/nITcz4v6uLfjU7+lXz/TUZTgJxKcIrI=; h=From:To:Cc:Subject:Date:From; b=oHW59IHlgT5iRKRxNEkCEKYILp3wOo3SLBUMKu9d0o6LaFplnzH7h5uud51EHv4+8 JYUj+zmCyNlU0/2XsRUte2L59zMDAYjLkoK9BCUWXwBXyWrKapTHLQtIv5wXJs2iLs IngCRN4mfttKdsgqFkcW0G5mxG7oWmVXIYyvpXL7yff87C00bD/egBwzxVbulFcHgt IWJ6v/vNJIkdw0ZysO5xjeloDW7pWKMmeuRK17UPblhahLnWfiMgO42yb9akx+5uUH JOhJ7qdziVMXCD3oBl2z3AxOQwlU4ETXYBTLRJB41gm6tZ7CI18PUCKSfjvoPeanF0 47+mBNRUqlIpg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4LC8T61RmCz9rxP; Tue, 31 May 2022 13:00:41 +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> <874k1758x9.fsf@posteo.net> <874k161ebo.fsf@localhost> Date: Tue, 31 May 2022 11:00:40 +0000 In-Reply-To: <874k161ebo.fsf@localhost> (Ihor Radchenko's message of "Tue, 31 May 2022 13:06:03 +0800") Message-ID: <87k0a2c6g7.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=1653996352; 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=AXy8TtcmVZu/g1teidAHJpbk0oL14TglF5lUdcn38EE=; b=YAHXSdhzHswJzFgo8xbHxbFFskmp9tXmqHdlL78wM5MMvzvfGm6LVdE/koZl1kfzf3h2hm xBejPX+LoHeULhnWN3b51yJxiskmcqsH5W8UR0v3Qdk4Jd69JGrwJX3+GGlW82ayPenQPI 6SJhj7NMg05lV5ZIGjh4pkGYksCCeVLURJ+U7+vIFTePZbWnGmGFalIHIv/+3hMDuk9kDS h149vltCbnMKZI4m1zrpKarX9OVESWs14t+R0Qsdv/Ts4hF90HDZSF/p6m7nudhP2ynB4d QkT5FdTgWL+P7KZDz1NB0W3foQv5dXZJlGDHWo4ulcegbwV23p2PPVANSQJHmQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1653996352; a=rsa-sha256; cv=none; b=AJVCMQMsZ+vbmv/4BZuILO93jlaLrSdKo/bEljymOwG1TydAM/Oft5Jsj4N8QOptyD7qEb KKGzj91D74a7az9gkEOmhmzhvGCxnaIJG3UHYg0I4PW8r7gvPtzI2Ova7L9AWodwedO7M7 jReHURSYdVV4AAyt/iyNVKg4fstdF1UEMRkXzODCzt0QZCwQ0cheUT55fdmMTra7iaZqo0 R+vMGOvG4G/X+LRmARiqNHKcIVy7nv60wGKrLxm1KO07KBco6zUj4+bw5/6nBG6ylBVOJl HcHVzKm/NtaKBzX+5zGPAOeWBn3Z4B/kDmwbrwssgoSCKbOzBjBL8BIo7rgkrA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=oHW59IHl; 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: -5.54 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=oHW59IHl; 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: 33883BB43 X-Spam-Score: -5.54 X-Migadu-Scanner: scn0.migadu.com X-TUID: fDq4nuxetyrb Ihor Radchenko writes: > The default switches syntax was originally designed for code block and > it generally supports continuous numbering across several subsequent > code blocks or starting the numbering from certain line. Will such > features be useful for verses? > [...] > Do you know if customizing :lines 5 to something other than 5 is often > needed? Maybe it can be an export option? There are some differences between code numbering and verse numbering, which is a convention used in Humanities and used by wikipedia and other sites as well: - The first verse is never numbered; - White lines are not numbered; - Numbering is added in a sequence, never continuously. The sequence is generally 5, but it is common to find sequences of 3, 10 or other digits (with that I answer your second question). All of these features are performed in LaTeX by the 'verse' package, and in the patch I submit for LaTeX I simply passed the options to these package on LaTeX export. See: (info (org)Verse blocks in LaTeX export) The :lines attribute accepts any integer for the sequence: :lines 7 :lines 10, etc. :lines t defaults to 5. With this html patch I tried to keep that same syntax. To format the verse numbering in html I was loosely inspired by the way wikipedia does it. I think line numbering is an idiosyncratic case and should not be confused with standard line numbering as understood by Emacs linum-mode or any other text editor. What I don't know is if the switches code numbering could be reused in that peculiar case. An interesting functionality could be to choose at which number the quoted fragment or poem begins (because it is common to quote fragments of long poems. In the LaTeX version this is obtained by :latexcode \setverselinenums{}{} Nota bene: I understand that all these functionalities for verses are, at the moment, a minority in Org, since Org has a small number of Humanities users (here in Spain I try to gain followers among my colleagues, but it is an arduous task). In any case, I think features like this can attract more Humanities users... Best regards, Juan Manuel