From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id SCzeEQVyfGAAHgEAgWs5BA (envelope-from ) for ; Sun, 18 Apr 2021 19:53:09 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 0HtvDQVyfGCWBQAAbx9fmQ (envelope-from ) for ; Sun, 18 Apr 2021 17:53:09 +0000 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 BAD652529C for ; Sun, 18 Apr 2021 19:53:08 +0200 (CEST) Received: from localhost ([::1]:60124 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lYBbW-0006YA-Fx for larch@yhetil.org; Sun, 18 Apr 2021 13:53:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54486) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lYBat-0006Y2-V2 for emacs-orgmode@gnu.org; Sun, 18 Apr 2021 13:52:27 -0400 Received: from mout01.posteo.de ([185.67.36.65]:50545) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lYBar-0006Pw-GG for emacs-orgmode@gnu.org; Sun, 18 Apr 2021 13:52:27 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 2471124002A for ; Sun, 18 Apr 2021 19:52:21 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1618768342; bh=rDIbzLxV37QfEzqwjMnJJ44T4JpeEkiMNNjmFCf6AVY=; h=From:To:Cc:Subject:Date:From; b=nPR4vWe5fWdf0MyPNCwnoDmpsTVUTcX75FNpfwb8wMkoUoo+8pyP5riQgbTj2GpHp jq70kckEk2x4e4YYEsgUH0PK9ElKkaJ2BN4J2IKyWmVsXCpUcPfGEgclfQe3xT5EHm JznuPeEiMVQA5EauxTqC8BKTnq3Vzkj43RaxU2BS6v/UxN6PtfzIYvgZBRXHiHjqbL DXm38+JIds3sESTU3EniyR6xEjfUWh+L+iuNZgF/fX6tok9kh9rC5rWXED924W1UwY gzC8CeV8SMUZADtm8ovUoZpeNepFLr0fvuuRqRoaOlx7B4wZX+ZNV/E2hCVgt2ni1f FNe5a7khvfeuw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4FNcwP2l7Lz9rxS; Sun, 18 Apr 2021 19:52:21 +0200 (CEST) From: =?utf-8?Q?Juan_Manuel_Mac=C3=ADas?= To: Maxim Nikulin Subject: Re: [Patch] to correctly sort the items with emphasis marks in a list References: <87a6qg1rjx.fsf@posteo.net> <874kgft7n1.fsf@nicolasgoaziou.fr> <87blanxb1z.fsf@posteo.net> Date: Sun, 18 Apr 2021 17:52:19 +0000 In-Reply-To: (Maxim Nikulin's message of "Sat, 17 Apr 2021 20:27:31 +0700") Message-ID: <87lf9fa3ak.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.65; envelope-from=maciaschain@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 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, FROM_FMBLA_NEWDOM=1.499, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: orgmode Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1618768389; 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=rDIbzLxV37QfEzqwjMnJJ44T4JpeEkiMNNjmFCf6AVY=; b=E/X0mLJFPtjaSIf2I+By7WOCwBkSqFVo4ttfrOG24CpjQ87LR0ZQqvRDE96W1G96mXR2x0 lLBGbRXWYhIrGXpyAT182g7PToPbh5piouGoxfR/naGtJiYjqjZ2tnhX2OXhuM2bsBW9al 7PaslgeJ9K045fel7z3W8Ddzl2ZzOty7DWBmgkkFr+lhDjH3r/KF1h2aJEha5qMo8U87B1 5MjJCIe20KNgobPEiLiC0lNa/Z6Cg7ODyJ3An4ptn+4P2nqGaTKTTWv2IfL0+3FQdsHboB +bmCXqhuINiZg+Gm1sz39mfuXr3azflSYsb+ifgU2oImzQk897uDCZa0tUyIAQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1618768389; a=rsa-sha256; cv=none; b=tf3Y6oAeoeAyQU/Bwd/zZ/4KiHRQ5PYf4eVrl4l0eljUE5ewE6zdjfoQ8ioFC1NrEZcitp F6EyTOOpSeyQeTF/lLiQ3lxYHLKfYtcfc7aQmua8tsteQ1ok2giUHmqWQRgHkLSlxG89LU uOy9iqypfyfsJV4LaU6dFnsGJB3x+O5frMWDbxtBbkJE5045PgzLm2BFBT/BAx3iDAPPDM HKLH0r2AFpgcxLzjFc985YbZo2UUbP6Sref+7ZYpUHvJEoLVORf+n68R4JVfMif+zTY9Dp i1T5YI5mnWGObVJ+sZe8JBnea/AHcgfPHvPKP1HLILOeWBYKZZLGl9NtmF80UA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=nPR4vWe5; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -3.14 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=nPR4vWe5; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: BAD652529C X-Spam-Score: -3.14 X-Migadu-Scanner: scn0.migadu.com X-TUID: MtV0nENiISOA Hi Maxim, Maxim Nikulin writes: > On 10/04/2021 07:01, Juan Manuel Mac=C3=ADas wrote: >> Nicolas Goaziou writes: >>> Could you apply the same fix to the `org-verbatim-re' match above, and >>> provide an appropriate commit message? >> Done! I've attached the corrected patch. Sorry for the flaws in me >> previous patch: I'm a bit of a novice at submitting patches... > > I have not read yet the following documents to realize what pitfalls > could be expected due to significant space added to Spanish and Polish=20 > collation rules in libc. > > http://www.unicode.org/reports/tr10/ > Unicode=C2=AE Technical Standard #10 > Unicode Collation Algorithm > > http://www.unicode.org/reports/tr35/tr35-collation.html#CLDR_Collation_Al= gorithm > Unicode Technical Standard #35 > Unicode Locale Data Markup Language (LDML) > Part 5: Collation > > In the meanwhile I have realized that org-sort-remove-invisible > function has rather strange behavior. There are no tests, so I am in > doubt if the following result is expected and intended (unpatched > version) All this research you've done on spaces and collation rules is very interesting and enlightening. Certainly, space is important, as the following list in Spanish is correctly ordered as: - lo raro - lo vano - localidad However, with the 'unpatched' version of org-sort-remove invisible I get this result (which is correct) for this list: - lo bueno - lo /bueno/ - lo vano - lo /vano/ And with the patched version, I get this, which is wrong (!): - lo bueno - lo vano - lo /bueno/ - lo /vano/ It seems that what I was proposing as a patch at the beginning is not, finally, a viable solution for all contexts... The problem is that, if the first space is removed, we get this abnormal result: #+begin_src emacs-lisp (org-sort-remove-invisible "- lo /bueno/") #+end_src #+RESULTS: : - lobueno Best regards, Juan Manuel=20