From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 +HaUAWRJDGV7YQEA9RJhRA:P1 (envelope-from ) for ; Thu, 21 Sep 2023 15:47:16 +0200 Received: from aspmx1.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id +HaUAWRJDGV7YQEA9RJhRA (envelope-from ) for ; Thu, 21 Sep 2023 15:47:16 +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 9DDE95D5A4 for ; Thu, 21 Sep 2023 15:47:15 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=nZOEGfkv; 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=gmail.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1695304036; a=rsa-sha256; cv=none; b=q20ULE+iSAVDafotmn+dyPBUQ6xLh+/gRJi6kOQxj6YLRjHMyCSsAsvwqSfwnNxuITes1r 1JWgYXoZqgBWxLdZpOj7TfzC0KoRvx8pHrLXVfHYTGzCp1pZWs/XQT1PXKw4j5zK1asSOK QcY0YAr9yY4fjkO/7vD2vXIIQWoU5bZ7/Kaozt1sn3g9tuCBYIhKIWK38cG6bBFzD6OSkD nuekGOg+5a1Oe1qEM+QN7BqO14IlkAWqzyD5i2PusjFbZltEkqDAFiR6Qqn8dCGKkZ5gk7 j64GBT3BGvvUQZFz9BypYfMduQMksaPmRWE8iJuT43zQTJuKtZZ5QWyH/LopUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1695304036; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=0mLGpB6WuGPdqOBjpJ+oNj14/XHyNzvK1FKJPei0O+0=; b=Gdae5sMLnMd/YaJl18bSINZxaTrwlqZd9FFDJNxhNtV/6i8HhVz7YnkjNnQTlMLjEA8yi2 2MU2DWLUKJuvPU+VO02/TSFuooRJ85MddAENBJmpGXSV7tv+YHX6F+8JNAznYkhBSdRDXu 73AGvGnG5cMaaebkwGBazKLUsGZYY02iWN680t79sQifJzJpR6h/jqnCdFuqqMUMNXO4NB GV0cUEMj52qpbDbmPxpSBQFLTXU3Xnhx0dPgYRCD5OIRPKCPZEIBzLmA8raq8Y7ukHxM7O gWwEA1XXOlewUp+0Ajzh3dHiN36mKd2yqqRHoOvXYdtKvp7ot9wvseIsLXPJ0w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=nZOEGfkv; 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=gmail.com Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qjK0d-0002cY-Ev; Thu, 21 Sep 2023 09:46:23 -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 1qjK0c-0002cQ-CG for emacs-orgmode@gnu.org; Thu, 21 Sep 2023 09:46:22 -0400 Received: from mail-lj1-x236.google.com ([2a00:1450:4864:20::236]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qjK0Z-0003R6-Vf for emacs-orgmode@gnu.org; Thu, 21 Sep 2023 09:46:21 -0400 Received: by mail-lj1-x236.google.com with SMTP id 38308e7fff4ca-2c137f74b23so88951fa.3 for ; Thu, 21 Sep 2023 06:46:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695303978; x=1695908778; darn=gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=0mLGpB6WuGPdqOBjpJ+oNj14/XHyNzvK1FKJPei0O+0=; b=nZOEGfkvzAjCwOPHriMi+dUe5gqcJmIFpafJchziuYrpA7rFwRYx06KaTWLldWUim3 dVFDhShXHgVp4bJ+TbBoxApAPoB5khTO+xSnUUrnzwwoSHkzyxipQZZjt/lJzb0zDZab KiNOEYxu0XcGJBi+igiHO5cwDbttYQLD9Dhab9+CJ+8EYd3u22IXgAzcrZYQ7QBLOrxZ T67seFAOMQCpO1igw0aG8iDwb1hPm8xT31w6TQe2UmiTrqNO8HKbaPEQ+Fn03+t8EnGD 2n9/h8Qt4+sqidG48TYkVxTYyepO+jqXLj8uXs+cMCreWsF3UGYfS9VHIEjCBEOoW8OY 9pig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695303978; x=1695908778; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=0mLGpB6WuGPdqOBjpJ+oNj14/XHyNzvK1FKJPei0O+0=; b=Hkh8kNnTQPb6X4tX4RlSgWNfZSvPFf7BxX81w5E8r0nhlohQzC6djLZ2b3drazc0cv uQ/efboLhKT0RIvhfBZgBlHMtIwgko0psQojXhMP2LWKBsvk4qlu2VvLX5m1MwU3eZw9 V8rVT3BAqRU/7AAavn34niEjUexUcJ1BWAgiHMWpYTyggtNFuCMMNE+Fprk+sEQ+eYcx /3sj0CIHtKStFUsOMzKi8wIRlCTWfpMYj4+cnu2PR8AkojiCz42C1LgoLO+XlDxcwDDI vbuuN7CjJ7/H7twkGvsY2MWDhKBpm5aVQVHhY7+PY1EMdgNOzC8gcPNfsungGRva63hb qLgg== X-Gm-Message-State: AOJu0YxCTXt0wAMMISffcVSAh+c6OKd6iPH+zRbYPbpJonsIXLMjtQtW 4N9CiginKbNSZ4PGZfGYdhZy+TcPSoHF/PvlIB2qP9wZawU= X-Google-Smtp-Source: AGHT+IHGysCt5QzaLPIb7Wi2BX1N1H5wS19ROHLSbtWgQUj0Dca0YNFTrgSFzMXh2EOabZL96egESKuH92bi1IRd9hs= X-Received: by 2002:a2e:3c07:0:b0:2b9:55c9:c228 with SMTP id j7-20020a2e3c07000000b002b955c9c228mr4636935lja.27.1695303977544; Thu, 21 Sep 2023 06:46:17 -0700 (PDT) MIME-Version: 1.0 References: <875y44q6gf.fsf@posteo.net> In-Reply-To: <875y44q6gf.fsf@posteo.net> From: Zenny Date: Thu, 21 Sep 2023 15:46:06 +0200 Message-ID: Subject: Re: Sanskrit/Devanagari fonts not exported to org-pdf output To: =?UTF-8?Q?Juan_Manuel_Mac=C3=ADas?= Cc: emacs-orgmode@gnu.org Content-Type: multipart/alternative; boundary="0000000000005e329b0605deb78c" Received-SPF: pass client-ip=2a00:1450:4864:20::236; envelope-from=garbytrash@gmail.com; helo=mail-lj1-x236.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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: -9.52 X-Spam-Score: -9.52 X-Migadu-Queue-Id: 9DDE95D5A4 X-Migadu-Scanner: mx2.migadu.com X-TUID: 6mWbSmqd01nw --0000000000005e329b0605deb78c Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thanks Juan for prompt response, my replies inline below: On Thu, Sep 21, 2023 at 10:24=E2=80=AFAM Juan Manuel Mac=C3=ADas wrote: > 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. Thanks for the pointer and explanation. > 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} > Where does this preamble goes to? Any example? > > 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} > Yet I am a bit confused because the Sanskrit/Devanagari words are used not in a whole block, but in between English sentences, eg.: 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 (meaning 'Always tell the truth > with positive vibes') where =E0=A4=B8=E0=A5=8D=E0=A4=B5=E0=A4=B8=E0=A5=8D= =E0=A4=A4=E0=A4=BF means positive, =E0=A4=B8=E0=A4=A4=E0=A5=8D=E0=A4=AF=E0= =A4=82 means truth and > =E0=A4=B5=E0=A4=9A=E0=A4=A4=E0=A4=BF means tell or speak out. > Any example would be appreciated for pdf export. Thanks again. > Best regards, > > Juan Manuel > > 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 > > > > 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 > > > 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. > > -- > Juan Manuel Mac=C3=ADas > > https://juanmanuelmacias.com > > https://lunotipia.juanmanuelmacias.com > > https://gnutas.juanmanuelmacias.com > > > --=20 Cheers, /z -.. .. ... -.-. .-.. .- .. -- . .-. | -.. .. ... -.-. .-.. .- .. -- . .-. CONFIDENTIALITY NOTICE AND DISCLAIMER: Access to this e-mail and its contents by anyone other than the intended recipient is unauthorized as it contains privileged and confidential information, and is subject to legal privilege. Please do not re/distribute it. If you are not the intended recipient (or responsible for delivery of the message to such person), you may not use, copy, distribute or deliver the email and part of its contents to anyone this message (or any part of its contents or take any action in connection to it. In such case, you should destroy this message, and notify the sender immediately. If you have received this email in error, please notify the sender or your sysadmin immediately by e-mail or telephone, and delete the e-mail from any computer. If you or your employer does not consent to internet e-mail messages of this kind, please notify the sender immediately. All reasonable precautions have been taken to ensure no viruses are present in this e-mail and attachments included. As the sender cannot accept responsibility for any loss or damage arising from the use of this e-mail or attachments it is recommended that you are responsible to follow your virus checking procedures prior to use. The views, opinions, conclusions and other informations expressed in this electronic mail are not given or endorsed by any company including the network providers unless otherwise indicated by an authorized representative independent of this message. -.. .. ... -.-. .-.. .- .. -- . .-. | -.. .. ... -.-. .-.. .- .. -- . .-. --0000000000005e329b0605deb78c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thanks Juan for prompt respons= e, my replies inline below:

On Thu, Sep 21, 2023 at 10:24=E2= =80=AFAM Juan Manuel Mac=C3=ADas <maciaschain@posteo.net> wrote:
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.

Thanks for the pointer and explanation.
=C2=A0
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}
<= div>
Where does this preamble goes to? Any example?
=
=C2=A0

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}

Yet I am a bi= t confused because the Sanskrit/Devanagari words are used not in a whole bl= ock, but in between English sentences, eg.:

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 (= meaning 'Always tell the truth with positive vibes') where =E0=A4= =B8=E0=A5=8D=E0=A4=B5=E0=A4=B8=E0=A5=8D=E0=A4=A4=E0=A4=BF means positive, = =E0=A4=B8=E0=A4=A4=E0=A5=8D=E0=A4=AF=E0=A4=82 means truth and =E0=A4=B5=E0= =A4=9A=E0=A4=A4=E0=A4=BF means tell or speak out.

=C2=A0Any example would be appreciated for pdf export. Tha= nks again.


Best regards,

Juan Manuel

Zenny <garbytr= ash@gmail.com> escribi=C3=B3:

> Hi,
>
> I tried to export to pdf with the following:
>
>=C2=A0 =C2=A0 =C2=A0#+LATEX_HEADER: \usepackage{polyglossia}
>=C2=A0 =C2=A0 =C2=A0#+LATEX_HEADER: \usepackage{fontspec}
>=C2=A0 =C2=A0 =C2=A0#+LATEX_COMPILER: xelatex (also tried with lualatex= )
>=C2=A0 =C2=A0 =C2=A0#+LATEX_HEADER:=C2=A0 \setmainlanguage{english}
>=C2=A0 =C2=A0 =C2=A0#+LATEX_HEADER:=C2=A0 \setotherlanguage{sanskrit} >=C2=A0 =C2=A0 =C2=A0#+LATEX_HEADER:=C2=A0 =C2=A0\newfontfamily\devanaga= rifont{Noto Serif
>=C2=A0 =C2=A0 =C2=A0Devanagari}
>
>=C2=A0 =C2=A0 =C2=A0=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
>
> 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
> 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.

--
Juan Manuel Mac=C3=ADas

https://juanmanuelmacias.com

https://lunotipia.juanmanuelmacias.com

https://gnutas.juanmanuelmacias.com




--
Cheers,
/z

-.. .. ... -.-. .-.. .- .. -- .= .-. | -.. .. ... -.-. .-.. .- .. -- . .-.
CONFIDENTIALITY NOTICE= AND DISCLAIMER: Access to this e-mail and its contents by anyone other tha= n the intended recipient is unauthorized as it contains privileged and conf= idential information, and is subject to legal privilege. Please do not re/d= istribute it.=C2=A0 If you are not the intended recipient (or responsible f= or delivery of the message to such person), you may not use, copy, distribu= te or deliver the email and part of its contents to anyone this message (or= any part of its contents or take any action in connection to it. In such c= ase, you should destroy this message, and notify the sender immediately. If= you have received this email in error, please notify the sender or your sy= sadmin immediately by e-mail or telephone, and delete the e-mail from any c= omputer. If you or your employer does not consent to internet e-mail messag= es of this kind, please notify the sender immediately. All reasonable preca= utions have been taken to ensure no viruses are present in this e-mail and = attachments included. As the sender=C2=A0 cannot accept responsibility for = any loss or damage arising from the use of this e-mail or attachments it is= recommended that you are responsible to follow your virus checking procedu= res prior to use. The views, opinions, conclusions and other informations e= xpressed in this electronic mail are not given or endorsed by any company i= ncluding the network providers unless otherwise indicated by an authorized = representative independent of this message.
-.. .. ... -.-. .-.. = .- .. -- . .-. | -.. .. ... -.-. .-.. .- .. -- . .-.
=
--0000000000005e329b0605deb78c--