From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Arthur Miller Newsgroups: gmane.emacs.devel Subject: Re: Swedish calendar localization in official release (sv-kalender.el)? Date: Thu, 08 Jul 2021 04:23:38 +0200 Message-ID: References: <87r1gbop0f.fsf@iki.fi> <87o8bfohtp.fsf@iki.fi> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1467"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Stefan Kangas , Emacs developers To: Filipp Gunbin Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Jul 08 04:24:29 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m1JiG-00009N-0E for ged-emacs-devel@m.gmane-mx.org; Thu, 08 Jul 2021 04:24:28 +0200 Original-Received: from localhost ([::1]:33258 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m1JiF-0005gw-1X for ged-emacs-devel@m.gmane-mx.org; Wed, 07 Jul 2021 22:24:27 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51526) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m1JhZ-0004TO-7D for emacs-devel@gnu.org; Wed, 07 Jul 2021 22:23:45 -0400 Original-Received: from mail-db8eur05olkn2075.outbound.protection.outlook.com ([40.92.89.75]:34118 helo=EUR05-DB8-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m1JhW-0001xJ-0y for emacs-devel@gnu.org; Wed, 07 Jul 2021 22:23:44 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=S9h1jItVVyEUM+cFTOY4C9Jgd26PVeQ76gF3eUsSwVijrL33NdSbNvPIhwdkfS31yWRCY/80buCdjaGEkJEYn3PIn7zAwy3hRD8XV+xTeeNSzn0kD/p5Untt4KXVVq/6hGohK3kokbZrBsKO8jncFcrW2DyjJBg3D1jG+oOhbg3sZoMSGNGlyTKBJhLLvGM+wl+MnfOp2Lw88BkG3zbSzJny9Bf4Ar2A7SPmb7Eia24KhH7WLb3qd2rGQwe5EnLh7ID0N3dxq+t8WUvKSRDVSknLjxdsNpnvNk+rqM+jTYT0lMRe1LC23wGtKrhxkljx/g1jS/X5uMw0l6kksFVCVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=l2MBU+z0dtB/LCO30cvuH3jfQPdDpcWXOydS097xYss=; b=ah0ANS9Ez3cFeKNlUlMQhBKasWCWbdDgnKUrZ6BTIjIOAm3fAWClr4Lu7FNEX1ktR0kC6UGuf1QcnisV+rvWsAjrChoB/OrAVHd+UnuqYYlsEBQ9T5H91/RiiRZMKZTbwmk1GVAjANiRRwQU1zNAQMpHj30GXQfxLd6YkCRWOuV9IdEpessM3oZQFWHNKMxPmUM02kLvJHwzdBWLgxNjNFkpStxGixhrNXLkQ75iPiqGneqqKYFttS4hEsUfvUYZ1252XXoPuZq9ovR/F3TmN9dNHQoRb/8Iqds5LLDy7bAp5FGp/18OIQSh92A9FYKVSvbA8VmgKIgNu70wv2KSNw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=live.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=l2MBU+z0dtB/LCO30cvuH3jfQPdDpcWXOydS097xYss=; b=ZC6n7aF4VEaW3PZXfzagfkD47cD+e3EOP4KEljRlrOiIQ7/jtjm2SwgZL4mB24hzKxDVL01YuMVU3O8dcBBFm5xCO+m+X5Jq1/UxJeD1nu4G0zk/gWsX9cRl+FAO/fP2VLQxKvbkWUdOCq/aUVvMBLFnBCo0Uk8829zfRIYdvjIkT4AVWYjUApGm74oiH/BPBopzFV3o+b9jfKeHU/RRPVVqYuAVfBgEk3etkcfBU+VhcmBJfzLofmP+HhMYF0UBQKXn8RsZSSY1GZgdQoE3cxDVy3/Ftk9bk3di8wrI2Jv+gO72IBxlbik78RLzjUlJmpVK+RzYEiXk/NzYIPR1nA== Original-Received: from DB8EUR05FT011.eop-eur05.prod.protection.outlook.com (2a01:111:e400:fc0f::50) by DB8EUR05HT223.eop-eur05.prod.protection.outlook.com (2a01:111:e400:fc0f::432) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4308.20; Thu, 8 Jul 2021 02:23:39 +0000 Original-Received: from AM9PR09MB4977.eurprd09.prod.outlook.com (2a01:111:e400:fc0f::41) by DB8EUR05FT011.mail.protection.outlook.com (2a01:111:e400:fc0f::114) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4308.20 via Frontend Transport; Thu, 8 Jul 2021 02:23:39 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:9948130ABB39CD0BC012064AEDF7599452E1C1F6E2E7689B9681C8198BCDAF71; UpperCasedChecksum:3520491DE0089B934EABB3B10918DE66E91DFFE3176653FB70BF91A913188557; SizeAsReceived:7993; Count:46 Original-Received: from AM9PR09MB4977.eurprd09.prod.outlook.com ([fe80::656a:1596:f5dc:12ea]) by AM9PR09MB4977.eurprd09.prod.outlook.com ([fe80::656a:1596:f5dc:12ea%9]) with mapi id 15.20.4308.022; Thu, 8 Jul 2021 02:23:39 +0000 In-Reply-To: (Filipp Gunbin's message of "Wed, 07 Jul 2021 17:31:31 +0300") X-TMN: [FEidFpIWLH506s1tUQU+dMRgs7iWaqlk] X-ClientProxiedBy: AM6PR10CA0018.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:209:89::31) To AM9PR09MB4977.eurprd09.prod.outlook.com (2603:10a6:20b:304::20) X-Microsoft-Original-Message-ID: <87im1l8rx1.fsf@live.com> X-MS-Exchange-MessageSentRepresentingType: 1 Original-Received: from pascal.homepc (81.232.177.30) by AM6PR10CA0018.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:209:89::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4308.19 via Frontend Transport; Thu, 8 Jul 2021 02:23:38 +0000 X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 46 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 1a77bdf8-7367-4a52-6284-08d941b76594 X-MS-TrafficTypeDiagnostic: DB8EUR05HT223: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ueN8Bxg9jsXlM2TP8zT1ruzU9fICyjE+AqlENhHJ9I5dOj7+DT/ryyHpQuZ8/ElG3CNTHyoc1nWDSiZYAmjuj3El2aIHpj5UP3JXLB/jXavhsTBU0FDauiGhqIoIXxDPYKBrpOnNio77n9HwbKi9CmDZtqCHBiFcxfgKpb0hfjb8InRrlc/ApvlNfD8MG8Tl4e/gO6GAYc2VSqjEWaVsl2Gk1BuMyuLir0uaIlMg7yonCboTMojWhYdD7v59B3J9Ytl+Cir6KkkmEEgFnZ912wDn7qHFbYsoReCkVZRnZOV2FxZzztLdEVN6sQ4LpGac+ypLhe0WmHnIMyN9Z3uCMR9dYGoUnmtY60/f5CEatAtWoRiRzd6YPExVy7LY/N0zzMpDoVg/BkZveJ6qEPuxiJLJMiVUpYftIy488C4/c2d1FIpBwPpyyDqooq3SEN3d X-MS-Exchange-AntiSpam-MessageData: 99zSeF6yP+Y+KAGi7JGNA8mJO8jSFxpcHsxonStzYYaCTgv2fYb/4/EDcc8nVWkCkD1GC/VbqRcU7+x9vXIbtnrsr7VzAU0UfOGiC0FlHUAalFsL2/sPvrYmCsHftLLADDmXxFU93guU74eW4QDaHA== X-OriginatorOrg: live.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1a77bdf8-7367-4a52-6284-08d941b76594 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Jul 2021 02:23:39.2124 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-AuthSource: DB8EUR05FT011.eop-eur05.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8EUR05HT223 Received-SPF: pass client-ip=40.92.89.75; envelope-from=arthur.miller@live.com; helo=EUR05-DB8-obe.outbound.protection.outlook.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_FROM=0.001, MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:271158 Archived-At: Filipp Gunbin writes: >> Would it be an idea to have those array for names in separate >> files from hollidays and maybe shipped with Emacs. I can >> machine-generate those for ~200 languages, and they are really small. I >> am thinking of a file structure like: "lisp/calendar/locale/". In locale >> directory would be one file per language named something like >> "names-countrycode.el" (for example names-fi.el, names-sv.el, >> names-ar.el etc). A content would be just names of days and >> months. Content of each file would like in code belove the email. > > There're countries in which multiple languages are in use, so it's not > sufficient to map country code to a file. Rather, a language should be > mapped to a file. Yes, of course, that is what I actually meant, a file per language, but wrote clumsy in speed country. If you check ls output from folder with generated languages or pasted code, these are language files, not country files: for example names-ar.el is for arabic language, names-sv is for swedish etc. There are entire iso standards to deal with locales, their names etc and I don't think that calendar.el needs to implement entire ICU. I just wish to automate parts that can be easily automated. @Stefan, those files could be distributed as an Elpa package, they don't need to be shipped with Emacs itself.