From: Ihor Radchenko <yantar92@gmail.com>
To: "Juan Manuel Macías" <maciaschain@posteo.net>
Cc: orgmode <emacs-orgmode@gnu.org>
Subject: Re: [PATCH] ox-latex.el: `org-latex-language-alist' improved
Date: Wed, 3 Aug 2022 19:23:29 +0800 [thread overview]
Message-ID: <CACnOyihg0aPb802FQ=rCEYOaOS7NFut_1Oz1F9KpJ-4V+UcFwA@mail.gmail.com> (raw)
In-Reply-To: <87mtcq14gt.fsf@posteo.net>
[-- Attachment #1: Type: text/plain, Size: 2207 bytes --]
Juan Manuel Macías <maciaschain@posteo.net> 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 <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 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
[-- Attachment #2: Type: text/html, Size: 2843 bytes --]
next prev parent reply other threads:[~2022-08-03 11:28 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-31 1:00 [PATCH] ox-latex.el: `org-latex-language-alist' improved Juan Manuel Macías
2022-08-03 11:23 ` Ihor Radchenko [this message]
2022-08-04 10:04 ` Juan Manuel Macías
2022-08-04 12:16 ` Max Nikulin
2022-08-05 17:14 ` Juan Manuel Macías
2022-08-06 7:13 ` Ihor Radchenko
2022-08-06 21:32 ` Juan Manuel Macías
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CACnOyihg0aPb802FQ=rCEYOaOS7NFut_1Oz1F9KpJ-4V+UcFwA@mail.gmail.com' \
--to=yantar92@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=maciaschain@posteo.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).