From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <emacs-orgmode-bounces+larch=yhetil.org@gnu.org>
Received: from mp2.migadu.com ([2001:41d0:403:58f0::])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	by ms8.migadu.com with LMTPS
	id QBNfL6pprmUNfAEAe85BDQ:P1
	(envelope-from <emacs-orgmode-bounces+larch=yhetil.org@gnu.org>)
	for <larch@yhetil.org>; Mon, 22 Jan 2024 14:12:11 +0100
Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	by mp2.migadu.com with LMTPS
	id QBNfL6pprmUNfAEAe85BDQ
	(envelope-from <emacs-orgmode-bounces+larch=yhetil.org@gnu.org>)
	for <larch@yhetil.org>; Mon, 22 Jan 2024 14:12:10 +0100
X-Envelope-To: larch@yhetil.org
Authentication-Results: aspmx1.migadu.com;
	dkim=pass header.d=posteo.net header.s=2017 header.b=JOGeP5+m;
	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";
	dmarc=pass (policy=none) header.from=posteo.net
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org;
	s=key1; t=1705929130;
	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:
	 content-transfer-encoding:content-transfer-encoding:
	 in-reply-to:in-reply-to:references:references:list-id:list-help:
	 list-unsubscribe:list-subscribe:list-post:dkim-signature;
	bh=ZmqOShubbLFYKuO25Ycu7cJbUTlXXdoO06tBkBt1aNE=;
	b=fru+mSw24mtPozvLt+PXhAVpNwkIrNnT6EfdV4zquGnGvB1pinuyoEbx3es+wWB2oyttQK
	QkIYk2RMwEQx7RWbpEG5+YT+iQfsVvh/8AE9koBUZaABPoLh9tMZmIL1YPSe1M8XJv9Q2g
	msqQusBvde6zcZGSJd8YOZcEVkjcrH6EmIk2W5xh+cHuHYlG40K4USkP53B7ncXlr+Wtey
	BrnwA51+DI50j33a027nTAg6kG8MFzSQUDLAx9m3AKIPU1MFo0seXq2MGgbRcT0naLTkLe
	uWkOA7F3LXmPdnKB8GM42laxAaOSjF8mL5ABFmeVIjvPZRmwW2A2veaoWKrMBg==
ARC-Authentication-Results: i=1;
	aspmx1.migadu.com;
	dkim=pass header.d=posteo.net header.s=2017 header.b=JOGeP5+m;
	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";
	dmarc=pass (policy=none) header.from=posteo.net
ARC-Seal: i=1; s=key1; d=yhetil.org; t=1705929130; a=rsa-sha256; cv=none;
	b=TUMEGTCKtd+I7+v5RiW5x8b8yvvTU6yclEUUeO5IN53w4n7JA7aVAStcPgzfx7u3/7fpjd
	RcEqcY5By/srKgdfnpbPUh7QpaEP+EwE4qIY0IJEP+1PuY0k43iGpXkJ1B3J6u6CXoDdz4
	V1X1K9iFMmCDHCtVa4i+ANXEUtjnT4b1J+n2RiqWezdWkKcO3J4IRZoIDIE9YdXkeXlB1V
	ixkcwUe1S82DkpEGHmd5rJwuCwsaUKq080dVijc3Imlpggs7NVzkME1WBYlCSBbqena6uB
	xSBR2dJFgKrPO7DrzAJLF6nrbcijVW7Rnxo2i3FNdzhAEeINHatNvVZpuPWFmg==
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 61551442A0
	for <larch@yhetil.org>; Mon, 22 Jan 2024 14:12:10 +0100 (CET)
Received: from localhost ([::1] helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from <emacs-orgmode-bounces@gnu.org>)
	id 1rRu5F-0004qS-10; Mon, 22 Jan 2024 08:11:25 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <maciaschain@posteo.net>)
 id 1rRu5A-0004ou-Ll
 for emacs-orgmode@gnu.org; Mon, 22 Jan 2024 08:11:20 -0500
Received: from mout01.posteo.de ([185.67.36.65])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <maciaschain@posteo.net>)
 id 1rRu57-0002UR-Qy
 for emacs-orgmode@gnu.org; Mon, 22 Jan 2024 08:11:20 -0500
Received: from submission (posteo.de [185.67.36.169]) 
 by mout01.posteo.de (Postfix) with ESMTPS id BE341240028
 for <emacs-orgmode@gnu.org>; Mon, 22 Jan 2024 14:11:14 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017;
 t=1705929074; bh=ZmqOShubbLFYKuO25Ycu7cJbUTlXXdoO06tBkBt1aNE=;
 h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type:
 Content-Transfer-Encoding:From;
 b=JOGeP5+mANyrtiu/Z2Mr1TT3I/sDsZLUG7CidlfJQai3dk/Iw4XQW+S3L7UAE0Vd/
 5zZ21MtAT5uhd7ayv10+J1s5656PpOTMClU2GSqQjaEIqoxHCliyYxrQRefQkbC8Tk
 i7DVriNGbzR+xW6OyvHEuDxkEmwQxA6hYGbxR5+4FafYnpKALMffF+kiV2jZisrneh
 NLanWPO8mN98TQjvQHCbZjrYcGjZKoJAcRw402guzj7NScs4cj8BPMewYBZzVN95hX
 B46k9gX5prhy7Kwy6UU35RVrCm4rmsvDmG/L48W/QsebOueqdzPFOKvghBrXOhwtRA
 TDyhFOtrOJiww==
Received: from customer (localhost [127.0.0.1])
 by submission (posteo.de) with ESMTPSA id 4TJVwL16NVz6tx1;
 Mon, 22 Jan 2024 14:11:13 +0100 (CET)
From: =?utf-8?Q?Juan_Manuel_Mac=C3=ADas?= <maciaschain@posteo.net>
To: Pedro Andres Aranda Gutierrez <paaguti@gmail.com>
Cc: Ihor Radchenko <yantar92@posteo.net>,  Org Mode List
 <emacs-orgmode@gnu.org>
Subject: Re: New try at multi-lingual export to latex/pdf using pdflatex and
 babel
In-Reply-To: <CAO48Bk-bkmbWKMiqyMrbGugxxFv3X3bAom1R+W6oFBQKyJOcEA@mail.gmail.com>
 (Pedro Andres Aranda Gutierrez's message of "Mon, 22 Jan 2024 07:47:05
 +0100")
References: <CAO48Bk9jaJ=eOxeDA=NxTNhAi8HLHP2RDDh2++n7zWrbFzep9Q@mail.gmail.com>
 <87sf2qg7pg.fsf@localhost>
 <CAO48Bk9Eo9zrgU7i7jMDcEAY120VZSHF70PdXOXKFCuKZGKGcg@mail.gmail.com>
 <878r4i37eh.fsf@posteo.net>
 <CAO48Bk-uaecvNHSETTNPyiriDhGp_h6mheZARC0+T3EN7vnSuA@mail.gmail.com>
 <CAO48Bk-bkmbWKMiqyMrbGugxxFv3X3bAom1R+W6oFBQKyJOcEA@mail.gmail.com>
Date: Mon, 22 Jan 2024 13:11:11 +0000
Message-ID: <871qa91pjk.fsf@posteo.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Received-SPF: pass client-ip=185.67.36.65; envelope-from=maciaschain@posteo.net;
 helo=mout01.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_H5=0.001, RCVD_IN_MSPIKE_WL=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." <emacs-orgmode.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/emacs-orgmode>,
 <mailto:emacs-orgmode-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/emacs-orgmode>
List-Post: <mailto:emacs-orgmode@gnu.org>
List-Help: <mailto:emacs-orgmode-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/emacs-orgmode>,
 <mailto:emacs-orgmode-request@gnu.org?subject=subscribe>
Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org
Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org
X-Migadu-Flow: FLOW_IN
X-Migadu-Country: US
X-Migadu-Spam-Score: -5.89
X-Migadu-Queue-Id: 61551442A0
X-Spam-Score: -5.89
X-Migadu-Scanner: mx11.migadu.com
X-TUID: EMDjGg1FvfUB

Hi, Pedro Andr=C3=A9s,

Pedro Andres Aranda Gutierrez writes:

> PS: This is a very limited example. It would be nice to have more
> control on fontenc. AFAIK there is not alphabeta for cyrillic
> encodings and typesetting 'War and Peace' with its passages in French
> embedded in the Russian text is sort of a headache ;-)

For scripts other than Latin it is highly recommended to use the 'new'
Unicode versions of TeX, XeTeX or LuaTeX, especially the latter, since
it is the natural replacement for pdfTeX. The input is Unicode and you
can easily use true type or opentype fonts via the fontspec package.
Babel already has full support for these engines and it is not necessary
to use polyglossia. Even with Babel you can associate fonts with certain
scripts such as Greek, Cyrillic, Devanagari, etc. Look at this example I
made with several scripts and several fonts:
https://i.imgur.com/56P6U0R.png

I'm currently working on Org having multilingual font and script support
in LaTeX export with LuaTeX and babel. Although now I have put it on
hold due to lack of time :-). And Ihor is working on a much more
flexible language naming system. These are issues that were discussed,
among others, in this thread:

https://list.orgmode.org/878r9t7x7y.fsf@posteo.net/

Regarding your patch example, is there any special reason for you to
load the languages in the class options? It's perfectly valid, although,
as I said, it's not supported by org's AUTO facility (at the moment). I
understand that it is useful when the document is monolingual, but for
more than one language I find it unnecessary and, in addition to loading the
options with \PassOptionsToPackage.

Best regards,

Juan Manuel=20



=20