From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id +EhICDmk+WQjLQEAauVa8A:P1 (envelope-from ) for ; Thu, 07 Sep 2023 12:21:45 +0200 Received: from aspmx1.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id +EhICDmk+WQjLQEAauVa8A (envelope-from ) for ; Thu, 07 Sep 2023 12:21:45 +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 EA20F5AB17 for ; Thu, 7 Sep 2023 12:21:44 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="HsQME/8g"; 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=1694082105; 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=uTqYp80anM78LxHT3b1LmZg8mh3jhgQ7378lDhpAwpI=; b=owtWbbkAdjmaybDdT91pmYkq+6TcMT/bR/GILbRPzzhvC9hOkhuiL4jJ2WNsP/NpGbrN7Q zC6DoRFjl6iQumi2Z2jOhtMz06sTr4j6YUG4vr+vOCmTzvnB7BuDUyeaaWRedt+rPcJJ9B dIn/r4WHiktq8qQvF5RI2SSho9RQFqp40kyLdX6t9MeDKrANnA6B8BZjaiWfgexmkktVuc WgHxTMh+hfqPG0rbcayscX6E/7IFRXWV9XtQ9hv9Jr/OuP5gsCxLDqANxQTFMFEqNk97Bj FtBZWV0JkGsMxib4WK+FR7BMJOD6dm7rkZ0Vct0C30tnIqMv2X3jmxH6U+EqHg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1694082105; a=rsa-sha256; cv=none; b=ckL8Z1sviTOQauWp0vPZejyUZpVocSRkPOyZsNHYPP7jxAG6D2gWgE0soDuq4ZsojmVR29 56d1FWfINAO1VXXTVSV6Z+aupxYzJSXdRivnDofnCl334OD4n2QxwE3sQchxieKOBGYzZ6 RtSlgK1FgoIWrPllV3Ah7HrRKpHjIms/Ul1IQEqC9xGNhM2q594zlhsvZXadheduWI6L02 9ptbQpY4PSKwAB5iFEi2QPH8rIn9iwgU9HNxZefhNPZXpsSg1gMmpUEDzZ4KHYbkDbZ1B4 f8u/5bBvYmhb3y3UTJCuyeU2I3znCdy7g/gwp5IbMbFQcVXXmFM9sE+TU7zKyQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="HsQME/8g"; 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 Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qeC8d-0001E3-7w; Thu, 07 Sep 2023 06:21:27 -0400 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 ) id 1qeC8Z-0001Du-S0 for emacs-orgmode@gnu.org; Thu, 07 Sep 2023 06:21:24 -0400 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 ) id 1qeC8V-0008Gg-N0 for emacs-orgmode@gnu.org; Thu, 07 Sep 2023 06:21:23 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 97CD0240028 for ; Thu, 7 Sep 2023 12:21:17 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1694082077; bh=6dANurAZNoVB5/O4N1TUG00HQcrOJv8nJUV0SHv5DOc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=HsQME/8g3AmePnqOflUGX/jgS5IGrC7lz2aMuU09aD6iLAFMDbmdW9etv8LQc30RM uQ7ObFV4TgR/HMp0oKCRYJI1RsskvdGBdeQ38QDvr5WBo1Fsr7BCgWoOKMk8KKTSAp 1++g3Nq92FDlzc+o8az457vgeyzzo2Zioq6PBMSX2Klx8hNyF7uk6bKe1cTXqZDVhM ePYgRYD4VKbhxHb0+FnwHbNB0jdLcqTp3wR8UmyhBxcwAYA6CG/m7mjXD2Ks/5i5E4 KVAwEkKCd0mnxrw6weV7xl+wG8PA2TCeVD5lcKjO8EcpdiedmR8x4boExhqYf17s8G Zn9jSXaXz3igg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4RhFdT10Hbz6ty0; Thu, 7 Sep 2023 12:21:17 +0200 (CEST) From: Ihor Radchenko To: Juan Manuel =?utf-8?Q?Mac=C3=ADas?= Cc: Max Nikulin , emacs-orgmode@gnu.org, Ihor Radchenko Subject: Re: Fallback fonts in LaTeX export for non latin scripts In-Reply-To: <8734zrgxgx.fsf@posteo.net> References: <878r9t7x7y.fsf@posteo.net> <87wmxbvd60.fsf@localhost> <877cpb8mkd.fsf@posteo.net> <877cpatfol.fsf@localhost> <878r9ocl17.fsf@posteo.net> <87bkejoh4l.fsf@localhost> <87il8ra554.fsf@posteo.net> <87jzt6weae.fsf@localhost> <87bkehshni.fsf@posteo.net> <874jk8xyfz.fsf@posteo.net> <87a5tztzth.fsf@localhost> <8734zrgxgx.fsf@posteo.net> Date: Thu, 07 Sep 2023 10:22:07 +0000 Message-ID: <878r9ip9kg.fsf@localhost> 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=yantar92@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 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx2.migadu.com X-Spam-Score: -9.18 X-Migadu-Queue-Id: EA20F5AB17 X-Migadu-Spam-Score: -9.18 X-TUID: flcCpooQWXOO Juan Manuel Mac=C3=ADas writes: >> Do I understand correctly that onchar=3Did will not break anything if te= xt >> is correctly marked with \selectlanguage{}? > > To load language features (hyphen rules, captions, etc.) there is no > problem. But to load a font associated with a language, the font of the > last declared language will always be loaded. May we explicitly set the needed font around language environments? Something like \setfontforrussian \selectlanguage{russian} .... \setfontforbulgarian \selectlanguage{bulgarian} .... > In any case (to organize myself mentally) I thought that it could be > done on two levels: > > - Level 0: The fonts associated with each script are loaded (from a > defcustom list) if luatex is the current engine. And low-level code is > generated in Lua with the luaotfload.add_fallback function. That code > can be in a Lua file or directly within the preamble, enclosed in the > \directlua primitive (mode=3Dharf means that HarfBuzz is used as otf > rendering): > ... Sounds reasonable. > - Level 1: The user can load language properties and associate fonts > with each language using Babel's high-level code (via keywords in Org, > as we have commented in previous messages). Here you can also modify > the default fonts (also, as we mentioned before): main, mono, sans and > math. If the language is declared with an asterisk (for example: > russian*) the onchar=3Detc property will be included in the preamble, > and it would not be necessary to switch to russian explicitly. It is > assumed that in this scenario the only language with Cyrillic script > would be Russian. For language swithcing, in the rest of the cases, > some babel command would have to be used using @@latex:@@, special > blocks, etc. When Org already has its own language switching > mechanism, this would be used instead. Wdyt? I am not sure if I like "russian*" idea. May you explain a bit more about how onchar works? What if language characters are intersecting, and not using exactly the same char sets? --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at