From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id KBwCLdsyIWX/VAEA9RJhRA:P1 (envelope-from ) for ; Sat, 07 Oct 2023 12:28:43 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id KBwCLdsyIWX/VAEA9RJhRA (envelope-from ) for ; Sat, 07 Oct 2023 12:28:43 +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 EC9335F8A9 for ; Sat, 7 Oct 2023 12:28:42 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=fdNspB9M; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1696674523; 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=bJU1hbvqT4OfPBxgAtdgsFRMeq5KESlQiiOuUePapQo=; b=ifOVrFYSE60StKzu2tWsZJiMzgsLi7DDPtHD4oSqv0lwY6hriGYY3ZldLHiV4Vapw4gZyb UfLcoy4WaykdI5exT4XL12RB2X6r6DZhg9wJAcRUD23rrZtO7IBnHnOSWiECj87uRf75Ls J3U+GUlNLDfDTT2wTWqjCv33A4h8PI7zgqrRgwo6aqgOuz+rJNmH3LklNb0GPOzl7n7nhs wA+dvfz2wxlxQfIM2eBwF5DdUv1u9yXOdUaPJvMYbl1038c7OV4Dy3lGvqm9DV4Gg3986j wO5GPRp3FV0k5Vs2KSmqS1hjoQ1BVnT+lf5tY6TZHRUgo+msmB6X41KORLr4Cw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=fdNspB9M; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1696674523; a=rsa-sha256; cv=none; b=H/0jOGdrMvjVQYcYPMIOyqGrsjLwsde3/+DsjS5U0B1x11IUrn6pSCZepvLSuTKI8Q+eN9 ZRQaFBKHTuWun52brMCpIo76uJEpuJ/T3ItlRkUoOaLwBW0mHPExnj0VQSxQAmOJCPzfC3 gbbdgLmTCBCMeBP3N4QNT+QGPtO3ejlv5mHeWTZOS3KRmrjE/yrOgCF2ZcKoI87SuF0Oj9 0DqUM84YbkpFkhPXC35TwHr4tPyXXYabFLWnUClIwIh6qmyIg1WR/ynmviENwCqsNyJdzH olwjPDRKA+dqClrMO13KwsaPG0aAdiN9DP/y4K+2afhlSM+lTr7awfNz7KBjIg== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qp4XI-0005jo-Jv; Sat, 07 Oct 2023 06:27:52 -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 1qp4XH-0005jg-67 for emacs-orgmode@gnu.org; Sat, 07 Oct 2023 06:27:51 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qp4XE-0001r8-OV for emacs-orgmode@gnu.org; Sat, 07 Oct 2023 06:27:50 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id AA53A240107 for ; Sat, 7 Oct 2023 12:27:46 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1696674466; bh=U4pHfK+UM9hkY44W75aLpPBLcVdquGJP2C0nxvmiKjA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=fdNspB9MkJgPavlgLtgmm4RHC2mHeAIpcG0/9P6P8U3sWzqIJcD/G6cG+CpLs7uxd vi20AZ/dCFStLnThUbQGVX31a3peVqILAUoV4qD90P5ccNbo/8bHQ7QtrXYyVF+78q HjiPze7FANUaKVXiuyblpHQoxW+KxoWVSJvq5uNCjEDRuW6P4ZvXpQZYLr1a9MVnSp l1DF7Iau1+PLnMxh53VZtaKDmc8YVZHf4OT/PdC64LNJQmz47zr63+2+dWw+RwZL50 UJuYw71AMmOH1MKOr53gW8ixFINEjYarosQLXYlhNL5HZsAi1LGlhJ1hcf87VcSRva XDR/EGFBfJ+EQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4S2hM60R0Fz6tws; Sat, 7 Oct 2023 12:27:45 +0200 (CEST) From: Ihor Radchenko To: Tom Alexander Cc: emacs-orgmode@gnu.org Subject: Re: COUNTER-SET for alphabetical ordered lists ignored for utf-8 exporter In-Reply-To: <36a62fbf-6484-456f-9537-a7aa40530068@app.fastmail.com> References: <36a62fbf-6484-456f-9537-a7aa40530068@app.fastmail.com> Date: Sat, 07 Oct 2023 10:29:15 +0000 Message-ID: <87o7hazpxg.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.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, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Queue-Id: EC9335F8A9 X-Spam-Score: -9.23 X-Migadu-Spam-Score: -9.23 X-Migadu-Scanner: mx1.migadu.com X-TUID: BDy9Z6yySnSF "Tom Alexander" writes: > It seems that COUNTER-SET[1] is not being honored when exporting to utf-8 for alphabetical lists even though it is honored for numeric lists. When exporting to html, COUNTER-SET is honored for both. > > Test document: > ``` > # An ordered list starting at 3 > 1. [@3] foo > > > # An ordered list starting at 1 > m. bar > > > # An ordered list starting at 11 > m. [@k] baz > ``` > ... > But when exporting to utf-8 you get: (whitespace removed again) > ``` > 3. foo > m. bar > m. baz > ``` > > Whereas I would expect: (whitespace removed again) > ``` > 3. foo > m. bar > k. baz > ``` Fixed, on main. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=26f1cb77a However, what we do for alphabetical bullets on export is slightly different: 3. foo 1. bar 11. baz Other export backends do not preserve alphabetical bullets. Numbers are always used. > On a slightly related note: it seems the COUNTER-SET[1] allows single-letter values even when org-list-allow-alphabetical is nil. I don't think that is going to hurt anyone but I figured I should mention it in case its a bug (test doc: `1. [@k] foo` is a plain list starting at 11 even when org-list-allow-alphabetical is nil). > > [1] https://orgmode.org/worg/org-syntax.html#Items org-syntax.html#Items describes what the parser does (`org-element-item-parser'). `org-list-allow-alphabetical' should be changed to t in future and obsoleted. We aim to reduce config-dependent Org syntax in the long term. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at