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 mNOtE6NiDGWDFwAAauVa8A:P1 (envelope-from ) for ; Thu, 21 Sep 2023 17:34:59 +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 mNOtE6NiDGWDFwAAauVa8A (envelope-from ) for ; Thu, 21 Sep 2023 17:34:59 +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 BBD443B2E5 for ; Thu, 21 Sep 2023 17:34:58 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=BVgSM5G+; 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=1695310499; a=rsa-sha256; cv=none; b=pTLb8UcRWuPYdgE+bbpJ97y34sUHcyYQn8Xb6g0f8cfWHqqqBllJexoYkFBmlZX347Q2TR vE/bju2yWyt0G+7yRv0YC59iung7dShk8uw82e3Ti6tEcsOkFeXpvsxrBnT7xv1LkhvRvj 1B7dNMtKk2IoQzyExSo9BznS8krc/eLFIeywAYkbCt4vRFpdTeV2kSvhhBs7/Hf2sfZmnn SGQ9dnAKudPZDArXSxW/oG2HpZFgXr/Zh4YV+dTWP+ydkK77eBew/YpXFLtFTmaFP323Qc BntK38Xp5JVgraUqtmrHafuBV/N3eCYlorpdGuno2DpXR4giI2zWEZYLjeuB9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1695310499; 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=jIfr/pyrUftuiNQMW4LOUS/6Vkc0LPhjkmU+Y/7EWv8=; b=Oy18/EOSOvqvwX48TADJhyWCj/tfagYiD8bb8ir6oeMSpu4MZ7mngx0FaIcYpTYbrhHcHz tmmiMIFEtizZ95WKqgT+Zo46xlBsSzSerz53BC9LGy7tIW0b6udMJPysDStLs6Az6W9nkW eqQOMsiLl5usFJ5XrIFLKJvSDjl3Y+ZUEylsg5AXibbZWkcEO8SqoFIh94Zg8I3xXQC3Kd nfT5Nz25BWl5vCDI3urMd5+cyGTymYMXsTiwd8Qtlgo58BufsBoJw/wf7fwKe81tow3AOL Zy743kYrPm0uPKmIZve+UolFQvxO3RGtISS0uNmbqjBI7nBwUagpqBD2p/13rg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=BVgSM5G+; 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 1qjLgd-0001Qt-9j; Thu, 21 Sep 2023 11:33:51 -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 1qjLgZ-0001Qc-Kz for emacs-orgmode@gnu.org; Thu, 21 Sep 2023 11:33:47 -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 1qjLgX-0000tU-4U for emacs-orgmode@gnu.org; Thu, 21 Sep 2023 11:33:47 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 6D6F9240104 for ; Thu, 21 Sep 2023 17:33:38 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1695310418; bh=jIfr/pyrUftuiNQMW4LOUS/6Vkc0LPhjkmU+Y/7EWv8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=BVgSM5G+7z9Qawy9gQbFKJraZKjBAjiDfm1R95zIOJ5X4pOPySuAywjH0LVdaRzvp 7g6AayuQM2bV/shO+Ya396Ug1SG0vJU3eDvZMd5KdLD50cF7nGrKAvMPADWzEOFZYx b2MtrOqo16j1qZak7jp3aw+np3ba/KBk2iZcfMY5u+TfXlvYYZu8w9dPKwSJuzrpOf ltTc8QgEXTNvm66Ua1WM3hv/5QAx5hsHJSco1NP8lxcZmB2TQVazAmFMUcvh2OgGAR lOLvuZkt/1XihTWX+kpKu4TQEKem+UXcHOo2gH7giKCitt2BCuXqkqoAw67oh2EOgI dI5QFrH6+KxxA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4RrzvP4H0Bz6v6q; Thu, 21 Sep 2023 17:33:37 +0200 (CEST) From: =?utf-8?Q?Juan_Manuel_Mac=C3=ADas?= To: Zenny Cc: emacs-orgmode@gnu.org Subject: Re: Sanskrit/Devanagari fonts not exported to org-pdf output In-Reply-To: (Zenny's message of "Thu, 21 Sep 2023 15:46:06 +0200") References: <875y44q6gf.fsf@posteo.net> Date: Thu, 21 Sep 2023 15:33:35 +0000 Message-ID: <87wmwjpmls.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.66; envelope-from=maciaschain@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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -6.96 X-Spam-Score: -6.96 X-Migadu-Queue-Id: BBD443B2E5 X-Migadu-Scanner: mx2.migadu.com X-TUID: ejQjDkDocqtW Hi, Zenny, Zenny writes: > Where does this preamble goes to? Any example? As in your example, using latex_header keywords (replacing the polyglossia code with the babel code): #+LaTeX_Header: \usepackage[english]{babel} #+LaTeX_Header: \usepackage{fontspec} #+LaTeX_Header: \newfontscript{Devanagari}{deva} #+LaTeX_Header: \babelprovide[onchar=3Dids fonts]{sanskrit-devanagari} #+LaTeX_Header: \babelfont[sanskrit-devanagari]{rm}{Noto Sans Devanagari} > Yet I am a bit confused because the Sanskrit/Devanagari words are used > not in a whole block, but in between English sentences, eg.: With Polyglossia and babel it is necessary to enter a command that changes the language. In the case of polyglossia, if you don't explicitly switch to Sanskrit the font you declared for Sanskrit is not used, and LaTeX still thinks the text is English. Polyglossia uses some commands similar to those of babel (\selectlanguage, for long texts) and other native ones, such as \text{text}, where is the secondary language. In babel you have the command \foreignlanguage{}{text}. For example (using polyglossia): Old expression goes like \textsanskrit{=E0=A4=B8=E0=A5=8D=E0=A4=B5=E0=A4=B8= =E0=A5=8D=E0=A4=A4=E0=A4=BF =E0=A4=B8=E0=A4=A4=E0=A5=8D=E0=A4=AF=E0=A4=82 = =E0=A4=B5=E0=A4=9A=E0=A4=A4=E0=A4=BF} Of course, in org you would have to use some trick, like defining some macro (since org does not have, at the moment[1], a native language switching method): #+macro: sanskrit @@latex:\textsanskrit{@@$1@@latex:}@@ Old expression goes like {{{sanskrit(=E0=A4=B8=E0=A5=8D=E0=A4=B5=E0=A4=B8= =E0=A5=8D=E0=A4=A4=E0=A4=BF =E0=A4=B8=E0=A4=A4=E0=A5=8D=E0=A4=AF=E0=A4=82 = =E0=A4=B5=E0=A4=9A=E0=A4=A4=E0=A4=BF)}}} With LuaLaTeX, babel can associate a non latin language to a font without requiring an explicit language switch: #+LaTeX_Header: \usepackage[english]{babel} #+LaTeX_Header: \usepackage{fontspec} #+LaTeX_Header: \newfontscript{Devanagari}{deva} #+LaTeX_Header: \babelprovide[onchar=3Dids fonts]{sanskrit-devanagari} #+LaTeX_Header: \babelfont[sanskrit-devanagari]{rm}{Noto Sans Devanagari} Old expression goes like =E0=A4=B8=E0=A5=8D=E0=A4=B5=E0=A4=B8=E0=A5=8D=E0= =A4=A4=E0=A4=BF =E0=A4=B8=E0=A4=A4=E0=A5=8D=E0=A4=AF=E0=A4=82 =E0=A4=B5=E0= =A4=9A=E0=A4=A4=E0=A4=BF [1] You might be interested in this thread: https://list.orgmode.org/878r9t= 7x7y.fsf@posteo.net/