From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id cKxnA6VA0GKQGQEAbAwnHQ (envelope-from ) for ; Thu, 14 Jul 2022 18:13:25 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id GEISAqVA0GLSfAEAG6o9tA (envelope-from ) for ; Thu, 14 Jul 2022 18:13:25 +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 8749BEC04 for ; Thu, 14 Jul 2022 18:13:24 +0200 (CEST) Received: from localhost ([::1]:56186 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oC1St-0002S1-Ff for larch@yhetil.org; Thu, 14 Jul 2022 12:13:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55462) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oC19i-0002Vq-Te for emacs-orgmode@gnu.org; Thu, 14 Jul 2022 11:53:36 -0400 Received: from mout02.posteo.de ([185.67.36.66]:55093) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oC19f-0001ct-Oi for emacs-orgmode@gnu.org; Thu, 14 Jul 2022 11:53:33 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 810C4240109 for ; Thu, 14 Jul 2022 17:53:28 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1657814008; bh=kYCLTCjvp3ZATOTM4CUtY6xvA/cM4HiLw5OxG/gjORc=; h=From:To:Cc:Subject:Date:From; b=JvTKv2RwURECyuQFE2oyDOEY357jvbXDVDrUb1P7vQSn3vIBTMkDSo4LjZZhFCCOG szeuhVkEPY1fD86Wk+IxG2vKmemB3+qIttA0EGJT4ZRPpF+/jQoz8v488lyO9mx2EN d2bs793mck6y6Q9en5I/UZUoLt3xEdTPd1LT+pFltDowOg+al23LIBWMrdS5OcDinq zBj17m0N6kmehU7U3xXAltCYzg/AvGGIvIr9E3XUm6ZY/dc2vNwhHQ0GBEmVt3kChp rY3j2RYqkUNEekNFsXd10PUt8chYB5w1iDGwfCsaC9+o3a/+rwLsEqINB14HRaPnzR AuX632f6TBg1w== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4LkJtb692mz9rxl; Thu, 14 Jul 2022 17:53:27 +0200 (CEST) From: =?utf-8?Q?Juan_Manuel_Mac=C3=ADas?= To: Max Nikulin Cc: orgmode Subject: Re: [PATCH] ox-latex.el: Unify in one single list Babel and Polyglossia languages alists References: <87sfxiw2jp.fsf@posteo.net> <87czeduxnz.fsf@localhost> <87lesvlvos.fsf@posteo.net> Date: Thu, 14 Jul 2022 15:53:25 +0000 In-Reply-To: (Max Nikulin's message of "Thu, 14 Jul 2022 22:12:33 +0700") Message-ID: <87h73jlmh6.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=maciaschain@posteo.net; helo=mout02.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_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1657815204; 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=ArtqsteVPEzEKXba9hJbRQ20AICCZ6Lp91O8f9X51ko=; b=Y9Tb6Dk/OpuT28cOw7sn+jizJ9mAvmSHJHR6rMpibLa7fQxrxTYIGgH36yVb4NCdCA4j2z PCkbMsesaf3tsdSqiZaieeF7CtnFvVRgWfn+Nt7hTjHl8nwNpNhXiO45iYTPcMX7K7azXy Qflw7DEd1CpRxY3hi9qxCB6wV1/Q1mkD1n/dy8PoRSqng1WeQffkEPdkirGxlKC+OQdek7 bD0avEw3wcBIuRapM/cgIRZzXkBL0D613v3DY8lhQNxSKoMymRIzA7vwPb3CGBj7E8kgq6 +7dIXBAbyErFyrrF08iqWIPSl9GxuhsQHOwqwUUpFoA8vMmGYcFKvsZRyvOu5Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1657815204; a=rsa-sha256; cv=none; b=JFdH/zut2vqNpiCHxNjIAya7TBAUeEsq7d3bsqwlRvU1wtOqwEHR3rhvtSojmvv8K7mLpf qe9TAf7dw3Lu575hTJtNWi53Hxpcu5gMeCWGTVmqITrDFDT78CIOPjLTJlQpNtzA1uP7i1 RSlLbA1/8CZ6uNfLI24U/a2oBFhF6GH9WgMKk4gtNFE+1LqGJxb4uvoSwnSdTkH0AHZjc1 5BvPM96qVhMDRW+KOqWUDekrD49Imft4uBiJAnSrs7C5Q4IjF/vpMMCqKDYRrct7HTLFmF KVTrNIEO5uPYfpR5KOcjfJFvukuyLwsO9juUgVNGisYJNlxKwkspaWwviyf4Kw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=JvTKv2Rw; dmarc=pass (policy=none) header.from=posteo.net; 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" X-Migadu-Spam-Score: -4.15 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=JvTKv2Rw; dmarc=pass (policy=none) header.from=posteo.net; 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" X-Migadu-Queue-Id: 8749BEC04 X-Spam-Score: -4.15 X-Migadu-Scanner: scn1.migadu.com X-TUID: ZKCCP3Zgtimw Max Nikulin writes: >> Subject: [PATCH] * lisp/ox-latex.el: New variable `org-latex-language-alist' > Writing the previous message I forgot that currently there is no > default option for the fontenc package (PdfLaTeX), e.g. T2A for > Cyrillic. As a result it is not enough to specify just language to > generate PDF file. From my point of view it is better to have single > map from language code to various localization options (babel, > polyglossia, fontenc). Unfortunately plain list > `org-latex-language-alist' does not allow further extensions. Property > list would make initialization not so concise, but it would make the > map more flexible. Sorry, I hadn't seen your other message and I ignored it... What you say makes sense. If I'm not mistaken, there is now nothing like an hypothetical 'org-latex-guess-fontenc', and org defaults to the T1 option. If I remember correctly (because I haven't used pdfLaTeX in ages), the fontenc option for Greek is LGR. And I imagine there will be many more cases. If you or anyone wants to implement that on top of my patch, that's fine with me. I don't have much time to do it right now. However, my opinion is the following: I think we should focus our efforts on finding a satisfactory solution for luatex, according to everything that has been commented in the different sub-threads on the subject of fonts and fallback fonts. And leave the related to pdfLaTeX in second place, if in the end LuaTeX is going to be set as the default engine. In any case, I personally think that org-latex-language-alist, as it is now in this patch, is sufficient. Best regards, Juan Manuel