From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 CDxoEqd70WLc4QAAbAwnHQ (envelope-from ) for ; Fri, 15 Jul 2022 16:37:27 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id dmk9Eqd70WJ+bAAAauVa8A (envelope-from ) for ; Fri, 15 Jul 2022 16:37:27 +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 8D92A7640 for ; Fri, 15 Jul 2022 16:37:13 +0200 (CEST) Received: from localhost ([::1]:34940 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oCMRM-0004TS-BB for larch@yhetil.org; Fri, 15 Jul 2022 10:37:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36450) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oCMQY-0004QX-D1 for emacs-orgmode@gnu.org; Fri, 15 Jul 2022 10:36:23 -0400 Received: from mout02.posteo.de ([185.67.36.66]:50775) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oCMQV-0003jn-T2 for emacs-orgmode@gnu.org; Fri, 15 Jul 2022 10:36:22 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 9A081240108 for ; Fri, 15 Jul 2022 16:36:13 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1657895775; bh=GCzp/TXuChX9kdgEAUR+uhnwsPZeZVnUed7fYYpaPac=; h=From:To:Cc:Subject:Date:From; b=lxrYtujjQs2yroeAiUT/QttyzUrTVEsFBqqQA4uhqIu66U6sa5g68cyXZJ7g3eiEJ tMtxA+o69dVfVJW1Xq9FJKNrA522lcpect0Ki6TICfiCvo8T8mmg5yU5d0ORA3IUCc Zi/EgsXlA2CmUuSWUwYfcfbRH0Qbis+QlMFp+S1WGUIUUzUVqebivAXj9ns3tGii15 NyL1xhuSsD+uTchfflEQ++NhBMswzBumtdGVNKgKCSJT7q0XlbOzOOg9qlfFY7SNJw w0kGx30zDEKLvCFTOqduIZScJxyzW35oVEpzdwREdWJP7YzpVLoX4iew0HRf5SGvfi NZrywfey8XHEg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Lkv6x6dnKz6tmJ; Fri, 15 Jul 2022 16:36:09 +0200 (CEST) From: =?utf-8?Q?Juan_Manuel_Mac=C3=ADas?= To: Max Nikulin Cc: orgmode , Ihor Radchenko 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> <87h73jlmh6.fsf@posteo.net> <871qunv9s8.fsf@posteo.net> Date: Fri, 15 Jul 2022 14:36:07 +0000 In-Reply-To: (Max Nikulin's message of "Fri, 15 Jul 2022 19:18:00 +0700") Message-ID: <878rou30ko.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=1657895833; 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=ackTt5HvWG1nAReAtjPcYIJm4F4/gJnF1UcF7wDMZDA=; b=he0/VJe5d7pt0I//pfW4BYFMXiggrm/tktAw6cF2EDE4ws/niy/ayqpTT0ZgGVNXdAMpsc wKIgp4b2CrypfyjY/DmiCRQ8/naAa5pooc5pJBHrbNr0gSAjZAblClpjMpj5EFpnkCFcsw IuFQ8ZgLWkjm53C+MgCNAH/rQLybGL8sNEc58EOdqA1v61mLry255J0+sxLFOhJ3x7S0as EYJHDqvA4XYJP6z30y8rXfvXYfiFlBkimoEm3swugagLbzgwyl4zQnRVCTDzEqGLSIF+e3 15yAtMnBGJ/vOc3nQDsrPjcDqqTQNwcv9U54dX3NxcKWjuxara/2mCB2Rk4/yw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1657895833; a=rsa-sha256; cv=none; b=I+SkeVz8haTpcQQsK/A0SwpoPRyfsMBamC+Pk+PlpRm3ytML2w7yIf7hW6gOxZjfittnWZ XpAO7PallS3ekiCsZV2B7RUowmRs5QXqVrSNhsr/XMZ6LiG32IHetmtZKy7LY3RZ3aF2g+ ka6su7QnGyPjCMFsaxnWfNfk257q1Ux22+sY1aVBRpjf1zrXSfZvhcevUzlFOMoa2IpNCC WHGKfOKbt+STbPi+0YEXloS2IAGdP4x0RUY34eET8qADYXucRW19G40Wr24uOt3EirAIpo lXtCe1xp+67OmJ8+e7ZjxXS1j0AW7gS3H58hM3KSEFuv16oAxRhX0Mh4AaEm/g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=lxrYtujj; 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.14 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=lxrYtujj; 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: 8D92A7640 X-Spam-Score: -4.14 X-Migadu-Scanner: scn0.migadu.com X-TUID: 0zTjxWQDkJsy Max Nikulin writes: > I have tried on Ubuntu-20.04 LTS focal (Latest LTS is 22.04 jammy). > Without explicit fontenc it may work, but emits a warning > > Package babel Warning: No Cyrillic font encoding has been loaded so far. > (babel) A font encoding should be declared before babel. > (babel) Default `T2A' encoding will be loaded on input > line 74. Yeah, that's something I forgot to mention. The warning is from russianb.ldf: ------------- \ifx\cyrillicencoding\undefined \if@uni@ode %\ifdefined\XeTeXrevision % \edef\cyrillicencoding{EU1} %\else\ifdefined\luatexversion % \edef\cyrillicencoding{EU2} %\fi\fi \edef\cyrillicencoding{TU} \else \edef\cyrillicencoding{T2A} \fi \PackageWarning{babel}% {No Cyrillic font encoding has been loaded so far.\MessageBreak A font encoding should be declared before babel.\MessageBreak Default `\cyrillicencoding' encoding will be loaded }% \lowercase\expandafter{\expandafter\input\cyrillicencoding enc.def\relax}% \AtBeginDocument{\@setcyrillicencoding} \fi ------------- But there is no warning in the case of Greek, where the LGR fontencoding is not explicitly indicated either. In any case, I have commented on this issue on the Hispanic TeX mailing list, where Javier Bezos (current Babel maintainer) participates. It would be interesting if he could clarify this for us... > Unfortunately in the case of > > \usepackage[russian,english]{babel} > > \selectlanguage{russian} is required, without it compilation fails with > > ! LaTeX Error: Command \cyrn unavailable in encoding OT1. Yes, this is the case of the example that I put in my previous message (russian as second language). If a explicit babel command is not added, the T2A fontencoding is not loaded. Therefore, you would have to add a selectlanguage{russian} or, at a low level, \fontencoding{T2A}\selectfont > With \usepackage[T2A]{fontenc} it behaves accordingly to acceptable > for non-important documents graceful degradation. Text is readable, > but no hyphenation applied. > > So I consider explicit loading of fontenc as more reliable. Wouldn't it be easier in those cases to just load the fontenc package a second time: #+LaTeX_Header: \usepackage[T1,T2A]{fontenc} According to what Egreg says in this thread (https://tex.stackexchange.com/a/79112), "The only package that's allowed to be loaded multiple times is fontenc". So my logic is as follows: since Org has always loaded fontenc with the T1 option by default, I don't see much point in changing that behavior now that pdfLaTeX is, so to speak, in retirement. And in any case, the user can change (now) the fontencoding via the babel commands or by loading the package a second time. For the record, I'm not opposed to redoing the patch by adding the features you're proposing. Simply, from my point of view, I think it's not worth the effort. But it's just my opinion, and besides, I don't use pdfLaTeX, so I may have a bias here. Best regards, Juan Manuel