From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTPS id 2A04E384AB72 for ; Thu, 16 May 2024 15:04:05 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2A04E384AB72 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 2A04E384AB72 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1715871851; cv=none; b=GUJngDI2nA1looYtjE3L3FUtJRba7FgzOA4IX1yb+G0XtvdKdoWnBHHMzMCU1hD60qUcPR1oL3NhHVSDDLiCB0m/Y3mF/Jns7LfvBoYi8SfvKamw7r13LWD4oIWLLCwrxRKshpbcFTECb5sCtei7hduYPC8dQCc2hU7GeIC9O6U= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1715871851; c=relaxed/simple; bh=om1L1N2OZTBBIsIelve+06mlH39k9nOXmixCbbkSkoo=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=b7dyNyEptzQYHPOSPopEjqeHbERgAW1hR3pt7twFD36aQiqgOaTgUKJebiXfVF9Lx1WdP8BHacuSemaH2bf7W2adAwnmzJ0oCOzYmTq4MoiZ/YFsco4+4SgNYfjXfIp1GVWO1GKlY22yDXVV+aVVxG4rBwNwQp8ggpANksyHs94= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1715871844; h=from:from: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; bh=8+fJNl34fvXYwtqsUvZZ3Mf7qD6Qbw1K518rX0+qVSM=; b=gJ6H9fhK1sfft3ss/Y90pJh5Vp32C1lUeL73K/iZ/PGc8iyxXBLhmqzj3PdpfIL74aKV0E 6WzPKKBKc2b0tlOoZskTSqAgw//z6l1cHGVTRkiepmwc/4E40GoURV8rsZhd4MMqDKQbyf VNq6COx46YiRkrMEMIH9Lkj5KRUu6+A= Received: from mail-ed1-f72.google.com (mail-ed1-f72.google.com [209.85.208.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-81-NUtWSkdRN0a-tNzA_1Gq0A-1; Thu, 16 May 2024 11:04:00 -0400 X-MC-Unique: NUtWSkdRN0a-tNzA_1Gq0A-1 Received: by mail-ed1-f72.google.com with SMTP id 4fb4d7f45d1cf-5729d8798a4so1968227a12.0 for ; Thu, 16 May 2024 08:04:00 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715871840; x=1716476640; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:organization:in-reply-to:subject:cc:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=8+fJNl34fvXYwtqsUvZZ3Mf7qD6Qbw1K518rX0+qVSM=; b=ct/f/uT4TuB+xn0WEQxBd7fnc92Ej/8DFxjkQGUCvJ/p6TYDR36ipkakqtTv781Wu0 e/YpEuIO1GKd+c59iSFbKo08ZwOuf1PVaVfv3YCQYePATlT32sCydknfHfTxyvfYhVW8 9nghn5SV2bAfXEnord9gaoDV0NvHHnlLOknOCyld+E44zzEVOerwShgpvbPoeTgMpjZj E4yrSN5p29dSEMVOgd8RIh+xsODAyTq9fi1QlmLxTAnOMbaDnXQTY6G878u2w/IV0gfF AVBvIbnjJl01CtMJWFEIgitXO3xOxXwWe86X2FzfH3QA9cNnG8seSEFIsfXhNGyz6efU 7/Gw== X-Forwarded-Encrypted: i=1; AJvYcCVgNp4R02h2r4BIBQN7FQYUEJhVdhaoUst8u2GAm9lLP12fK7efO8uJoZ9noA5XfiWonH/r0lBdPQU/qfqfdI6b8z0vsSkTkq2F X-Gm-Message-State: AOJu0Yy7UNiInpd5gxzUyFP0HZMDQ3TYn1a2gm6Qzp2pRBdkQaSc5ul2 hJBy6LuTAmzK0lLLWXR/ehl3w7ELiXG6S0qmvvZ2SNqXeephXHSWREtHy5rOBu0XmRnCCibjI/g 0I5LaZ2ZrxTpd8driBdi8U9gskyLsregFb0em3P/CTCjLsAfS9d8AOanz X-Received: by 2002:a50:874c:0:b0:56e:2bf4:fe0a with SMTP id 4fb4d7f45d1cf-5734d6dc0c1mr13767614a12.35.1715871839810; Thu, 16 May 2024 08:03:59 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGaFXXqtattUnyt9HjFP0wQHHM8meYvcbKHvXTRXSXxCUF/g07zZ5sPW27ZO+mwgmHlb5GmQg== X-Received: by 2002:a50:874c:0:b0:56e:2bf4:fe0a with SMTP id 4fb4d7f45d1cf-5734d6dc0c1mr13767595a12.35.1715871839480; Thu, 16 May 2024 08:03:59 -0700 (PDT) Received: from hathi.site (p200300efa71811003534172f71b7edb9.dip0.t-ipconnect.de. [2003:ef:a718:1100:3534:172f:71b7:edb9]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5733bea6a36sm10570571a12.12.2024.05.16.08.03.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 May 2024 08:03:59 -0700 (PDT) Received: from hathi.site (localhost [IPv6:::1]) by hathi.site (Postfix) with ESMTP id 4CF54801DD; Thu, 16 May 2024 17:03:58 +0200 (CEST) From: Mike FABIAN To: Andreas Schwab Cc: David Paleino , Florian Weimer , libc-alpha@sourceware.org, tech@cademiasiciliana.org Subject: Re: [PATCH] localedata: add new locales scn_IT and scn_US In-Reply-To: (Andreas Schwab's message of "Thu, 16 May 2024 13:00:57 +0200") Organization: Red Hat References: <20240427233734.0cb6edff@betelgeuse.hanskalabs.net> <87mspcux2z.fsf@oldenburg.str.redhat.com> <20240501020934.7771d8c8@betelgeuse.hanskalabs.net> <87msotn8uo.fsf@oldenburg.str.redhat.com> <20240514225815.64de3afc@betelgeuse.hanskalabs.net> <20240514230847.20b64f52@betelgeuse.hanskalabs.net> <20240515203946.03aa36cf@betelgeuse.hanskalabs.net> X-Face: "';oPz9V1+<,`}1ZuxRv~EiSusWq*{Yjr"Sdvbhq'?q=2R\\6Y9O/,SAE`{J|6I=|w/sQg< rW_N'E3IV6~f8?\l#Es`]S`mv',PY(`8{$$R?+gLu}Qv/Mn>)?uladFjJ@yl!_p_Jh;5QxlD6zL:?r IXe4FfK$C^mWhh$o`yt;.r.FLZLQOWBt> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-11.6 required=5.0 tests=BAYES_00,BODY_8BITS,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,GIT_PATCH_0,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Andreas Schwab さんはかきました: > On Mai 16 2024, Andreas Schwab wrote: > >> On Mai 16 2024, Mike FABIAN wrote: >> >>> David Paleino さんはかきました: >>> >>>> +LC_CTYPE >>>> +copy "it_IT" >>>> + >>>> +translit_start >>>> +ḌḌ "DDH" >>>> +ḍḍ "ddh" >>>> +Ḍḍ "Ddh" >>>> +translit_end >>>> +END LC_CTYPE >>> >>> I am sorry for not testing that earlier, but that translit part does not >>> seem to work: >>> >>> bash-5.2# export LC_ALL=scn_IT.UTF-8 >>> bash-5.2# echo 'ḌḌ' | iconv -f UTF-8 -t ASCII//translit >>> ?? >> >> There is already a transliteration for Ḍ which takes precedence. > > Actually, the entries above replace the ones from translit_combining, > but they are interpreted as "Ḍ" -> "DDH" and "ḍ" -> "ḍddh" (the third > entry is ignored). The proper syntax would be > > translit_start > "ḌḌ" "DDH" > "ḍḍ" "ddh" > "Ḍḍ" "Ddh" > translit_end Thank you! I have tried with that syntax now but could not make it work. > but depending on the how the binary search goes on, either these or the > shorter matches will win. Does it depend on the exact input how the binary search goes on? I tried several inputs and for me the shorter matches did always win. Then I uncommented the shorter matches in translit_combining like this: diff --git a/localedata/locales/translit_combining b/localedata/locales/translit_combining index ce2f19eee1..6f879d9caf 100644 --- a/localedata/locales/translit_combining +++ b/localedata/locales/translit_combining @@ -2486,9 +2486,9 @@ translit_start % LATIN SMALL LETTER D WITH DOT ABOVE % LATIN CAPITAL LETTER D WITH DOT BELOW - +% % LATIN SMALL LETTER D WITH DOT BELOW - +% % LATIN CAPITAL LETTER D WITH LINE BELOW % LATIN SMALL LETTER D WITH LINE BELOW and after doing that, bash-5.2# echo 'ḌḌ'|iconv -f UTF-8 -t ASCII//translit ^C bash-5.2# uses 100% CPU and never stops until I stop it with Control-C. -- Mike FABIAN 睡眠不足はいい仕事の敵だ。