From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id qJyxDvQpAGV2ngAAauVa8A:P1 (envelope-from ) for ; Tue, 12 Sep 2023 11:05:56 +0200 Received: from aspmx1.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id qJyxDvQpAGV2ngAAauVa8A (envelope-from ) for ; Tue, 12 Sep 2023 11:05:56 +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 16EEC568EC for ; Tue, 12 Sep 2023 11:05:55 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=LncbPOd0; 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"; dmarc=pass (policy=none) header.from=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1694509556; a=rsa-sha256; cv=none; b=TRU9vh/BJ/WFyJCUtX2kMzzloCTJgruTXAizpZ/kl8ZisB42UbtLJklOCzhlPZg/e4ZKLY IL2brZE37Jq4fy6GbDTZuGXvKtxtDdUubIEoOo/11mGuGjt5vGn9+i5vHLlWLWiOpgdoVx V5Z2qgyr9DBEd6T/PqGMmArVC3sR1oVvHW/knIJaTzykYmgsnlJjc5YWHz/SYIv0xaHHtf J5cOIZsUl77mWbS2tun+7RlmT716C4RM78BsTQAKORInzTJhEmo/AADForOw7NeDsW++D8 sexHSt0mC3H6nbvJejGqvHGhWMLg25d9LsJGzT/LBKE/1D/7pqQ5FbfEJW/32A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1694509556; 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=KG1LJvE2HX522zrl9OJIDWCSdtVSxh7taVGQlZDLseI=; b=XuSwuFezVJRABVTp97uKA+S+Dt9vf6XUKWeOFO/9tCsp5IeFxdJmVzL4ohUQoL7mzZV0TS NTcOF9B4U7uruWquelQjWcpWUVmh6yejNf8RANOwcTGCJhyIXm0CEO4xJGMzCsKKptr2x+ 8GVcJJfNeWBIvNKt8ICvb3yO+C8LRi4GUyl1Vhk7lTPhr6bvH+k9NcLi+qFUxZKjXtrktP oksaefW6IXnEV9o33ypognxOi+Ej+PDnJI1vJqPXIDM4i8s4DSKTSLYsBqdakGSXPWZW9O rYtWK/3tNR3bZ3nxzTYXXhXWacDri4nO5MqJMKqaQadylZg8qEqvoFelaCuspw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=LncbPOd0; 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"; dmarc=pass (policy=none) header.from=posteo.net Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qfzKI-0006nR-TO; Tue, 12 Sep 2023 05:04:55 -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 1qfzKH-0006nG-Iu for emacs-orgmode@gnu.org; Tue, 12 Sep 2023 05:04:53 -0400 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qfzKC-0007T4-4X for emacs-orgmode@gnu.org; Tue, 12 Sep 2023 05:04:53 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 5D73324002A for ; Tue, 12 Sep 2023 11:04:44 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1694509484; bh=tCTwDGhayS9e5Ql0Uw+SfwSuJ/cm16nqf7b296LOQjU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=LncbPOd0RdCuPWfBAkK2rXrqtwzPouGzj8Bz1ziMIyAmLI5g2S1RVgNfcT3h5c5mj 69ZwGdrIV8hqUwq2BRdbUOpJE7TVm1sJ12c+k9ifojz2g5GYf6QokIya3bkjb6LRi5 bI1XXgh/riJ0GeZW1l8mngXIzruf5uOBqBx9jMEPeXHf4edXD6pAk4rDbcBhoReGBA gWz27jcksFm/5WY3tJhh+CiIYo3Gz3Ac0pNfu6/eNCVXrWyQUFpmoBzSe6yn6BIRBO unZBIT7B5cV2IX+3q4eJEbyzrCvtIAYrAfz+3w+wGQWKyHq0rXojVmUHB+iMS1p3+8 HTRwwzqQ7+5zw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4RlHhq2Ssnz6tn4; Tue, 12 Sep 2023 11:04:43 +0200 (CEST) From: Ihor Radchenko To: Max Nikulin Cc: emacs-orgmode@gnu.org Subject: Re: [patch] Fixes and improvements in org-latex-language-alist (was: ox-latex language handling in Org-9.5 vs 9.6) In-Reply-To: References: <87v8cneyfu.fsf@posteo.net> <87edjanqxb.fsf@localhost> <87o7ieukum.fsf@posteo.net> <877cp0ybdg.fsf@posteo.net> <8734zoxzd0.fsf_-_@posteo.net> <87tts37lsx.fsf@localhost> <877coy9djg.fsf@localhost> Date: Tue, 12 Sep 2023 09:05:45 +0000 Message-ID: <878r9biwwm.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -8.89 X-Spam-Score: -8.89 X-Migadu-Queue-Id: 16EEC568EC X-Migadu-Scanner: mx2.migadu.com X-TUID: G2SxQqRo9QDc Max Nikulin writes: >> It is already a public constant. And I see no strong reason to change >> this (strong enough to justify breaking change). > > Every piece of code accessing this public constant must implement > fallback from e.g. "de-ch" (or de_CH) to "de". Or to "en" for an > unsupported language. To achieve consistent behavior it is better to > provide a helper function. Not necessarily. I mostly thought about some unconventional code that uses the constant for some reason unexpected to us. We do not want to break that. Helper function is certainly a good idea. I did plan for it. >>> I have a hope that properties may be generated from CLDR data, LaTeX >>> babel .ini files, etc. However it should be possible to override >>> specific properties. >> >> For context, I plan to provide a global language-identifier alist that >> will link human-readable language names to abbreviations like "de", >> "de-de", etc. > > This languange-region identifiers may be written in different way > (dash/underscore, case), but they are used specify POSIX locale LANG, > LC_* and extensions like LANGUAGE, so in some cases human friendly names > may be less convenient. Sorry, but I do not follow you about the downsides of "human friendly" names. >> Though I am not sure if we can easily handle tricky >> cases like weird installation directory for TeXLive or MikTeX. > > kpsewhich babel-de.ini which may not be in the PATH. > /usr/share/texlive/texmf-dist/tex/generic/babel/locale/de/babel-de.ini which is not true on Guix, or when installed under /opt via make install. I did not mean the conventional distros that follow conventional naming schemes, but the edge cases - I see no point adding automation just to fight various non-standard user installations later. It will not make maintenance any easier. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at