From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id OJjDB2A09GRndgAAauVa8A:P1 (envelope-from ) for ; Sun, 03 Sep 2023 09:23:12 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id OJjDB2A09GRndgAAauVa8A (envelope-from ) for ; Sun, 03 Sep 2023 09:23:12 +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 CB0BCFD49 for ; Sun, 3 Sep 2023 09:23:11 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=SNPw+ZId; 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=1693725792; 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=uZrmWcztPV07cToP6wZiJcTDAiDtfw+sU1oW8VFOP54=; b=WM8bnuDUW+OaoIzxojEYdCXadCMZZ0bmn0qaYgfg7RsTK9W3CvHh7AslO4Fc5S4wkFe3Aj GtPkHufKD3OMI6hAn37k1XN+HrZg+DHh4r0Uo08e+aKu06EwZI5VdGiCClWTnVcKcArHja ynx0sFO+U5+sHdLcFjGbu2dVJ3gZjUdNwy4D/ruLJF8JXLPavx1OaUu59kOO2npPn3+nYg fpx5lrz228uD1D+2cMl8EjCIlkL/Xa1hxcMZKgXGVP9dxipC+G/B5EWZMcUjR9+xPkEQvE rkHXrXbk7mh+2bSeUwQCtjo2bvU6xmbYNcy/hig9h7yFVPWQnogt4gU7p1JNGg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1693725792; a=rsa-sha256; cv=none; b=LYQWvOHRjiGXqg2YCsJGJ47JFFkhgpsoEVhZulKn6Ckp0r+/GAoUwrTHigbhqXpkgg/t/p vWzqcY3XcvX0g0fOl7RAQJbsTMkJ4Jb/0OspfOJFH6L/0i+rGPTOl7hOzl4l6P4JaI4lVt Bk8aWiKme859UOa/hqcq5ImpG4MXf/d/eUgxn6wsIUEdBGiM7n3ehbUDbb/rzyeG6MhWWQ qq5ynRgDAsGTb6/LhH2pxvJ0K99s2FRt80RLcf9ssgg8reWAqOuVaL8+04b3wg9SEcXr0v IMHIZ0JNBfFTjh0e+/bHsX6Yh859iFpj2VtsxI/bMTiOFQwtKD2MrF8a4mfa6w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=SNPw+ZId; 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 1qchR2-0005zH-JS; Sun, 03 Sep 2023 03:22:16 -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 1qchQz-0005z4-Pz for emacs-orgmode@gnu.org; Sun, 03 Sep 2023 03:22:15 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qchQw-0001ds-Ou for emacs-orgmode@gnu.org; Sun, 03 Sep 2023 03:22:13 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 19BA1240101 for ; Sun, 3 Sep 2023 09:22:08 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1693725728; bh=uZrmWcztPV07cToP6wZiJcTDAiDtfw+sU1oW8VFOP54=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=SNPw+ZId3IseFDyMFnhEAi+R03TR6G7ffvun8f6DnZCnkxw0lMBoqV7cyFZT/nklg Wugmk0TCfvvoT1qZRubCbCZvkEzJGJUVrVqaZQbaMYNAn4KUcYyWYsNsPeI4onIBZY R98iPeAIMH54aLuIuu7UnyIkdN1eY2japo/eItulXgsdTB/S5G/iRDSH9agxlXh1xn d8DG2YbsYPks34ifu69H8fSQ3RbOBtvto2votK1dgmXygSrfN9n9aWfjRxDpdGahtp XGfo7oIU0s4sfNX3czT1LZW1xsXnsx6wKIbzORgo6JWyiQPquOLTavB2XGMkX3Z2k7 92wRIfiXmtNFQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Rdjrb2y3Sz6tww; Sun, 3 Sep 2023 09:22:07 +0200 (CEST) From: Ihor Radchenko To: Juan Manuel =?utf-8?Q?Mac=C3=ADas?= Cc: orgmode , Timothy Subject: Re: Fallback fonts in LaTeX export for non latin scripts In-Reply-To: <878r9ocl17.fsf@posteo.net> References: <878r9t7x7y.fsf@posteo.net> <87wmxbvd60.fsf@localhost> <877cpb8mkd.fsf@posteo.net> <877cpatfol.fsf@localhost> <878r9ocl17.fsf@posteo.net> Date: Sun, 03 Sep 2023 07:22:50 +0000 Message-ID: <87bkejoh4l.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.66; envelope-from=yantar92@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_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: mx0.migadu.com X-Migadu-Spam-Score: -6.43 X-Spam-Score: -6.43 X-Migadu-Queue-Id: CB0BCFD49 X-TUID: /VhgmR1a24Pa Juan Manuel Mac=C3=ADas writes: > Finally I can upload some usable code here, in this case to be able to > load and manage fonts for languages with non-Latin scripts, through > babel and fontspec (in LuaLaTeX). It is an attempt to simplify from Org > the multiform syntax of babel + fontspec. Of course, it is more limited, > but for regular use I think it may be enough. I can see that you did not add defaults for Chinese, which is one of the problematic scripts for LaTeX. Can you add it? > ;; #+LaTeX_Header: % !enable-fonts-for ancientgreek:Linux Libertine O(Sca= le=3DMatchLowercase) > ;; #+LaTeX_Header: % !enable-fonts-for russian:FreeSerif(Numbers=3DLowerc= ase,Color=3Dblue) :: arabic I do not like this approach. Would be more consistent to allow multiple languages in #+language + #+LATEX_FONT keyword to optionally specify per-language font: #+LANGUAGE:
#+LATEX_FONT[lang]: font #+language: ancientgreek russian arabic #+latex_font[ancientgreek]: "Linux Libertine O" Scale=3DMatchLowercase #+latex_font[russian]: "FreeSerif" Numbers=3DLowercase,Color=3Dblue Also, I think that it may still make sense to have some kind of fallback font if the specified fonts are not sufficient. For example, when using emoji symbols, which do not correspond to any language. --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at