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 6IpvCRz+C2VvWAEAauVa8A:P1 (envelope-from ) for ; Thu, 21 Sep 2023 10:26:04 +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 6IpvCRz+C2VvWAEAauVa8A (envelope-from ) for ; Thu, 21 Sep 2023 10:26:04 +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 67E24446EB for ; Thu, 21 Sep 2023 10:26:03 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=gSsFXml4; 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=1695284764; a=rsa-sha256; cv=none; b=ET1o8aLGgBT/YwLMUbdgGPYY98V4h1lmZSA3hHG88WM+V6vMbk5e5hxQxE7XUS5OR0zpOh ngljN/JIhsfghvJzZ27VMcuah8iNDXy4KsIHsz8BU0wfiUVrQbbKT6LjZmaAlyQ7bh0p13 Mdo65NGEwDFj+kkfQfrdKi44qjzDtMMBos51x5wybKrhvfXM8z8FUbmsxh8F1NHaluCqee P5K5ZkZEYWBUL2xYfTPwKC6A4/NRdQQv4s8c9yECletGN9ZXSpwsNPkFSBjdkIgR8f4F5r rq2E5NLw67E1hsAEK5msCyhlwmJUadQKuIk/ycjOUL1Xm8gVoxo9MGOlnRtDCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1695284764; 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=9r0lziCYQP+vlnmMZe2EJwWY/u+pWuSoGKsxwcOW13U=; b=Q1XHuUQXsFUk81CTX4N7p/WyWaOmpRvT935UdbHBQ1mryMD2t8BgOjh9apV3Q8CyFeiQ2U 8Ll2lJirkDAW8qommYtFZjWprH6BOta46z7yAjYnpE+PBApwd1gSBCUvCAGh5vt9mvYiBU Lbknx1D2eWTUygxX/rQVNmlMz0aLs1etlsW8cCxe2jy7izh1RHdOtsFYRVWOa78mxndYBM qKkMWHb5/OlwEm7wVOAFgFZb9QIErBMvg0IIeAYtGBFpemE7kfAI5lL7lQUC7DDzp/shix JHQQ+/RRRH4xmLUKTu28QqBjYLX8SSCB4f0bQabHz7F9tQ60G36JqdIYJEP4dQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=gSsFXml4; 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 1qjEzZ-00012N-KK; Thu, 21 Sep 2023 04:24:57 -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 1qjEzY-00012F-06 for emacs-orgmode@gnu.org; Thu, 21 Sep 2023 04:24:56 -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 1qjEzV-0007Qe-SH for emacs-orgmode@gnu.org; Thu, 21 Sep 2023 04:24:55 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id B9135240106 for ; Thu, 21 Sep 2023 10:24:50 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1695284690; bh=dlDUqsqAO2iVf7YViMzTtHGCNObzNQUgbYqS84KlmEM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=gSsFXml4Y3FPr+0XqKfXT/QirjKzUzcT2uXuCM97P533AnaxFcV6YJvSCz4QhtuGZ pfKscrzi+8SSk1rf8EYoQ4SFTAGBB62LWGf+RKRQJJcUoxMBMUfafsC481ZXJDFDvR l7AmGLxjwg8Ta/cZavZUYZd+/UpeHyreqlwJWx/T3cgH35QgvYHKKfaCz8+EQ7VETU jYd50RIQ9JVwObHLJ1lVjCo0s04qjQjoASR055rYf1EkZwFi886XkrytteoDKbCt25 YiIRc9lXTdsGVPF+FYyp2H+znRPQPMQxpiX+KH9SV9bjw9EO/LXmSIWKiMaP5AOdvE mKrjdkVS4Bx+A== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4RrpNf1FLhz9rxF; Thu, 21 Sep 2023 10:24:50 +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 09:46:19 +0200") References: Date: Thu, 21 Sep 2023 08:24:48 +0000 Message-ID: <875y44q6gf.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: -7.38 X-Spam-Score: -7.38 X-Migadu-Queue-Id: 67E24446EB X-Migadu-Scanner: mx2.migadu.com X-TUID: e7ktBswV+KS5 Hi, I would recommend that you use babel, as it is the official package for language support and now has many more options than polyglossia. You can try this preamble (compiles in LuaLaTeX): \documentclass{article} \usepackage[english]{babel} \usepackage{fontspec} \newfontscript{Devanagari}{deva} \babelprovide[onchar=3Dids fonts]{sanskrit-devanagari} \babelfont[sanskrit-devanagari]{rm}{Noto Sans Devanagari} With \babelprovide... there is no need to add a \selectlanguage or other similar command. The problem with your example is that you need to put a command to select the language before the Devanagari text, like \selectlanguage{sanskrit} Best regards, Juan Manuel=20 Zenny escribi=C3=B3: > Hi, > > I tried to export to pdf with the following: > > #+LATEX_HEADER: \usepackage{polyglossia} > #+LATEX_HEADER: \usepackage{fontspec} > #+LATEX_COMPILER: xelatex (also tried with lualatex) > #+LATEX_HEADER: \setmainlanguage{english} > #+LATEX_HEADER: \setotherlanguage{sanskrit} > #+LATEX_HEADER: \newfontfamily\devanagarifont{Noto Serif > Devanagari} > > =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=20 > > but it exports alright to odt, and even pandoc exports alright > directly from org file to docx file, but the Sanskrit/Devanagari fonts > are skipped (blank) in pdf output when exported directly from org file > with C-c C-e l o. > > Already tried with the solutions provided in=20 > https://emacs.stackexchange.com/questions/27576/exporting-devanagarai-tex= t-from-org-mode-to-latex, > but there are no such options (variables defined) after 'M-x > customize-group' available. --=20 Juan Manuel Mac=C3=ADas=20 https://juanmanuelmacias.com https://lunotipia.juanmanuelmacias.com https://gnutas.juanmanuelmacias.com