From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id gMAGLHk61WJcggAAbAwnHQ (envelope-from ) for ; Mon, 18 Jul 2022 12:48:25 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id QDHvK3k61WL1VgEA9RJhRA (envelope-from ) for ; Mon, 18 Jul 2022 12:48: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 6D67226219 for ; Mon, 18 Jul 2022 12:48:25 +0200 (CEST) Received: from localhost ([::1]:37806 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oDOIY-0006Wk-9r for larch@yhetil.org; Mon, 18 Jul 2022 06:48:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55494) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oDO3I-0003Ux-0d for emacs-orgmode@gnu.org; Mon, 18 Jul 2022 06:32:36 -0400 Received: from mout02.posteo.de ([185.67.36.66]:53469) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oDO3F-0001nQ-Sb for emacs-orgmode@gnu.org; Mon, 18 Jul 2022 06:32:35 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 9367D24010D for ; Mon, 18 Jul 2022 12:32:30 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1658140350; bh=gReD5Asy+9J6JxFAo52ZEJg2yiws9Gt7xmMi9T6hSMk=; h=From:To:Cc:Subject:Date:From; b=h/Tp7tSw/1HqRctqftGjBNmiQA5vN45w5AcACA7uc/Z61oldq2FX/uAbSHP+QaG5G QJelsJ4AbRx2Ep8z02JWM6KiEKFIHPf9/CbkR4Eoi/lVsizsU/0fLcUMnvO6etfb4n aKjL5XP7to/SGMgMrTI6DGq+DtAzOcB1tf+YK1405AvYNBZbvdKEYOb6LCfRlCDyhP uEqz/HQV2qEbqDIx1tyWEVZ3qpqDeZyTH6yNwxqm6abuewAnr8MmyNXWw7Lfhc/dX9 Jd4kg+A1Yj6yOqDNabUn8SBHkdRhXqeSquPX4xf/yX27f12ygLexejfNVnre2FZtrH uo2ejwW6p5sxw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4LmdZP6d8Cz6tmx; Mon, 18 Jul 2022 12:32:27 +0200 (CEST) From: =?utf-8?Q?Juan_Manuel_Mac=C3=ADas?= To: Ihor Radchenko 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> <87bkto83n7.fsf@localhost> <87zgh7ssm1.fsf@posteo.net> <87y1wqhqcb.fsf@localhost> Date: Mon, 18 Jul 2022 10:32:25 +0000 In-Reply-To: <87y1wqhqcb.fsf@localhost> (Ihor Radchenko's message of "Mon, 18 Jul 2022 14:44:52 +0800") Message-ID: <87pmi2g18m.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=1658141305; 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=oq7jT2fljoRKCxSZk0T6+axQ8rsfcNMuj7V09Mv224Q=; b=Ftiw0NRxlothZkV1H5pBqzL7d3lC3ujytU5iQkXVWzUCA+oCXv4ncWNbu1B11nvk2Tc93n tZXHJSoNwJWwEFBmQJjiHIs300ZtWbLTKcoO2oB55IE6ZfQT6o6ooD7Pye+0lENjb5LEXo 3D2BZRBSOysn/ur/5o70uoPa5D6ywvgrTEByf4QANyFB3j0OPG2Mq3zdY1cUV1xc6FkUc6 gZBO+nDQbYM2JrQLfVyxWWUmw9AV8QmCc8eqHsPpDKEJwNK1x9uRr0x65crUgi/w6NaU6L 6/pzD7fVM7OiJjAHq5eSQ1fDdgXy5PX2lL4teMZiiD0S00NLFnkwyaUDZ5swaA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1658141305; a=rsa-sha256; cv=none; b=fOKddhs6E+qcm39AFiVMgFpjZG2pemsgD/aiYeff9Ak8GXJgXcN1rSZvi8+VLSeEOnMZCD KySredfcWulcoWGaRm7G5WJx3c7F7rjYicFkVE1GOsNXAiAYfNi6v/rRlV9U1PBEpulluM fIe9hggO6GTQi/zSTfFG/1qzJJf9k6pNAMgPuKj0U/pqDNm7NwvWxhMJIuZvsC6NVHJBn3 3hbddDV173Zya99NVB+6Y2MgVuS2DgyrPB1kZY1CK8Mt37dmDLY1//NXZYQT0wNvS/hKml EfY/TQBHaG/TseBeooi7b5kgNG4KRPLqTiofkUvTa3p2X/jnyZmgw4iRs4Anlg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="h/Tp7tSw"; 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: -7.63 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="h/Tp7tSw"; 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: 6D67226219 X-Spam-Score: -7.63 X-Migadu-Scanner: scn0.migadu.com X-TUID: 0Z7Sw46b1OV+ Ihor Radchenko writes: > Do you refer to the paragraph below when saying that Org implementation > makes it hard to add new features? The rest of the above paragraph > implies that the difficulty is on LaTeX side, not on Org side. Sorry for not explaining clearly. Actually I think the problem is not with Org or Babel (LaTeX), but rather with the "translation" from Babel (latex) to Org. Currently the babel interface is more complex, although it is more consistent and robust within LaTeX. The challenge is how to style all of that for an Org user who wants to just get a correct PDF out-of-the-box using a simple and basic syntax (of course, you don't need to translate the whole babel: to use babel with all its power it's better to write the LaTeX code directly). For that reason I think that, for now, it is more practical to keep the old babel syntax on the Org side (as I do in my patch): \usepackage[langs]{babel} which is perfectly valid for pdflatex, lualatex and xelatex (except in the languages that are loaded in babel through ini files). > In any case, your existing patch is an already an improvement. I do not > deem it as requirement to apply the patch. Well, between today and tomorrow I can prepare a new version of the patch with all your suggestions from the previous email incorporated. And for the future I can work on a fresh re-implementation of all this, using the :options-alist export property, as you suggest. For example, something like this: latex-lang: babel(sorbian) variant(upper) provide(hebrew:import,hyphenrules=+) options(bidi=default), others(french,catalan) returns: \usepackage[french,catalan,uppersorbian,bidi=default]{babel} \babelprovide[import,hyphenrules=+]{hebrew} or this (in this case Hebrew is the main language): latex-lang: babel provide(hebrew:main,import,hyphenrules=+) options(bidi=default), others(french,catalan) returns: \usepackage[french,catalan,bidi=default]{babel} \babelprovide[main,import,hyphenrules=+]{hebrew} And the above is equivalent to: latex-lang: babel(hebrew) options(bidi=default,provide=*), others(french,catalan) returns: \usepackage[french,catalan,hebrew,bidi=default,provide=*]{babel} Note that for monolingual documents, now in babel it would be enough to indicate the language in the document class options (only for LuaTeX and XeTeX), so it would be enough to do something like this: #+latex_class: article #+latex_class_options: [french,10pt,draft] #+LaTeX_Header: \usepackage{babel} Best regards, Juan Manuel