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 KAvwLOtb6mIVQQAAbAwnHQ (envelope-from ) for ; Wed, 03 Aug 2022 13:28:43 +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 MEblK+tb6mJarQAAG6o9tA (envelope-from ) for ; Wed, 03 Aug 2022 13:28:43 +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 442F511E74 for ; Wed, 3 Aug 2022 13:28:43 +0200 (CEST) Received: from localhost ([::1]:53728 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oJCYM-0005h3-6a for larch@yhetil.org; Wed, 03 Aug 2022 07:28:42 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48470) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oJCSR-0000gg-2T for emacs-orgmode@gnu.org; Wed, 03 Aug 2022 07:22:35 -0400 Received: from mail-lf1-x130.google.com ([2a00:1450:4864:20::130]:35524) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oJCSP-00017o-17 for emacs-orgmode@gnu.org; Wed, 03 Aug 2022 07:22:34 -0400 Received: by mail-lf1-x130.google.com with SMTP id z25so25969282lfr.2 for ; Wed, 03 Aug 2022 04:22:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=BiF9VTWYha5KzTGu+BfqVJEZSxzNNFdml3S0GdfeW4k=; b=kpAIUoMY5pB72umG59gMNsoxQN6yz9IKkpTtEc0j4tenkq+WCMScC0kNAHieGJ9J9r SoHL7BkTSQKhY8JzWsmyRXXeko725QxmZJAf/03Ut616NLDQVhtm9jcm/0QpX+e8zWXY UFNiEvvElp6K/G2z1xynqOstHQvGv0FPRhAQeJekl0C6fEWeR8sX9uLRlasy95ItpbZD j00lf3vs7rle7GG3RJkeLFoPZmy60TreO3RdZJeMofJ8aaQ59lPzh92P6RrA9RWe1P33 Wq5i3uCMq+I8S/CVa8LvgKXGdw8LTVxIupzwNibPWgAUA6l4jG8NbCVRm78OvxXZH+px e0CA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=BiF9VTWYha5KzTGu+BfqVJEZSxzNNFdml3S0GdfeW4k=; b=Dt/Vl5fjGavzTj8SsDTXbtBJPZuqnOrKa3WUHog3HQS8+i48mwvbw9/lOhepVLSUvY Qaf8LikJcakBcL+3mIL5gAiGgwZc37zvPHREYO2WpNLI1PI/OfmO1QeVXKKer2AroFBt Ob3UPjo1Rve+sSB75+WL1NtuSEMjyIUv7tqrdB+aPI96rKQHAW18Wg7Ly58Bkl3wzzc9 lo/EsTzlL2MgTV7A2D4c0MKVVBKoYjczJ4EGw4QTVSgBIocUCmJQrhaxlH6aVvLV/LJA uHTxmTsAouQbQr2GSrolSN9P4E8yAF1PCxhXtWqqlGuax35jQ//v1TVmhAuV1BdOEKfF NRyw== X-Gm-Message-State: AJIora9U4H7xxTS6E3P/6BotUe9eDzMhE+oUKNUtdXyk80c0Xemj6kP5 qMLVa56ZnlbMVs1N3UpyNzPn8Wny9EzNRzeLlkQ= X-Google-Smtp-Source: AGRyM1sxAgQeHRtZhvU41AJIaTRw3QDrcqR8scVAYIibKLupTLtrQNZagMqPe5Uu7Gu8qv40cx5aEITfS9g6VM/kPJI= X-Received: by 2002:a05:6512:1681:b0:48a:2e71:e202 with SMTP id bu1-20020a056512168100b0048a2e71e202mr9110112lfb.378.1659525750748; Wed, 03 Aug 2022 04:22:30 -0700 (PDT) MIME-Version: 1.0 References: <87mtcq14gt.fsf@posteo.net> In-Reply-To: <87mtcq14gt.fsf@posteo.net> From: Ihor Radchenko Date: Wed, 3 Aug 2022 19:23:29 +0800 Message-ID: Subject: Re: [PATCH] ox-latex.el: `org-latex-language-alist' improved To: =?UTF-8?Q?Juan_Manuel_Mac=C3=ADas?= Cc: orgmode Content-Type: multipart/alternative; boundary="000000000000de7c6c05e554724d" Received-SPF: pass client-ip=2a00:1450:4864:20::130; envelope-from=yantar92@gmail.com; helo=mail-lf1-x130.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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=1659526123; 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=BiF9VTWYha5KzTGu+BfqVJEZSxzNNFdml3S0GdfeW4k=; b=jyu4uOFJsBnLmvaetk9VqZaQRU81dKVBIujq2pSz6p7uuGlV3EOxme4L/Qv+d/udHVsvOQ XoiGVqjtptRmgn+HB6SAE6OP7QLA2MQsD0wTB60cCu8zfowYMi3XFCfye+aA7xlj+F2YUZ IXOPqXGw3x+PfqitQzNtoAZwclE6+GCZO6g9kwRbSSbulqx7GXJAuV55F+d8CEU5bciLjA snwGefg0OtX61uc2oCcKdOnWDzQv03sees9G+9RofvRamCm/hX4zJQRApKmGsBAhsmrw9i FX2uL2OKsl0tRMDiZlApxsXD8FS09nXC80Coh3/eWPjQRISTlzLu9D0Ic7hJNg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1659526123; a=rsa-sha256; cv=none; b=m45eKk02tPqb+4VdHs8beD6g+77JJaVMr0SPx5+bYunmR90UTQbrVjeB+JarRl3uExsd4w GETOCyaht8a4IXEpJAHQDWF7O7kM5tPs3pbEKYYAu9IbgInF3UYti3mPQrxLmQhN5lW57J PA6eelZZXLOxwuM4/+E6Qk206Ug0a9P4HFqskaKlPAiEp5Ws21YTbhPgmeq6hBpT4orhEN OPDF2zD/L8AlYHfUflwuqlDiut47GHdCqCkg6skUG98d6TdJvNDzTzEb4NxAS+uEJKbjQo rs3dPpiAGEGxELcBuNXs7YRiE7U918pDNJ1l0Fp6SQz+tBLlLI0UN1ZBMwa2dg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=kpAIUoMY; dmarc=pass (policy=none) header.from=gmail.com; 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: -3.91 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=kpAIUoMY; dmarc=pass (policy=none) header.from=gmail.com; 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: 442F511E74 X-Spam-Score: -3.91 X-Migadu-Scanner: scn1.migadu.com X-TUID: YyKh/MksqpxD --000000000000de7c6c05e554724d Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Juan Manuel Mac=C3=ADas writes: > I've managed to get some free time to remake this list, following Maxim > Nikulin's suggestion > (https://list.orgmode.org/orgmode/taeb0a$r62$1@ciao.gmane.io/). It's no > longer an anonymous list and I agree it now has a more robust structure > with name fields. I have also added the `:lang-name' property, whose > value is the actual language name. For example: > > ("el-polyton" . (:babel "polutonikogreek" :polyglossia "greek" > :polyglossia-variant "polytonic" :lang-name "Polytonic Greek")) > > Thanks to this I think the code for org-latex-guess-babel-language, > org-latex-guess-polyglossia-language and org-latex--format-spec is also > simpler. Thanks! I have some minor comments on the patch. > From b06cdd45198f470a135efad2cd1d8b22ab7e2f22 Mon Sep 17 00:00:00 2001 > From: Juan Manuel Macias > Date: Sun, 31 Jul 2022 02:31:08 +0200 > Subject: [PATCH] lisp/ox-latex.el: `org-latex-language-alist' improved. No dot after the firs message line, please. > + '(("am" . (:babel-ini-only "amharic" :polyglossia "amharic" :lang-name "Amharic")) > + ("ar" . (:babel "arabic" :polyglossia "arabic" :lang-name "Arabic")) A simpler form would be ("am" :babel-ini-only "amharic" :polyglossia "amharic" :lang-name "Amharic"= ) > + "Alist between language code and corresponding properties, such > +as Babel/Polyglossia options and language names. The first line of the docstring should fit 80 characters and be a full sentence. It is needed to make sure that eldoc can display the short docstring in the message area. > +- `:poliglosia' the name of the language loaded by the Polyglossia LaTeX package `:polyglossia', I think. > +- `:babel-ini-only' the name of the language loaded by Babel > + exclusively through the new ini files method. May we put some kind of reference to LaTeX docs here? > + (let ((language (let* ((lang (plist-get info :language)) > + (plist (cdr > + (assoc lang org-latex-language-alist)))) > + ;; Here the actual name of the LANGUAGE or LANG is used Please end the comment sentence with ".". Best, Ihor --000000000000de7c6c05e554724d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Juan Manuel Mac=C3=ADas <maciaschain@posteo.net> writes:

> I've man= aged to get some free time to remake this list, following Maxim
> Nik= ulin's suggestion
> (https://list.orgmode.org/orgmode/taeb0a$r62$1@= ciao.gmane.io/). It's no
> longer an anonymous list and I agr= ee it now has a more robust structure
> with name fields. I have also= added the `:lang-name' property, whose
> value is the actual lan= guage name. For example:
>
> ("el-polyton" . (:babel = "polutonikogreek" :polyglossia "greek"
> :polyglo= ssia-variant "polytonic" :lang-name "Polytonic Greek"))=
>
> Thanks to this I think the code for org-latex-guess-babel-= language,
> org-latex-guess-polyglossia-language and org-latex--forma= t-spec is also
> simpler.

Thanks! I have some minor comments o= n the patch.

> From b06cdd45198f470a135efad2cd1d8b22ab7e2f22 Mon = Sep 17 00:00:00 2001
> From: Juan Manuel Macias <maciaschain@posteo.net>
> Date: Sun, = 31 Jul 2022 02:31:08 +0200
> Subject: [PATCH] lisp/ox-latex.el: `org-= latex-language-alist' improved.

No dot after the firs message li= ne, please.

> + =C2=A0'(("am" . (:babel-ini-only &q= uot;amharic" :polyglossia "amharic" :lang-name "Amharic= "))
> + =C2=A0 =C2=A0("ar" . (:babel "arabic"= ; :polyglossia "arabic" :lang-name "Arabic"))

A = simpler form would be
("am" :babel-ini-only "amharic"= ; :polyglossia "amharic" :lang-name "Amharic")

&= gt; + =C2=A0 =C2=A0"Alist between language code and corresponding prop= erties, such
> +as Babel/Polyglossia options and language names.
<= br>The first line of the docstring should fit 80 characters and be a fullsentence. It is needed to make sure that eldoc can display the short
d= ocstring in the message area.

> +- `:poliglosia' the name of = the language loaded by the Polyglossia LaTeX package

`:polyglossia&#= 39;, I think.

> +- `:babel-ini-only' the name of the language= loaded by Babel
> + =C2=A0exclusively through the new ini files meth= od.

May we put some kind of reference to LaTeX docs here?

>= ; + =C2=A0(let ((language (let* ((lang (plist-get info :language))
> = + (plist (cdr
> + (assoc lang org-latex-language-alist))))
= > + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0;; Here the actual name of the LANGUAGE or LANG is used

Please en= d the comment sentence with ".".

Best,
Ihor
--000000000000de7c6c05e554724d--