From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 0FEoGr7Q/mQnMQEAauVa8A:P1 (envelope-from ) for ; Mon, 11 Sep 2023 10:33:02 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 0FEoGr7Q/mQnMQEAauVa8A (envelope-from ) for ; Mon, 11 Sep 2023 10:33:02 +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 6383842FB3 for ; Mon, 11 Sep 2023 10:33:01 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="c1lxzV/S"; 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-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1694421181; 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=5scneKCLGnhvD07AtPoIjdfrY9hu57eWEaq9afrB1b4=; b=K5CeaclzObgnJ0Ob7NGXOHy26nmTlcFxqv7333OCwB1yqXCJcLUX6hSM5nv0R1BhSIQn9f iNa8qdhvgdj0DkvrQpReV2yFSp/lzoBJISvo5fimRkC+hjZq68HlconNorGFRTy7j0P8yu FfY6QzgYYuOcukkKbnhxcZkRSCjcV640qbHNA/hHWJ8kxJX8eks8bbkiE3nCHo9ytbwJms 0mOG0CVP3RmqtLaEkMSrKh5JglBDbPM/jGJrZRO6KD4s/1D5ULOTZmgIKDAgTHi9OlsLAs V8vxqt1wkv+MiZocu934S8rjWXDt+WHEVUj+Kwm2T7a4zOdEecDFqfRsuRzwmQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="c1lxzV/S"; 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=1694421181; a=rsa-sha256; cv=none; b=GmLt1lu5BNjfT4e1LWog+65QWLxgKotcZJsaZQrmYYHbV1N2w9G3va2vTc/5L6lCLOP3YA vRPmSNvtW4nPNoxvC7MCvRBddFCsl6wm2i4Hz27zP7rNATbbETMuwgE2HqZ5pke9HbPFJF 4Hvt5IVwjRk6RMmVcOsk/4I+No8qBPpOTKZiWlXjEWK7fpgDbL50W7eq6MOYVMlKJpFSyY lZMh3canNT5JelSZuj7VYT8dQbpuhNmKTPOkMxtoZP4NYsctfcaDTHg2ubHWQ0zU8fo4bE J2ThBttMp+SUmNpN6HeM9VgvzmlovNQmLY9YOxmieTzzEvzGSsQezfyQREjwsg== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qfcKy-00074e-LV; Mon, 11 Sep 2023 04:32:04 -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 1qfcKx-00074E-3t for emacs-orgmode@gnu.org; Mon, 11 Sep 2023 04:32:03 -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 1qfcKr-00080F-P3 for emacs-orgmode@gnu.org; Mon, 11 Sep 2023 04:32:02 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 6FD4C240028 for ; Mon, 11 Sep 2023 10:31:55 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1694421115; bh=5scneKCLGnhvD07AtPoIjdfrY9hu57eWEaq9afrB1b4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=c1lxzV/SgvxAxwd+QFUPdAOjdaXWYMH+MC8iY6FFHgc6hEJIWyFWJ6CUXow/HjQCC nE/972otntAg5BFQ8LPdhnZ6DkPtjf8W1zmDENc+cIWrLR1htebcgOO2jNyaSFatvY /JikloL3jF0InVuEi4A7bM5ZoZO/ThFjtcslrOoIA7j+LAIfFcgfkUO6MElQPgmCNA jTUpxqjpxPFLPVavbQ+lxPI8QFIemxcZIS/BT2pvtOaZ2b9csDDYLEhTQjnbI/A88m VYfkpR9vh3dSKHccfzLOo9jFisTn9z5j+wONkRulAwkQJR6dJQhDwVH8mcIcnrDFPH E4NOqMc369yvQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Rkg1Q4qj1z9rxT; Mon, 11 Sep 2023 10:31:54 +0200 (CEST) From: Ihor Radchenko To: Juan Manuel =?utf-8?Q?Mac=C3=ADas?= Cc: Max Nikulin , emacs-orgmode@gnu.org Subject: Re: [patch] Fixes and improvements in org-latex-language-alist In-Reply-To: <87y1hdvifa.fsf@posteo.net> 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> <87y1hdvifa.fsf@posteo.net> Date: Mon, 11 Sep 2023 08:32:56 +0000 Message-ID: <87tts185zb.fsf@localhost> 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=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-Queue-Id: 6383842FB3 X-Migadu-Scanner: mx1.migadu.com X-Migadu-Spam-Score: -6.43 X-Spam-Score: -6.43 X-TUID: bkQDccPGyGkf Juan Manuel Mac=C3=ADas writes: > Ihor Radchenko writes: > >> 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. These abbreviations are not unique to LaTeX, but also used >> elsewhere, so there is no guarantee that babel .ini files will always >> use a consistent set of language abbreviations. > > Is the code you're working on in a public repository, to keep an eye > on? Not really. The story starts from the previous discussion of translations in your French quote patch: https://list.orgmode.org/orgmode/87pm3e6qx3.fsf@localhost/ I started writing it and realized that the current situation with all the translations scattered all over the place (at least, ox libraries, column view, and org-clock) is not ideal. So, I plan to factor out all the translations into a separate file (say, org-translate). That file will also define common interfaces to work with language codes and translating phrases. > As I mentioned in previous messages, that seems like a great improvement > to me. I think it was not a happy decision at the time to use languages > codes to declare the language of the document in Org. Language codes can > be useful at a low level (although they can also lead to confusion), but > I think that for a user level it is more practical to use human-readable > names, as is done in babel or polyglossia, and in general, any user > interface outside of LaTeX. Although babel also allows language codes as > a value for some \babelprovide options (for example, I can define a new > "virtual" language, importing the Greek captions: > \babelprovide[captions=3Del]{mylanguage}). That's very LaTeX-specific and will be limited to LaTeX export. I do not see any problem since we have to support languages defined by language code anyway, for backwards compatibility. > In case it helps you, on page. 19 of the Babel manual there is an > exhaustive list of all the languages codes, and on p. 22 a list of > supported (human readable) language names for loading ini files. The > language names of the old ldf files are on p. 49: > > https://CTAN/macros/latex/required/babel/base/babel.pdf Thanks! --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at