From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 kGnyHUyilWIcoQAAbAwnHQ (envelope-from ) for ; Tue, 31 May 2022 07:06:20 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id kCLpHUyilWIvlQAA9RJhRA (envelope-from ) for ; Tue, 31 May 2022 07:06:20 +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 255D13F701 for ; Tue, 31 May 2022 07:06:20 +0200 (CEST) Received: from localhost ([::1]:50162 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nvu5C-00030c-Ux for larch@yhetil.org; Tue, 31 May 2022 01:06:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60426) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nvu4O-00030I-R1 for emacs-orgmode@gnu.org; Tue, 31 May 2022 01:05:28 -0400 Received: from mail-qv1-xf31.google.com ([2607:f8b0:4864:20::f31]:45777) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nvu4M-0002aV-QG for emacs-orgmode@gnu.org; Tue, 31 May 2022 01:05:28 -0400 Received: by mail-qv1-xf31.google.com with SMTP id ea7so3467530qvb.12 for ; Mon, 30 May 2022 22:05:25 -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=UQRTgyxYTXIIkxpzS7Xwp65VQUTUchGkGGqfeTvw3gE=; b=k2SzzsSq1UvtzxOJGcy3OnSmA3+9pHS6DIixePD45PHd1IthehY5H+Hzqb+dKCuKD9 kL3jXyaMTDV+zECxUEfGIPmnmJ/Qs9vqYTFliO7LHHirLX+Sg81uBt3lsfRRYnGpM5Uz zuUMd1MmY9VuCpRjPiLpSPtvgEzL2LKPffKAfnsVb0Z4UXyKyI5h1rDsNl1Eifh63wJN dRZA7bKJJOA6MCwb7qHrUj4MQqF2uupgZD1jkdkvEiTCQR/Hh9R42dbU8FSiW73hRNck fLPmfZGxyQ6Y9qaCzgV9gnm13CF1CozdJIyp/n6RVjdF/CMcOX+y9J9rE/YqkPho/U0m oYUw== 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=UQRTgyxYTXIIkxpzS7Xwp65VQUTUchGkGGqfeTvw3gE=; b=hid2KPaM77aryI0KAbD1U0JsApD9Rwf4OhClU9ma0MXDv/HVXkRO/9T3vsZy08Ml7m e/HM+qqbAWaWPoepBdGdw3C1q5w17Y3sJdC7x/G81s7u87AuxKlrzg770br6uZ6G73fJ 5PpfmgYXDA85NSSCzsTVUsIeegSWvV0F/WxzfpOVeBjiBeEbfuTzGmIjHeKQR9kAAoVv YHhh0iUVuafo5jEHSvy5Z0bkYjjwuxzyIMNy1c7RkSCAMAs1au1KKdMXSh4hjAXhQYbq znsxuimzjk0HS414RD7rWTkslaDI99ig8EFtwbeCIHQHDTcy0vDYaZrasiyinT1uFF+s ZCnw== X-Gm-Message-State: AOAM533MWb+GLJqRamMtyXgdyjTyY0+qiTyHxnhwMgSCMIXSowkfZM44 jzS/NL7gV99TOSIYkqRv/6I= X-Google-Smtp-Source: ABdhPJxnGzDow919wDZQWpEaZNSKUazHltV8OlWMdSFXJJun9QvmEcCQ64ngMvtt7Tte/4XQefmivg== X-Received: by 2002:a05:6214:626:b0:462:34f8:8ef8 with SMTP id a6-20020a056214062600b0046234f88ef8mr36847673qvx.102.1653973525078; Mon, 30 May 2022 22:05:25 -0700 (PDT) Received: from localhost (22.b2.a86c.ip4.static.sl-reverse.com. [108.168.178.34]) by smtp.gmail.com with ESMTPSA id m15-20020a05620a214f00b006a650276ecesm765774qkm.14.2022.05.30.22.05.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 May 2022 22:05:24 -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: <874k1758x9.fsf@posteo.net> References: <87v92cooga.fsf@posteo.net> <87czfvoban.fsf@localhost> <874k1758x9.fsf@posteo.net> Date: Tue, 31 May 2022 13:06:03 +0800 Message-ID: <874k161ebo.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::f31; envelope-from=yantar92@gmail.com; helo=mail-qv1-xf31.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=1653973580; 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=UQRTgyxYTXIIkxpzS7Xwp65VQUTUchGkGGqfeTvw3gE=; b=Ujk25x7J97Qus+7Sp3R7a7Qhymjo1CV5Aimu8y6WJxFhwufJ+3i9o7GZb4okRYaEP80tti sh4cKIX/xOElrzsrQUF5QmOOqpuwOkkSMYqMjyUQB0ZDzVo5dYQ8PWoO3paWwboTzok0At v1IeOLop8CVeLj1/KwB7E08I0ZMutexRTWklBru3dyWNqHB/U+urjKgKn5Hv2DLJ5Zy6W6 MJmM0D+uN9AnhZI48bDQoRL0uiE1fyIOjGDf44BJWHofTUVYWmToHmZbOinEcDoCRlMjWR klzwRWs+aK03DLGJ0JIcI20/dG1J3gSZFhQRHPnN3dGqA5YnswxA7az+w6v2ng== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1653973580; a=rsa-sha256; cv=none; b=HQ6UT6NjXYpDBnqhno2tBszde8wKMeSbJZKYGGmFEaTS/G+kPCcDsrQ1X/aMfzF08olgyF ECnS5f4Z7oDv6TQfyKkhP2mXsNZcbyvu9ntmwQrK1fgjFE9tPQXR/xDPoAD+7kkPDEoQq+ mcWKmJuKGOhnHuw3BKbf+Hj5cVHSSPqvuVQA5APoKjmn1YvNrccRYuH2H7WCG7AxjySJIv mfjIwPSrzYMnDbAGEVcKOpKKvJoqfDfEHofJZFCnx3v34yNpmJr462StDroghIYIdv80zK g7P4S2I3dECLYSBTRTuKDMFReKHkIBJV8Xm9aDhtDoCMdWvXUnXZTwnUt0YXsQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=k2SzzsSq; 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: -7.03 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=k2SzzsSq; 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: 255D13F701 X-Spam-Score: -7.03 X-Migadu-Scanner: scn0.migadu.com X-TUID: r4tDtNYGIncW Juan Manuel Mac=C3=ADas writes: > 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). 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? Best, Ihor