From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 8JOIND2DDGXedwAAG6o9tA:P1 (envelope-from ) for ; Thu, 21 Sep 2023 19:54:06 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 8JOIND2DDGXedwAAG6o9tA (envelope-from ) for ; Thu, 21 Sep 2023 19:54:05 +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 790FA33458 for ; Thu, 21 Sep 2023 19:54:05 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b="cfw5e/1b"; dmarc=pass (policy=none) header.from=gmail.com; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1695318845; 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=QmJwVLejCrqjBHk32QTIdriKcYlDSq6VNdfbOiX6rvo=; b=EAfulG5IIN7WFEvcyLob69IgJLVPs0jj0+CeH03o8WGrDTlhwtbf72d8Fh8lsN1xtIh4Mk V8TulGdTw8c7ujeB1R+LOejkRfO8CuuPQLECPqpRwXInuomVpo2/mwn1Q7cR18+5Zf4w0L NjbeIWKFpW0sfuyOkvvx5XHToWsEgB1tMefqWQMN6ElaA0nADTBjGPbqjPISZHYHK47lHq JcUj/NHU4a4oVoDtm1ocou0io39PIDSj0spdpsOXg9LDvUeqILEqxZcWOLrTjtJ6z8YLey VPhlue8Y9LJW5kLgddTcxO3MFCgI54oPPAsadQECdc13R7yXiPfRFMHXTQsLyQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1695318845; a=rsa-sha256; cv=none; b=TMa7mvuU5bLH3D5M7hfW5bPCF4QS6OgnPVRp5ZC6MGhBEWuZ4pAWVqf/TG8YiMDUDeu33U HR62dvmKvqGkqN9QYfTVWu5gPkR8z/3jnRw3UTXhAN18yDBTndUAZ7eV5jZ9MB3adrI56f rGHQkNh1FXMk3PznB4u9PNPBmHzpoqr5j69Pq6GIT9zJ+tnojVT8EJZhY9GRySRouuWPyy Btk1vPdCVNMRBWNZatUNI+koIKZdoYp1TwI3gLvu7Q+oSatLXrPntsVu1pIv+1IQRaMxAg 1z2Rd2nhDiV7gRROeIYzY64UvRMRDYJGqrSmTmzPwjHqrD+Oon7Q/2yCXFnVqA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b="cfw5e/1b"; dmarc=pass (policy=none) header.from=gmail.com; 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" Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qjNrc-0007Zo-Hg; Thu, 21 Sep 2023 13:53:20 -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 1qjNrb-0007Ze-Iw for emacs-orgmode@gnu.org; Thu, 21 Sep 2023 13:53:19 -0400 Received: from mail-lj1-x232.google.com ([2a00:1450:4864:20::232]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qjNrZ-0002qn-6Y for emacs-orgmode@gnu.org; Thu, 21 Sep 2023 13:53:19 -0400 Received: by mail-lj1-x232.google.com with SMTP id 38308e7fff4ca-2bff7d81b5eso21576671fa.0 for ; Thu, 21 Sep 2023 10:53:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695318795; x=1695923595; 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=QmJwVLejCrqjBHk32QTIdriKcYlDSq6VNdfbOiX6rvo=; b=cfw5e/1bazZ/3VkgoNr+WJZ0yYWbOif46TYrHjT7+xAHKdex6+a6m8KlMQ+UfKs6e2 rW5VdEa5JCRfSPZ+ar6G5IQKMdh/MaqMGdpvhauDEvWgh0JN3lCVYJFWykAq6TXzQ2zl ShZAm9JTs8N8AWd0zkKx+Y3zX2Ax0DFeTw44fOdhMHCy+IouuQPC1fHf5qoNDmiDbZSp TwNhq1JEn1ddr2y1SeHfPStuc8Vw1YvAMhC+bDFnIEm2fR//idLKl8qL3qdYFx5iZDA/ WMsXycajUneeMT9b8N1lF2EOoNF8BT7r+wboztykWFpM88y9krbnZpB6bTk1ZqVOXZYl If8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695318795; x=1695923595; 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=QmJwVLejCrqjBHk32QTIdriKcYlDSq6VNdfbOiX6rvo=; b=cDvZ06RW3zNxoCdSYzRs+pby64a0EGi2RpLNqTsPGAOG1SuOM1JelWBr18XSRbAWxY 7NCYKjBJhEctDolbI8JDKW0Bb24x4KN+TfEMVp6b2eKZUi0cDeSfkB633ZWm7Z3bLaii T8kkcajo78icYpFkGrzkKtnoFFvSLkQw/ga8GYDF9Zz/NbappFZ6k/fbCzSzQZYN9ufe dNxmNUT5dE2B1QoU+Iwcqzi0jeBToR6VROTOG6eisI+4ckl4yofdlOOrZOiKDxMLT8Yv VM0k2UXtkAxsHNIX3MsaL9urf4WKnWGvL35uyOc1Ti1aS2GT+u2i5aHUIPUF7BcJNIDg 7t7Q== X-Gm-Message-State: AOJu0Yz6wisrq9b3X19lTDTRp6KaeGCEmFUj/0excAub8xPWyybqcFN5 R83a2RTQKjDoMNvTf6ixkfyBIK+Jyreoek0MLZ0= X-Google-Smtp-Source: AGHT+IEokhp0ic8o3pJd+bA5E5pm25HtFYN5SjpCymmghOcoSJwwpM2khDH3Bj8Zc2BkP0P2cugBBOSohokot5KVeps= X-Received: by 2002:a2e:910e:0:b0:2bc:efa4:2c36 with SMTP id m14-20020a2e910e000000b002bcefa42c36mr5929616ljg.11.1695318794343; Thu, 21 Sep 2023 10:53:14 -0700 (PDT) MIME-Version: 1.0 References: <875y44q6gf.fsf@posteo.net> <87wmwjpmls.fsf@posteo.net> In-Reply-To: <87wmwjpmls.fsf@posteo.net> From: Zenny Date: Thu, 21 Sep 2023 19:53:02 +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="00000000000084990a0605e22a18" Received-SPF: pass client-ip=2a00:1450:4864:20::232; envelope-from=garbytrash@gmail.com; helo=mail-lj1-x232.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.58 X-Spam-Score: -9.58 X-Migadu-Queue-Id: 790FA33458 X-Migadu-Scanner: mx0.migadu.com X-TUID: KocRd8ivLKye --00000000000084990a0605e22a18 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Juan, On Thu, Sep 21, 2023 at 5:33=E2=80=AFPM Juan Manuel Mac=C3=ADas wrote: > 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} > With above code for LuaLaTeX, I have also appended: #+LATEX_COMPILER: lualatex even after specifying the LaTeX compiler to lualatex a report that says, the compiler seems to use pdflatex: ! Fatal Package fontspec Error: The fontspec package requires either XeTeX > or > (fontspec) LuaTeX. > (fontspec) > (fontspec) You must change your typesetting engine t= o, > (fontspec) e.g., "xelatex" or "lualatex" instead of > (fontspec) "latex" or "pdflatex". > > Type to continue. > ... > > l.45 \msg_fatal:nn {fontspec} {cannot-use-pdftex} > Entire texlive packages are installed and lualatex binary is at: $ which lualatex > /opt/texlive/2023/bin/x86_64-linux/lualatex > Thanks for your attention! /z > 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/878r9t7x7y.fsf@posteo.net/ > --=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. -.. .. ... -.-. .-.. .- .. -- . .-. | -.. .. ... -.-. .-.. .- .. -- . .-. --00000000000084990a0605e22a18 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Juan,

On Thu, Sep 21, 2023 at 5:33= =E2=80=AFPM Juan Manuel Mac=C3=ADas <maciaschain@posteo.net> wrote:
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<lang>{text}, where <lang> is t= he
secondary language. In babel you have the command
\foreignlanguage{<lang>}{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}

With above code for LuaLaTeX, I have als= o appended:

#+LATEX_COMPILER: lualatex
<= br>
even after specifying the LaTeX compiler to lualatex a report= that says, the compiler seems to use pdflatex:

! Fatal Package fontspec Er= ror: The fontspec package requires either XeTeX or
(fontspec) =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0LuaTeX.(fontspec) =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0
(fontspec) =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0You must change your typesetting engine to,<= br>(fontspec) =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0e.g., "xelatex" or "lualatex" instead = of
(fontspec) =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0"latex" or "pdflatex".

Type = <return> to continue.
=C2=A0... =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0
=C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0
l.45 \msg_fatal:nn {fontspec} {cannot-use-pdftex}
=C2=A0
Entire texlive packages are installed and lua= latex binary is at:

$ which lualatex
/opt/texlive/2023/bin/x86_64-linux/= lualatex

Thanks for your attention!
/z


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/878r9t7x7y.fsf@posteo.net/


--
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.
-.. .. ... -.-. .-.. = .- .. -- . .-. | -.. .. ... -.-. .-.. .- .. -- . .-.
=
--00000000000084990a0605e22a18--