emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Sanskrit/Devanagari fonts not exported to org-pdf output
@ 2023-09-21  7:46 Zenny
  2023-09-21  8:24 ` Juan Manuel Macías
  0 siblings, 1 reply; 29+ messages in thread
From: Zenny @ 2023-09-21  7:46 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 907 bytes --]

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}
>
> स्वस्ति सत्यं वचति
>

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-text-from-org-mode-to-latex,
but there are no such options (variables defined) after 'M-x
customize-group' available.
-- 
Cheers,
/z

[-- Attachment #2: Type: text/html, Size: 1541 bytes --]

^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: Sanskrit/Devanagari fonts not exported to org-pdf output
  2023-09-21  7:46 Sanskrit/Devanagari fonts not exported to org-pdf output Zenny
@ 2023-09-21  8:24 ` Juan Manuel Macías
  2023-09-21 13:46   ` Zenny
  0 siblings, 1 reply; 29+ messages in thread
From: Juan Manuel Macías @ 2023-09-21  8:24 UTC (permalink / raw)
  To: Zenny; +Cc: emacs-orgmode

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=ids 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 

Zenny <garbytrash@gmail.com> escribió:

> 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}
>
>     स्वस्ति सत्यं वचति 
>
> 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-text-from-org-mode-to-latex,
> but there are no such options (variables defined) after 'M-x
> customize-group' available.

-- 
Juan Manuel Macías 

https://juanmanuelmacias.com

https://lunotipia.juanmanuelmacias.com

https://gnutas.juanmanuelmacias.com




^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: Sanskrit/Devanagari fonts not exported to org-pdf output
  2023-09-21  8:24 ` Juan Manuel Macías
@ 2023-09-21 13:46   ` Zenny
  2023-09-21 15:33     ` Juan Manuel Macías
  0 siblings, 1 reply; 29+ messages in thread
From: Zenny @ 2023-09-21 13:46 UTC (permalink / raw)
  To: Juan Manuel Macías; +Cc: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 4344 bytes --]

Thanks Juan for prompt response, my replies inline below:

On Thu, Sep 21, 2023 at 10:24 AM Juan Manuel Macías <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.


> You can
> try this preamble (compiles in LuaLaTeX):
>
> \documentclass{article}
> \usepackage[english]{babel}
> \usepackage{fontspec}
> \newfontscript{Devanagari}{deva}
> \babelprovide[onchar=ids 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 स्वस्ति सत्यं वचति (meaning 'Always tell the truth
> with positive vibes') where स्वस्ति means positive, सत्यं means truth and
> वचति means tell or speak out.
>

 Any example would be appreciated for pdf export. Thanks again.


> Best regards,
>
> Juan Manuel
>
> Zenny <garbytrash@gmail.com> escribió:
>
> > 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}
> >
> >     स्वस्ति सत्यं वचति
> >
> > 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-text-from-org-mode-to-latex
> ,
> > but there are no such options (variables defined) after 'M-x
> > customize-group' available.
>
> --
> Juan Manuel Macías
>
> 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 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.
-.. .. ... -.-. .-.. .- .. -- . .-. | -.. .. ... -.-. .-.. .- .. -- . .-.

[-- Attachment #2: Type: text/html, Size: 6318 bytes --]

^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: Sanskrit/Devanagari fonts not exported to org-pdf output
  2023-09-21 13:46   ` Zenny
@ 2023-09-21 15:33     ` Juan Manuel Macías
  2023-09-21 17:53       ` Zenny
  0 siblings, 1 reply; 29+ messages in thread
From: Juan Manuel Macías @ 2023-09-21 15:33 UTC (permalink / raw)
  To: Zenny; +Cc: emacs-orgmode

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=ids 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 the
secondary language. In babel you have the command
\foreignlanguage{<lang>}{text}. For example (using polyglossia):

Old expression goes like \textsanskrit{स्वस्ति सत्यं वचति}

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(स्वस्ति सत्यं वचति)}}}

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=ids fonts]{sanskrit-devanagari}
#+LaTeX_Header: \babelfont[sanskrit-devanagari]{rm}{Noto Sans Devanagari}

Old expression goes like स्वस्ति सत्यं वचति

[1] You might be interested in this thread: https://list.orgmode.org/878r9t7x7y.fsf@posteo.net/


^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: Sanskrit/Devanagari fonts not exported to org-pdf output
  2023-09-21 15:33     ` Juan Manuel Macías
@ 2023-09-21 17:53       ` Zenny
  2023-09-21 18:28         ` Juan Manuel Macías
  0 siblings, 1 reply; 29+ messages in thread
From: Zenny @ 2023-09-21 17:53 UTC (permalink / raw)
  To: Juan Manuel Macías; +Cc: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 4828 bytes --]

Hi Juan,

On Thu, Sep 21, 2023 at 5:33 PM Juan Manuel Macías <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=ids 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 the
> secondary language. In babel you have the command
> \foreignlanguage{<lang>}{text}. For example (using polyglossia):
>
> Old expression goes like \textsanskrit{स्वस्ति सत्यं वचति}
>
> 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(स्वस्ति सत्यं वचति)}}}
>
> 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=ids 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 to,
> (fontspec)                      e.g., "xelatex" or "lualatex" instead of
> (fontspec)                      "latex" or "pdflatex".
>
> Type <return> 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 स्वस्ति सत्यं वचति
>
> [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 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.
-.. .. ... -.-. .-.. .- .. -- . .-. | -.. .. ... -.-. .-.. .- .. -- . .-.

[-- Attachment #2: Type: text/html, Size: 6485 bytes --]

^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: Sanskrit/Devanagari fonts not exported to org-pdf output
  2023-09-21 17:53       ` Zenny
@ 2023-09-21 18:28         ` Juan Manuel Macías
  2023-09-21 18:44           ` Zenny
  0 siblings, 1 reply; 29+ messages in thread
From: Juan Manuel Macías @ 2023-09-21 18:28 UTC (permalink / raw)
  To: Zenny; +Cc: emacs-orgmode

Zenny writes:

> 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 to,
>     (fontspec)                      e.g., "xelatex" or "lualatex"
>     instead of
>     (fontspec)                      "latex" or "pdflatex".
>
>     Type <return> 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

Can you please show here the value of 'org-latex-pdf-process'?

(M-x describe-variable RET org-latex-pdf-process RET)

Best regards,

Juan Manuel 

-- 
Juan Manuel Macías 

https://juanmanuelmacias.com

https://lunotipia.juanmanuelmacias.com

https://gnutas.juanmanuelmacias.com




^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: Sanskrit/Devanagari fonts not exported to org-pdf output
  2023-09-21 18:28         ` Juan Manuel Macías
@ 2023-09-21 18:44           ` Zenny
  2023-09-21 19:32             ` Juan Manuel Macías
  0 siblings, 1 reply; 29+ messages in thread
From: Zenny @ 2023-09-21 18:44 UTC (permalink / raw)
  To: Juan Manuel Macías; +Cc: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 4891 bytes --]

On Thu, Sep 21, 2023 at 8:28 PM Juan Manuel Macías <maciaschain@posteo.net>
wrote:

> Zenny writes:
>
> > 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 to,
> >     (fontspec)                      e.g., "xelatex" or "lualatex"
> >     instead of
> >     (fontspec)                      "latex" or "pdflatex".
> >
> >     Type <return> 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
>
> Can you please show here the value of 'org-latex-pdf-process'?
>
> (M-x describe-variable RET org-latex-pdf-process RET)
>

Here it comes:

org-latex-pdf-process is a variable defined in ‘ox-latex.el’.
>
> Its value is
> ("pdflatex -interaction nonstopmode -output-directory %o %f" "bibtex %b"
> "pdflatex -shell-escape -interaction nonstopmode -output-directory %o %f"
> "pdflatex -shell-escape -interaction nonstopmode -output-directory %o %f")
> Original value was
> ("latexmk -f -pdf -%latex -interaction=nonstopmode -output-directory=%o
> %f")
>
> Commands to process a LaTeX file to a PDF file.
>
> The command output will be parsed to extract compilation errors and
> warnings according to ‘org-latex-known-warnings’.
>
> This is a list of strings, each of them will be given to the
> shell as a command.  %f in the command will be replaced by the
> relative file name, %F by the absolute file name, %b by the file
> base name (i.e. without directory and extension parts), %o by the
> base directory of the file, %O by the absolute file name of the
> output file, %latex is the LaTeX compiler (see
> ‘org-latex-compiler’), and %bib is the BibTeX-like compiler (see
> ‘org-latex-bib-compiler’).
>
> The reason why this is a list is that it usually takes several
> runs of ‘pdflatex’, maybe mixed with a call to ‘bibtex’.  Org
> does not have a clever mechanism to detect which of these
> commands have to be run to get to a stable result, and it also
> does not do any error checking.
>
> Consider a smart LaTeX compiler such as ‘texi2dvi’ or ‘latexmk’,
> which calls the "correct" combinations of auxiliary programs.
>
> Alternatively, this may be a Lisp function that does the
> processing, so you could use this to apply the machinery of
> AUCTeX or the Emacs LaTeX mode.  This function should accept the
> file name as its single argument.
>
>   You can customize this variable.
>

Thanks!


> Best regards,
>
> Juan Manuel
>
> --
> Juan Manuel Macías
>
> 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 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.
-.. .. ... -.-. .-.. .- .. -- . .-. | -.. .. ... -.-. .-.. .- .. -- . .-.

[-- Attachment #2: Type: text/html, Size: 6618 bytes --]

^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: Sanskrit/Devanagari fonts not exported to org-pdf output
  2023-09-21 18:44           ` Zenny
@ 2023-09-21 19:32             ` Juan Manuel Macías
  2023-09-21 20:26               ` Zenny
  0 siblings, 1 reply; 29+ messages in thread
From: Juan Manuel Macías @ 2023-09-21 19:32 UTC (permalink / raw)
  To: Zenny; +Cc: emacs-orgmode

Zenny writes:

> Here it comes:
>
>     org-latex-pdf-process is a variable defined in ‘ox-latex.el’.
>
>     Its value is
>     ("pdflatex -interaction nonstopmode -output-directory %o %f"
>     "bibtex %b" "pdflatex -shell-escape -interaction nonstopmode -
>     output-directory %o %f" "pdflatex -shell-escape -interaction
>     nonstopmode -output-directory %o %f")
>     Original value was 
>     ("latexmk -f -pdf -%latex -interaction=nonstopmode -
>     output-directory=%o %f")

It seems that you have modified the original value. Besides, the
docstring says:

[...] %latex is the LaTeX compiler (see ‘org-latex-compiler’) [...]

If you put 'pdflatex ...', it will always compile with pdflatex.

I would recommend that you restore the original value of
org-latex-pdf-process, which uses latexmk (if it is installed, which
seems to be your case), which executes '%latex' (=
`org-latex-compiler'). latexmk is a perl script included in texlive that
is responsible for executing all the necessary compilations (including
the call to the bibliographic engine[1]).

[1] In some cases some configuration is required for latexmk via a
~/latexmkrc file, but by default everything should work fine.




^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: Sanskrit/Devanagari fonts not exported to org-pdf output
  2023-09-21 19:32             ` Juan Manuel Macías
@ 2023-09-21 20:26               ` Zenny
  2023-09-21 20:39                 ` Zenny
  0 siblings, 1 reply; 29+ messages in thread
From: Zenny @ 2023-09-21 20:26 UTC (permalink / raw)
  To: Juan Manuel Macías; +Cc: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 3731 bytes --]

On Thu, Sep 21, 2023 at 9:32 PM Juan Manuel Macías <maciaschain@posteo.net>
wrote:

> Zenny writes:
>
> > Here it comes:
> >
> >     org-latex-pdf-process is a variable defined in ‘ox-latex.el’.
> >
> >     Its value is
> >     ("pdflatex -interaction nonstopmode -output-directory %o %f"
> >     "bibtex %b" "pdflatex -shell-escape -interaction nonstopmode -
> >     output-directory %o %f" "pdflatex -shell-escape -interaction
> >     nonstopmode -output-directory %o %f")
> >     Original value was
> >     ("latexmk -f -pdf -%latex -interaction=nonstopmode -
> >     output-directory=%o %f")
>
> It seems that you have modified the original value. Besides, the
> docstring says:
>
> [...] %latex is the LaTeX compiler (see ‘org-latex-compiler’) [...]
>
> If you put 'pdflatex ...', it will always compile with pdflatex.
>
> I would recommend that you restore the original value of
> org-latex-pdf-process, which uses latexmk (if it is installed, which
> seems to be your case), which executes '%latex' (=
> `org-latex-compiler'). latexmk is a perl script included in texlive that
> is responsible for executing all the necessary compilations (including
> the call to the bibliographic engine[1]).
>

When I checked the `ox-latex.el` it appears using latexmk

 (defcustom org-latex-pdf-process
>   (if (executable-find "latexmk")
>       '("latexmk -f -pdf -%latex -interaction=nonstopmode
> -output-directory=%o %f")
>     '("%latex -interaction nonstopmode -output-directory %o %f"
>       "%latex -interaction nonstopmode -output-directory %o %f"
>       "%latex -interaction nonstopmode -output-directory %o %f"))
>   "Commands to process a LaTeX file to a PDF file.
>

And latexmk is already installed by texlive:

 $ which latexmk
> /opt/texlive/2023/bin/x86_64-linux/latexmk
>


Or do you mean to change latexmk in init.el?

Thanks!

>
> [1] In some cases some configuration is required for latexmk via a
> ~/latexmkrc file, but by default everything should work fine.
>
>
>

-- 
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.
-.. .. ... -.-. .-.. .- .. -- . .-. | -.. .. ... -.-. .-.. .- .. -- . .-.

[-- Attachment #2: Type: text/html, Size: 5111 bytes --]

^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: Sanskrit/Devanagari fonts not exported to org-pdf output
  2023-09-21 20:26               ` Zenny
@ 2023-09-21 20:39                 ` Zenny
  2023-09-21 20:41                   ` Zenny
  0 siblings, 1 reply; 29+ messages in thread
From: Zenny @ 2023-09-21 20:39 UTC (permalink / raw)
  To: Juan Manuel Macías; +Cc: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 6054 bytes --]

On Thu, Sep 21, 2023 at 10:26 PM Zenny <garbytrash@gmail.com> wrote:

>
> On Thu, Sep 21, 2023 at 9:32 PM Juan Manuel Macías <maciaschain@posteo.net>
> wrote:
>
>> Zenny writes:
>>
>> > Here it comes:
>> >
>> >     org-latex-pdf-process is a variable defined in ‘ox-latex.el’.
>> >
>> >     Its value is
>> >     ("pdflatex -interaction nonstopmode -output-directory %o %f"
>> >     "bibtex %b" "pdflatex -shell-escape -interaction nonstopmode -
>> >     output-directory %o %f" "pdflatex -shell-escape -interaction
>> >     nonstopmode -output-directory %o %f")
>> >     Original value was
>> >     ("latexmk -f -pdf -%latex -interaction=nonstopmode -
>> >     output-directory=%o %f")
>>
>> It seems that you have modified the original value. Besides, the
>> docstring says:
>>
>> [...] %latex is the LaTeX compiler (see ‘org-latex-compiler’) [...]
>>
>> If you put 'pdflatex ...', it will always compile with pdflatex.
>>
>
Does `#+LATEX_COMPILER: lualatex` makes no difference?


>
>> I would recommend that you restore the original value of
>> org-latex-pdf-process, which uses latexmk (if it is installed, which
>> seems to be your case), which executes '%latex' (=
>> `org-latex-compiler'). latexmk is a perl script included in texlive that
>> is responsible for executing all the necessary compilations (including
>> the call to the bibliographic engine[1]).
>>
>
> When I checked the `ox-latex.el` it appears using latexmk
>
>  (defcustom org-latex-pdf-process
>>   (if (executable-find "latexmk")
>>       '("latexmk -f -pdf -%latex -interaction=nonstopmode
>> -output-directory=%o %f")
>>     '("%latex -interaction nonstopmode -output-directory %o %f"
>>       "%latex -interaction nonstopmode -output-directory %o %f"
>>       "%latex -interaction nonstopmode -output-directory %o %f"))
>>   "Commands to process a LaTeX file to a PDF file.
>>
>
> And latexmk is already installed by texlive:
>
>  $ which latexmk
>> /opt/texlive/2023/bin/x86_64-linux/latexmk
>>
>
>
> Or do you mean to change latexmk in init.el?
>

I do see in init.el that it has been changed to something like:

(setq org-latex-pdf-process
>       '("pdflatex -interaction nonstopmode -output-directory %o %f"
>          "bibtex %b"
>         "pdflatex -shell-escape -interaction nonstopmode -output-directory
> %o %f"
>         "pdflatex -shell-escape -interaction nonstopmode -output-directory
> %o %f"))
>


> Thanks!
>
>>
>> [1] In some cases some configuration is required for latexmk via a
>> ~/latexmkrc file, but by default everything should work fine.
>>
>>
>>
>
> --
> 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.
> -.. .. ... -.-. .-.. .- .. -- . .-. | -.. .. ... -.-. .-.. .- .. -- . .-.
>
>

-- 
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.
-.. .. ... -.-. .-.. .- .. -- . .-. | -.. .. ... -.-. .-.. .- .. -- . .-.

[-- Attachment #2: Type: text/html, Size: 8681 bytes --]

^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: Sanskrit/Devanagari fonts not exported to org-pdf output
  2023-09-21 20:39                 ` Zenny
@ 2023-09-21 20:41                   ` Zenny
  2023-09-21 21:19                     ` Juan Manuel Macías
  0 siblings, 1 reply; 29+ messages in thread
From: Zenny @ 2023-09-21 20:41 UTC (permalink / raw)
  To: Juan Manuel Macías; +Cc: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 8430 bytes --]

On Thu, Sep 21, 2023 at 10:39 PM Zenny <garbytrash@gmail.com> wrote:

>
> On Thu, Sep 21, 2023 at 10:26 PM Zenny <garbytrash@gmail.com> wrote:
>
>>
>> On Thu, Sep 21, 2023 at 9:32 PM Juan Manuel Macías <
>> maciaschain@posteo.net> wrote:
>>
>>> Zenny writes:
>>>
>>> > Here it comes:
>>> >
>>> >     org-latex-pdf-process is a variable defined in ‘ox-latex.el’.
>>> >
>>> >     Its value is
>>> >     ("pdflatex -interaction nonstopmode -output-directory %o %f"
>>> >     "bibtex %b" "pdflatex -shell-escape -interaction nonstopmode -
>>> >     output-directory %o %f" "pdflatex -shell-escape -interaction
>>> >     nonstopmode -output-directory %o %f")
>>> >     Original value was
>>> >     ("latexmk -f -pdf -%latex -interaction=nonstopmode -
>>> >     output-directory=%o %f")
>>>
>>> It seems that you have modified the original value. Besides, the
>>> docstring says:
>>>
>>> [...] %latex is the LaTeX compiler (see ‘org-latex-compiler’) [...]
>>>
>>> If you put 'pdflatex ...', it will always compile with pdflatex.
>>>
>>
> Does `#+LATEX_COMPILER: lualatex` makes no difference?
>

I also tried with:

(setq org-latex-pdf-process
>       (if (executable-find "latexmk")
>           '("latexmk -interaction nonstopmode -output-directory %o %f")
>          "bibtex %b"
>      '("%latex -interaction nonstopmode -output-directory %o %f"
>       "%latex -interaction nonstopmode -output-directory %o %f"
>       "%latex -interaction nonstopmode -output-directory %o %f"))
>

but it did not produce any pdf at all.


>
>
>>
>>> I would recommend that you restore the original value of
>>> org-latex-pdf-process, which uses latexmk (if it is installed, which
>>> seems to be your case), which executes '%latex' (=
>>> `org-latex-compiler'). latexmk is a perl script included in texlive that
>>> is responsible for executing all the necessary compilations (including
>>> the call to the bibliographic engine[1]).
>>>
>>
>> When I checked the `ox-latex.el` it appears using latexmk
>>
>>  (defcustom org-latex-pdf-process
>>>   (if (executable-find "latexmk")
>>>       '("latexmk -f -pdf -%latex -interaction=nonstopmode
>>> -output-directory=%o %f")
>>>     '("%latex -interaction nonstopmode -output-directory %o %f"
>>>       "%latex -interaction nonstopmode -output-directory %o %f"
>>>       "%latex -interaction nonstopmode -output-directory %o %f"))
>>>   "Commands to process a LaTeX file to a PDF file.
>>>
>>
>> And latexmk is already installed by texlive:
>>
>>  $ which latexmk
>>> /opt/texlive/2023/bin/x86_64-linux/latexmk
>>>
>>
>>
>> Or do you mean to change latexmk in init.el?
>>
>
> I do see in init.el that it has been changed to something like:
>
> (setq org-latex-pdf-process
>>       '("pdflatex -interaction nonstopmode -output-directory %o %f"
>>          "bibtex %b"
>>         "pdflatex -shell-escape -interaction nonstopmode
>> -output-directory %o %f"
>>         "pdflatex -shell-escape -interaction nonstopmode
>> -output-directory %o %f"))
>>
>
>
>> Thanks!
>>
>>>
>>> [1] In some cases some configuration is required for latexmk via a
>>> ~/latexmkrc file, but by default everything should work fine.
>>>
>>>
>>>
>>
>> --
>> 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.
>> -.. .. ... -.-. .-.. .- .. -- . .-. | -.. .. ... -.-. .-.. .- .. -- . .-.
>>
>>
>
> --
> 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.
> -.. .. ... -.-. .-.. .- .. -- . .-. | -.. .. ... -.-. .-.. .- .. -- . .-.
>
>

-- 
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.
-.. .. ... -.-. .-.. .- .. -- . .-. | -.. .. ... -.-. .-.. .- .. -- . .-.

[-- Attachment #2: Type: text/html, Size: 12464 bytes --]

^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: Sanskrit/Devanagari fonts not exported to org-pdf output
  2023-09-21 20:41                   ` Zenny
@ 2023-09-21 21:19                     ` Juan Manuel Macías
  2023-09-22  7:04                       ` Zenny
  0 siblings, 1 reply; 29+ messages in thread
From: Juan Manuel Macías @ 2023-09-21 21:19 UTC (permalink / raw)
  To: Zenny; +Cc: emacs-orgmode

Zenny writes:

> I also tried with: 
>
>     (setq org-latex-pdf-process
>           (if (executable-find "latexmk")
>               '("latexmk -interaction nonstopmode -output-directory %o
>     %f")
>              "bibtex %b"
>          '("%latex -interaction nonstopmode -output-directory %o %f"
>           "%latex -interaction nonstopmode -output-directory %o %f"
>           "%latex -interaction nonstopmode -output-directory %o %f"))

I think the expression is bad formed; In addition, latexmk is already
responsible for executing bibtex or biber and other processes that
require more than one compilation. The right thing would be:

(setq org-latex-pdf-process (if (executable-find "latexmk")
				'("latexmk -f -pdf -%latex -interaction=nonstopmode -output-directory=%o %f")
			      '("%latex -interaction nonstopmode -output-directory %o %f"
				"%latex -interaction nonstopmode -output-directory %o %f"
				"%latex -interaction nonstopmode
				-output-directory %o %f")))

(or just remove the customization of that variable from your init).

And then put in your document:

#+LATEX_COMPILER: lualatex (or pdflatex or xelatex)

This keyword modifies the value of org-latex-compiler in the document.
If you are going to use lualatex more often, you can put in your init:

(setq org-latex-compiler "lualatex")

Best regards,

Juan Manuel 

-- 
Juan Manuel Macías

https://juanmanuelmacias.com

https://lunotipia.juanmanuelmacias.com

https://gnutas.juanmanuelmacias.com



^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: Sanskrit/Devanagari fonts not exported to org-pdf output
  2023-09-21 21:19                     ` Juan Manuel Macías
@ 2023-09-22  7:04                       ` Zenny
  2023-09-22  8:00                         ` Juan Manuel Macías
  0 siblings, 1 reply; 29+ messages in thread
From: Zenny @ 2023-09-22  7:04 UTC (permalink / raw)
  To: Juan Manuel Macías; +Cc: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 3665 bytes --]

On Thu, Sep 21, 2023 at 11:19 PM Juan Manuel Macías <maciaschain@posteo.net>
wrote:

> Zenny writes:
>
> > I also tried with:
> >
> >     (setq org-latex-pdf-process
> >           (if (executable-find "latexmk")
> >               '("latexmk -interaction nonstopmode -output-directory %o
> >     %f")
> >              "bibtex %b"
> >          '("%latex -interaction nonstopmode -output-directory %o %f"
> >           "%latex -interaction nonstopmode -output-directory %o %f"
> >           "%latex -interaction nonstopmode -output-directory %o %f"))
>
> I think the expression is bad formed; In addition, latexmk is already
> responsible for executing bibtex or biber and other processes that
> require more than one compilation. The right thing would be:
>
> (setq org-latex-pdf-process (if (executable-find "latexmk")
>                                 '("latexmk -f -pdf -%latex
> -interaction=nonstopmode -output-directory=%o %f")
>                               '("%latex -interaction nonstopmode
> -output-directory %o %f"
>                                 "%latex -interaction nonstopmode
> -output-directory %o %f"
>                                 "%latex -interaction nonstopmode
>                                 -output-directory %o %f")))
>
> (or just remove the customization of that variable from your init).
>
> And then put in your document:
>
> #+LATEX_COMPILER: lualatex (or pdflatex or xelatex)
>

Exactly done as you advised, but no pdf is produced even after waiting for
~10minutes (attached screenshot)


>
> This keyword modifies the value of org-latex-compiler in the document.
> If you are going to use lualatex more often, you can put in your init:
>
> (setq org-latex-compiler "lualatex")
>

Thanks for your input.

>
> Best regards,
>
> Juan Manuel
>
> --
> Juan Manuel Macías
>
> 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 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.
-.. .. ... -.-. .-.. .- .. -- . .-. | -.. .. ... -.-. .-.. .- .. -- . .-.

[-- Attachment #1.2: Type: text/html, Size: 5173 bytes --]

[-- Attachment #2: pic-selected-230922-0903-25.png --]
[-- Type: image/png, Size: 10237 bytes --]

^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: Sanskrit/Devanagari fonts not exported to org-pdf output
  2023-09-22  7:04                       ` Zenny
@ 2023-09-22  8:00                         ` Juan Manuel Macías
  2023-09-22  8:07                           ` Zenny
  0 siblings, 1 reply; 29+ messages in thread
From: Juan Manuel Macías @ 2023-09-22  8:00 UTC (permalink / raw)
  To: Zenny; +Cc: emacs-orgmode

Zenny writes:

> Exactly done as you advised, but no pdf is produced even after waiting
> for ~10minutes (attached screenshot)

Let's try the following:

1. Export your document to a 'your-document.tex' file: C-c C-e l l

2. Open a terminal in your directory and run:

latexmk -f -pdf -lualatex -interaction=nonstopmode your-document.tex

(a pdf would have to be created after compilation. If there are any
errors, please copy your-document.log here).

Best regards,

Juan Manuel 



^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: Sanskrit/Devanagari fonts not exported to org-pdf output
  2023-09-22  8:00                         ` Juan Manuel Macías
@ 2023-09-22  8:07                           ` Zenny
  2023-09-22  8:09                             ` Zenny
  2023-09-22  8:18                             ` Juan Manuel Macías
  0 siblings, 2 replies; 29+ messages in thread
From: Zenny @ 2023-09-22  8:07 UTC (permalink / raw)
  To: Juan Manuel Macías; +Cc: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 5090 bytes --]

On Fri, Sep 22, 2023 at 10:00 AM Juan Manuel Macías <maciaschain@posteo.net>
wrote:

> Zenny writes:
>
> > Exactly done as you advised, but no pdf is produced even after waiting
> > for ~10minutes (attached screenshot)
>
> Let's try the following:
>
> 1. Export your document to a 'your-document.tex' file: C-c C-e l l
>
> 2. Open a terminal in your directory and run:
>
> latexmk -f -pdf -lualatex -interaction=nonstopmode your-document.tex
>

Thanks, this was extremely helpful. The pdf is produced, but the Devanagari
glyphs were not respected. See screenshot.

>
> (a pdf would have to be created after compilation. If there are any
> errors, please copy your-document.log here).
>

Also the Bengali letters were omitted with:

Latexmk: Summary of warnings from last run of *latex:
>   =====Latex reported missing or unavailable character(s).
> =====See log file for details.
> Latexmk: ====List of undefined refs and citations:
>   Missing character: There is no ঘ (U+0998) in font
> [lmroman10-regular]:+tlig;!Missing character: There is no ো (U+09CB) in
> font [lmroman10-regular]:+tlig;!Missing character: There is no ষ (U+09B7)
> in font [lmroman10-regular]:+tlig;!Missing character: There is no া
> (U+09BE) in font [lmroman10-regular]:+tlig;!Missing character: There is no
> ল (U+09B2) in font [lmroman10-regular]:+tlig;!Missing character: There is
> no া (U+09BE) in font [lmroman10-regular]:+tlig;!Missing character: There
> is no ম (U+09AE) in font [lmroman10-regular]:+tlig;!Missing character:
> There is no ঙ (U+0999) in font [lmroman10-regular]:+tlig;!Missing
> character: There is no  (U+09CD) in font [lmroman10-regular]:+tlig;!Missing
> character: There is no গ (U+0997) in font
> [lmroman10-regular]:+tlig;!Missing character: There is no  (U+09CD) in font
> [lmroman10-regular]:+tlig;!Missing character: There is no য (U+09AF) in
> font [lmroman10-regular]:+tlig;!Missing character: There is no া (U+09BE)
> in font [lmroman10-regular]:+tlig;!Missing character: There is no য
> (U+09AF) in font [lmroman10-regular]:+tlig;!Missing character: There is no
>  (U+09BC) in font [lmroman10-regular]:+tlig;!] [2] [3
>   Missing character: There is no ঘ (U+0998) in font
> [lmroman10-regular]:+tlig;!Missing character: There is no ো (U+09CB) in
> font [lmroman10-regular]:+tlig;!Missing character: There is no ষ (U+09B7)
> in font [lmroman10-regular]:+tlig;!Missing character: There is no প
> (U+09AA) in font [lmroman10-regular]:+tlig;!Missing character: There is no
> ত (U+09A4) in font [lmroman10-regular]:+tlig;!Missing character: There is
> no  (U+09C1) in font [lmroman10-regular]:+tlig;!Missing character: There is
> no আ (U+0986) in font [lmroman10-regular]:+tlig;!Missing character: There
> is no ঘ (U+0998) in font [lmroman10-regular]:+tlig;!Missing character:
> There is no ো (U+09CB) in font [lmroman10-regular]:+tlig;!Missing
> character: There is no ষ (U+09B7) in font
> [lmroman10-regular]:+tlig;!Missing character: There is no প (U+09AA) in
> font [lmroman10-regular]:+tlig;!Missing character: There is no ত (U+09A4)
> in font [lmroman10-regular]:+tlig;!Missing character: There is no  (U+09C1)
> in font [lmroman10-regular]:+tlig;!Missing character: There is no আ
> (U+0986) in font [lmroman10-regular]:+tlig;!] [4] [5]
>




> Best regards,
>
> Juan Manuel
>
>

-- 
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.
-.. .. ... -.-. .-.. .- .. -- . .-. | -.. .. ... -.-. .-.. .- .. -- . .-.

[-- Attachment #1.2: Type: text/html, Size: 6123 bytes --]

[-- Attachment #2: pic-selected-230922-1000-58.png --]
[-- Type: image/png, Size: 66542 bytes --]

^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: Sanskrit/Devanagari fonts not exported to org-pdf output
  2023-09-22  8:07                           ` Zenny
@ 2023-09-22  8:09                             ` Zenny
  2023-09-22  8:41                               ` Juan Manuel Macías
  2023-09-22  8:18                             ` Juan Manuel Macías
  1 sibling, 1 reply; 29+ messages in thread
From: Zenny @ 2023-09-22  8:09 UTC (permalink / raw)
  To: Juan Manuel Macías; +Cc: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 7223 bytes --]

On Fri, Sep 22, 2023 at 10:07 AM Zenny <garbytrash@gmail.com> wrote:

>
> On Fri, Sep 22, 2023 at 10:00 AM Juan Manuel Macías <
> maciaschain@posteo.net> wrote:
>
>> Zenny writes:
>>
>> > Exactly done as you advised, but no pdf is produced even after waiting
>> > for ~10minutes (attached screenshot)
>>
>> Let's try the following:
>>
>> 1. Export your document to a 'your-document.tex' file: C-c C-e l l
>>
>> 2. Open a terminal in your directory and run:
>>
>> latexmk -f -pdf -lualatex -interaction=nonstopmode your-document.tex
>>
>
> Thanks, this was extremely helpful. The pdf is produced, but the
> Devanagari glyphs were not respected. See screenshot.
>
>>
>> (a pdf would have to be created after compilation. If there are any
>> errors, please copy your-document.log here).
>>
>
> Also the Bengali letters were omitted with:
>
> Latexmk: Summary of warnings from last run of *latex:
>>   =====Latex reported missing or unavailable character(s).
>> =====See log file for details.
>> Latexmk: ====List of undefined refs and citations:
>>   Missing character: There is no ঘ (U+0998) in font
>> [lmroman10-regular]:+tlig;!Missing character: There is no ো (U+09CB) in
>> font [lmroman10-regular]:+tlig;!Missing character: There is no ষ (U+09B7)
>> in font [lmroman10-regular]:+tlig;!Missing character: There is no া
>> (U+09BE) in font [lmroman10-regular]:+tlig;!Missing character: There is no
>> ল (U+09B2) in font [lmroman10-regular]:+tlig;!Missing character: There is
>> no া (U+09BE) in font [lmroman10-regular]:+tlig;!Missing character: There
>> is no ম (U+09AE) in font [lmroman10-regular]:+tlig;!Missing character:
>> There is no ঙ (U+0999) in font [lmroman10-regular]:+tlig;!Missing
>> character: There is no  (U+09CD) in font [lmroman10-regular]:+tlig;!Missing
>> character: There is no গ (U+0997) in font
>> [lmroman10-regular]:+tlig;!Missing character: There is no  (U+09CD) in font
>> [lmroman10-regular]:+tlig;!Missing character: There is no য (U+09AF) in
>> font [lmroman10-regular]:+tlig;!Missing character: There is no া (U+09BE)
>> in font [lmroman10-regular]:+tlig;!Missing character: There is no য
>> (U+09AF) in font [lmroman10-regular]:+tlig;!Missing character: There is no
>>  (U+09BC) in font [lmroman10-regular]:+tlig;!] [2] [3
>>   Missing character: There is no ঘ (U+0998) in font
>> [lmroman10-regular]:+tlig;!Missing character: There is no ো (U+09CB) in
>> font [lmroman10-regular]:+tlig;!Missing character: There is no ষ (U+09B7)
>> in font [lmroman10-regular]:+tlig;!Missing character: There is no প
>> (U+09AA) in font [lmroman10-regular]:+tlig;!Missing character: There is no
>> ত (U+09A4) in font [lmroman10-regular]:+tlig;!Missing character: There is
>> no  (U+09C1) in font [lmroman10-regular]:+tlig;!Missing character: There is
>> no আ (U+0986) in font [lmroman10-regular]:+tlig;!Missing character: There
>> is no ঘ (U+0998) in font [lmroman10-regular]:+tlig;!Missing character:
>> There is no ো (U+09CB) in font [lmroman10-regular]:+tlig;!Missing
>> character: There is no ষ (U+09B7) in font
>> [lmroman10-regular]:+tlig;!Missing character: There is no প (U+09AA) in
>> font [lmroman10-regular]:+tlig;!Missing character: There is no ত (U+09A4)
>> in font [lmroman10-regular]:+tlig;!Missing character: There is no  (U+09C1)
>> in font [lmroman10-regular]:+tlig;!Missing character: There is no আ
>> (U+0986) in font [lmroman10-regular]:+tlig;!] [4] [5]
>>
>
The bengali is already installed by tlmgr:

# tlmgr install bengali
> tlmgr: package repository
> https://ftpmirror1.infania.net/mirror/CTAN/systems/texlive/tlnet
> (verified)
> tlmgr install: package already present: bengali
>


>
>
>
>
>> Best regards,
>>
>> Juan Manuel
>>
>>
>
> --
> 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.
> -.. .. ... -.-. .-.. .- .. -- . .-. | -.. .. ... -.-. .-.. .- .. -- . .-.
>
>

-- 
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.
-.. .. ... -.-. .-.. .- .. -- . .-. | -.. .. ... -.-. .-.. .- .. -- . .-.

[-- Attachment #2: Type: text/html, Size: 9121 bytes --]

^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: Sanskrit/Devanagari fonts not exported to org-pdf output
  2023-09-22  8:07                           ` Zenny
  2023-09-22  8:09                             ` Zenny
@ 2023-09-22  8:18                             ` Juan Manuel Macías
  2023-09-22  8:30                               ` Zenny
  1 sibling, 1 reply; 29+ messages in thread
From: Juan Manuel Macías @ 2023-09-22  8:18 UTC (permalink / raw)
  To: Zenny; +Cc: emacs-orgmode

Zenny writes:

> Thanks, this was extremely helpful. The pdf is produced, but the
> Devanagari glyphs were not respected. See screenshot.

Could you please create this MWE, and execute the same process?

#+LaTeX_Header: \usepackage[english]{babel}
#+LaTeX_Header: \usepackage{fontspec}
#+LaTeX_Header: \newfontscript{Devanagari}{deva}
#+LaTeX_Header: \babelprovide[onchar=ids fonts]{sanskrit-devanagari}
#+LaTeX_Header: \babelfont[sanskrit-devanagari]{rm}{Noto Sans Devanagari}

<some text in English>

<some text in Devanagari>


^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: Sanskrit/Devanagari fonts not exported to org-pdf output
  2023-09-22  8:18                             ` Juan Manuel Macías
@ 2023-09-22  8:30                               ` Zenny
  0 siblings, 0 replies; 29+ messages in thread
From: Zenny @ 2023-09-22  8:30 UTC (permalink / raw)
  To: Juan Manuel Macías; +Cc: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 2509 bytes --]

On Fri, Sep 22, 2023 at 10:18 AM Juan Manuel Macías <maciaschain@posteo.net>
wrote:

> Zenny writes:
>
> > Thanks, this was extremely helpful. The pdf is produced, but the
> > Devanagari glyphs were not respected. See screenshot.
>
> Could you please create this MWE, and execute the same process?
>
> #+LaTeX_Header: \usepackage[english]{babel}
> #+LaTeX_Header: \usepackage{fontspec}
> #+LaTeX_Header: \newfontscript{Devanagari}{deva}
> #+LaTeX_Header: \babelprovide[onchar=ids fonts]{sanskrit-devanagari}
> #+LaTeX_Header: \babelfont[sanskrit-devanagari]{rm}{Noto Sans Devanagari}
>
> <some text in English>
>
> <some text in Devanagari>
>

Thanks!

With above MWE, the org can directly be exported to pdf, but

1. Glyphs in Devanagari are not respected as earlier
2. Bengali is completely skipped.



-- 
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.
-.. .. ... -.-. .-.. .- .. -- . .-. | -.. .. ... -.-. .-.. .- .. -- . .-.

[-- Attachment #2: Type: text/html, Size: 3206 bytes --]

^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: Sanskrit/Devanagari fonts not exported to org-pdf output
  2023-09-22  8:09                             ` Zenny
@ 2023-09-22  8:41                               ` Juan Manuel Macías
  2023-09-22  8:49                                 ` Zenny
  0 siblings, 1 reply; 29+ messages in thread
From: Juan Manuel Macías @ 2023-09-22  8:41 UTC (permalink / raw)
  To: Zenny; +Cc: emacs-orgmode

Zenny writes:

>     Also the Bengali letters were omitted with:

Sorry, this is the correct MWE:

#+LaTeX_Header: \usepackage[english]{babel}
#+LaTeX_Header: \usepackage{fontspec}
#+LaTeX_Header: \newfontscript{Devanagari}{deva}
#+LaTeX_Header: \babelprovide[onchar=ids fonts]{sanskrit-devanagari}
#+LaTeX_Header: \babelprovide[onchar=ids fonts]{sanskrit-bengali}
#+LaTeX_Header: \babelfont[sanskrit-devanagari]{rm}{Noto Sans Devanagari}
#+LaTeX_Header: \babelfont[sanskrit-bengali]{rm}{Noto Sans Bengali}

<some text in english>
<some text in devanagari>
<some text in bengali>


^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: Sanskrit/Devanagari fonts not exported to org-pdf output
  2023-09-22  8:41                               ` Juan Manuel Macías
@ 2023-09-22  8:49                                 ` Zenny
  2023-09-22  8:54                                   ` Zenny
  2023-09-22  8:54                                   ` Juan Manuel Macías
  0 siblings, 2 replies; 29+ messages in thread
From: Zenny @ 2023-09-22  8:49 UTC (permalink / raw)
  To: Juan Manuel Macías; +Cc: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 2515 bytes --]

On Fri, Sep 22, 2023 at 10:41 AM Juan Manuel Macías <maciaschain@posteo.net>
wrote:

> Zenny writes:
>
> >     Also the Bengali letters were omitted with:
>
> Sorry, this is the correct MWE:
>
> #+LaTeX_Header: \usepackage[english]{babel}
> #+LaTeX_Header: \usepackage{fontspec}
> #+LaTeX_Header: \newfontscript{Devanagari}{deva}
> #+LaTeX_Header: \babelprovide[onchar=ids fonts]{sanskrit-devanagari}
> #+LaTeX_Header: \babelprovide[onchar=ids fonts]{sanskrit-bengali}
> #+LaTeX_Header: \babelfont[sanskrit-devanagari]{rm}{Noto Sans Devanagari}
> #+LaTeX_Header: \babelfont[sanskrit-bengali]{rm}{Noto Sans Bengali}
>
> <some text in english>
> <some text in devanagari>
> <some text in bengali>
>

With this both languages (scripts) were rendered) but both renderings has
no correct glyphs (see screenshots)
Thanks!
-- 
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.
-.. .. ... -.-. .-.. .- .. -- . .-. | -.. .. ... -.-. .-.. .- .. -- . .-.

[-- Attachment #1.2: Type: text/html, Size: 3212 bytes --]

[-- Attachment #2: pic-selected-230922-1049-01.png --]
[-- Type: image/png, Size: 16577 bytes --]

^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: Sanskrit/Devanagari fonts not exported to org-pdf output
  2023-09-22  8:49                                 ` Zenny
@ 2023-09-22  8:54                                   ` Zenny
  2023-09-22  8:54                                   ` Juan Manuel Macías
  1 sibling, 0 replies; 29+ messages in thread
From: Zenny @ 2023-09-22  8:54 UTC (permalink / raw)
  To: Juan Manuel Macías; +Cc: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 4429 bytes --]

On Fri, Sep 22, 2023 at 10:49 AM Zenny <garbytrash@gmail.com> wrote:

> On Fri, Sep 22, 2023 at 10:41 AM Juan Manuel Macías <
> maciaschain@posteo.net> wrote:
>
>> Zenny writes:
>>
>> >     Also the Bengali letters were omitted with:
>>
>> Sorry, this is the correct MWE:
>>
>> #+LaTeX_Header: \usepackage[english]{babel}
>> #+LaTeX_Header: \usepackage{fontspec}
>> #+LaTeX_Header: \newfontscript{Devanagari}{deva}
>> #+LaTeX_Header: \babelprovide[onchar=ids fonts]{sanskrit-devanagari}
>> #+LaTeX_Header: \babelprovide[onchar=ids fonts]{sanskrit-bengali}
>> #+LaTeX_Header: \babelfont[sanskrit-devanagari]{rm}{Noto Sans Devanagari}
>> #+LaTeX_Header: \babelfont[sanskrit-bengali]{rm}{Noto Sans Bengali}
>>
>> <some text in english>
>> <some text in devanagari>
>> <some text in bengali>
>>
>
> With this both languages (scripts) were rendered) but both renderings has
> no correct glyphs (see screenshots)
> Thanks!
>

Actually, the former should look like the latter, for a comparison.


> --
> 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.
> -.. .. ... -.-. .-.. .- .. -- . .-. | -.. .. ... -.-. .-.. .- .. -- . .-.
>
>

-- 
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.
-.. .. ... -.-. .-.. .- .. -- . .-. | -.. .. ... -.-. .-.. .- .. -- . .-.

[-- Attachment #1.2: Type: text/html, Size: 5845 bytes --]

[-- Attachment #2: pic-selected-230922-1052-44.png --]
[-- Type: image/png, Size: 16340 bytes --]

[-- Attachment #3: pic-selected-230922-1053-10.png --]
[-- Type: image/png, Size: 72162 bytes --]

^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: Sanskrit/Devanagari fonts not exported to org-pdf output
  2023-09-22  8:49                                 ` Zenny
  2023-09-22  8:54                                   ` Zenny
@ 2023-09-22  8:54                                   ` Juan Manuel Macías
  2023-09-22  8:58                                     ` Zenny
  1 sibling, 1 reply; 29+ messages in thread
From: Juan Manuel Macías @ 2023-09-22  8:54 UTC (permalink / raw)
  To: Zenny; +Cc: orgmode

Zenny writes:

>     <some text in english>
>     <some text in devanagari>
>     <some text in bengali>
>
> With this both languages (scripts) were rendered) but both renderings
> has no correct glyphs (see screenshots)

Could you please copy the text of your example here, so I can compile
it?


^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: Sanskrit/Devanagari fonts not exported to org-pdf output
  2023-09-22  8:54                                   ` Juan Manuel Macías
@ 2023-09-22  8:58                                     ` Zenny
  2023-09-22  9:06                                       ` Juan Manuel Macías
  0 siblings, 1 reply; 29+ messages in thread
From: Zenny @ 2023-09-22  8:58 UTC (permalink / raw)
  To: Juan Manuel Macías; +Cc: orgmode

[-- Attachment #1: Type: text/plain, Size: 2791 bytes --]

On Fri, Sep 22, 2023 at 10:54 AM Juan Manuel Macías <maciaschain@posteo.net>
wrote:

> Zenny writes:
>
> >     <some text in english>
> >     <some text in devanagari>
> >     <some text in bengali>
> >
> > With this both languages (scripts) were rendered) but both renderings
> > has no correct glyphs (see screenshots)
>
> Could you please copy the text of your example here, so I can compile
> it?
>

Here it comes:

| Original | Anglicized | Switch     |
|----------+------------+------------|
| सत्य       | Satya      | Sathya     |
| सरस्वती     | Saraswati  | Saraswathy |
| गणपति     | Ganapati   | Ganapathy  |
| गोषाल      | goShal     | Ghoshal    |
| गोष्ठ       | GoShTha    | Ghosht     |
| मुम्बा       | Mumba      | Bombay     |
| घोष       | GhoSha     | Ghosh      |
| बिष्ट       | BiSht      | Bista      |
| अंग       | Anga       | Banga      |

Gosala Mankhya (घोषाला  मंख्य  in Sanskrit and ঘোষালা মঙ্গ্যায় in Bengali)

-- 
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.
-.. .. ... -.-. .-.. .- .. -- . .-. | -.. .. ... -.-. .-.. .- .. -- . .-.

[-- Attachment #2: Type: text/html, Size: 3545 bytes --]

^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: Sanskrit/Devanagari fonts not exported to org-pdf output
  2023-09-22  8:58                                     ` Zenny
@ 2023-09-22  9:06                                       ` Juan Manuel Macías
  2023-09-22  9:37                                         ` Zenny
  0 siblings, 1 reply; 29+ messages in thread
From: Juan Manuel Macías @ 2023-09-22  9:06 UTC (permalink / raw)
  To: Zenny; +Cc: orgmode

Zenny writes:

> Here it comes:
>
> | Original | Anglicized | Switch     |
> |----------+------------+------------|
> | सत्य       | Satya      | Sathya     |
> | सरस्वती     | Saraswati  | Saraswathy |
> | गणपति     | Ganapati   | Ganapathy  |
> | गोषाल      | goShal     | Ghoshal    |
> | गोष्ठ       | GoShTha    | Ghosht     |
> | मुम्बा       | Mumba      | Bombay     |
> | घोष       | GhoSha     | Ghosh      |
> | बिष्ट       | BiSht      | Bista      |
> | अंग       | Anga       | Banga      |
>
> Gosala Mankhya (घोषाला  मंख्य  in Sanskrit and ঘোষালা মঙ্গ্যায় in Bengali)

See screenshot. It's right?

https://i.imgur.com/OD5nl1Q.png

^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: Sanskrit/Devanagari fonts not exported to org-pdf output
  2023-09-22  9:06                                       ` Juan Manuel Macías
@ 2023-09-22  9:37                                         ` Zenny
  2023-09-22 10:02                                           ` Juan Manuel Macías
  0 siblings, 1 reply; 29+ messages in thread
From: Zenny @ 2023-09-22  9:37 UTC (permalink / raw)
  To: Juan Manuel Macías; +Cc: orgmode


[-- Attachment #1.1: Type: text/plain, Size: 2779 bytes --]

On Fri, Sep 22, 2023 at 11:06 AM Juan Manuel Macías <maciaschain@posteo.net>
wrote:

> Zenny writes:
>
> > Here it comes:
> >
> > | Original | Anglicized | Switch     |
> > |----------+------------+------------|
> > | सत्य       | Satya      | Sathya     |
> > | सरस्वती     | Saraswati  | Saraswathy |
> > | गणपति     | Ganapati   | Ganapathy  |
> > | गोषाल      | goShal     | Ghoshal    |
> > | गोष्ठ       | GoShTha    | Ghosht     |
> > | मुम्बा       | Mumba      | Bombay     |
> > | घोष       | GhoSha     | Ghosh      |
> > | बिष्ट       | BiSht      | Bista      |
> > | अंग       | Anga       | Banga      |
> >
> > Gosala Mankhya (घोषाला  मंख्य  in Sanskrit and ঘোষালা মঙ্গ্যায় in
> Bengali)
>
> See screenshot. It's right?
>
> https://i.imgur.com/OD5nl1Q.png
>

It still shows the problem with glyphs:

Should look like in the attached screenshots, in emacs orgmode and rendered
to pdf (from org to docx using pandoc)


-- 
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.
-.. .. ... -.-. .-.. .- .. -- . .-. | -.. .. ... -.-. .-.. .- .. -- . .-.

[-- Attachment #1.2: Type: text/html, Size: 3673 bytes --]

[-- Attachment #2: pic-selected-230922-1136-17.png --]
[-- Type: image/png, Size: 37836 bytes --]

[-- Attachment #3: pic-selected-230922-1053-10.png --]
[-- Type: image/png, Size: 72162 bytes --]

^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: Sanskrit/Devanagari fonts not exported to org-pdf output
  2023-09-22  9:37                                         ` Zenny
@ 2023-09-22 10:02                                           ` Juan Manuel Macías
  2023-09-22 12:59                                             ` Zenny
  0 siblings, 1 reply; 29+ messages in thread
From: Juan Manuel Macías @ 2023-09-22 10:02 UTC (permalink / raw)
  To: Zenny; +Cc: orgmode

Zenny <garbytrash@gmail.com> writes:

> It still shows the problem with
> glyphs:
>
> Should look like in the attached
> screenshots, in emacs orgmode
> and rendered to pdf (from org to
> docx using pandoc)

Add this line to the bottom:

#+LaTeX_Header:\defaultfontfeatures{Renderer=HarfBuzz}


^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: Sanskrit/Devanagari fonts not exported to org-pdf output
  2023-09-22 10:02                                           ` Juan Manuel Macías
@ 2023-09-22 12:59                                             ` Zenny
  2023-09-22 15:12                                               ` Juan Manuel Macías
  0 siblings, 1 reply; 29+ messages in thread
From: Zenny @ 2023-09-22 12:59 UTC (permalink / raw)
  To: Juan Manuel Macías; +Cc: orgmode


[-- Attachment #1.1: Type: text/plain, Size: 553 bytes --]

On Fri, Sep 22, 2023 at 12:02 PM Juan Manuel Macías <maciaschain@posteo.net>
wrote:

> Zenny <garbytrash@gmail.com> writes:
>
> > It still shows the problem with
> > glyphs:
> >
> > Should look like in the attached
> > screenshots, in emacs orgmode
> > and rendered to pdf (from org to
> > docx using pandoc)
>
> Add this line to the bottom:
>
> #+LaTeX_Header:\defaultfontfeatures{Renderer=HarfBuzz}
>

Appended the above line, but the rendering became much worse, see Ganapati
and BiSht lines:

 Thanks.


-- 
Cheers,
/z

[-- Attachment #1.2: Type: text/html, Size: 1194 bytes --]

[-- Attachment #2: pic-selected-230922-1458-27.png --]
[-- Type: image/png, Size: 16213 bytes --]

^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: Sanskrit/Devanagari fonts not exported to org-pdf output
  2023-09-22 12:59                                             ` Zenny
@ 2023-09-22 15:12                                               ` Juan Manuel Macías
  2023-09-22 17:51                                                 ` Zenny
  0 siblings, 1 reply; 29+ messages in thread
From: Juan Manuel Macías @ 2023-09-22 15:12 UTC (permalink / raw)
  To: Zenny; +Cc: orgmode

Zenny writes:

> Appended the above line, but the rendering became much worse, see
> Ganapati and BiSht lines:

Well, try this:

1. remove \newfontscript{Devanagari}{deva}

2. modify the \babelprovide for Bengali like this:

\babelprovide[onchar=ids fonts,import,script=Bengali]{sanskrit-bengali}

(it seems like something strange is happening between the Noto Sans
Bengali font and LuaTeX. I don't know if it's a bug, but if I explicitly
add the script name, it seems to render the words well. With Noto Serif
Bengali it doesn't happen).

Sorry, I'm afraid I don't know the language, so I'm going a bit blind
here...


^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: Sanskrit/Devanagari fonts not exported to org-pdf output
  2023-09-22 15:12                                               ` Juan Manuel Macías
@ 2023-09-22 17:51                                                 ` Zenny
  0 siblings, 0 replies; 29+ messages in thread
From: Zenny @ 2023-09-22 17:51 UTC (permalink / raw)
  To: Juan Manuel Macías; +Cc: orgmode


[-- Attachment #1.1: Type: text/plain, Size: 2690 bytes --]

On Fri, Sep 22, 2023 at 5:13 PM Juan Manuel Macías <maciaschain@posteo.net>
wrote:

> Zenny writes:
>
> > Appended the above line, but the rendering became much worse, see
> > Ganapati and BiSht lines:
>
> Well, try this:
>
> 1. remove \newfontscript{Devanagari}{deva}
>
> 2. modify the \babelprovide for Bengali like this:
>
> \babelprovide[onchar=ids fonts,import,script=Bengali]{sanskrit-bengali}
>
> (it seems like something strange is happening between the Noto Sans
> Bengali font and LuaTeX. I don't know if it's a bug, but if I explicitly
> add the script name, it seems to render the words well. With Noto Serif
> Bengali it doesn't happen).
>

Thank you, I made the changes as you advised and changed the font to Noto
Serif variant, and it worked like wonder.

The problem is solved. Thanks a zillion.

Now it renders alright as seen in the screenshot. Have a nice weekend, Juan.


>
> Sorry, I'm afraid I don't know the language, so I'm going a bit blind
> here...
>


-- 
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.
-.. .. ... -.-. .-.. .- .. -- . .-. | -.. .. ... -.-. .-.. .- .. -- . .-.

[-- Attachment #1.2: Type: text/html, Size: 3522 bytes --]

[-- Attachment #2: pic-selected-230922-1950-54.png --]
[-- Type: image/png, Size: 16160 bytes --]

^ permalink raw reply	[flat|nested] 29+ messages in thread

end of thread, other threads:[~2023-09-22 17:57 UTC | newest]

Thread overview: 29+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-21  7:46 Sanskrit/Devanagari fonts not exported to org-pdf output Zenny
2023-09-21  8:24 ` Juan Manuel Macías
2023-09-21 13:46   ` Zenny
2023-09-21 15:33     ` Juan Manuel Macías
2023-09-21 17:53       ` Zenny
2023-09-21 18:28         ` Juan Manuel Macías
2023-09-21 18:44           ` Zenny
2023-09-21 19:32             ` Juan Manuel Macías
2023-09-21 20:26               ` Zenny
2023-09-21 20:39                 ` Zenny
2023-09-21 20:41                   ` Zenny
2023-09-21 21:19                     ` Juan Manuel Macías
2023-09-22  7:04                       ` Zenny
2023-09-22  8:00                         ` Juan Manuel Macías
2023-09-22  8:07                           ` Zenny
2023-09-22  8:09                             ` Zenny
2023-09-22  8:41                               ` Juan Manuel Macías
2023-09-22  8:49                                 ` Zenny
2023-09-22  8:54                                   ` Zenny
2023-09-22  8:54                                   ` Juan Manuel Macías
2023-09-22  8:58                                     ` Zenny
2023-09-22  9:06                                       ` Juan Manuel Macías
2023-09-22  9:37                                         ` Zenny
2023-09-22 10:02                                           ` Juan Manuel Macías
2023-09-22 12:59                                             ` Zenny
2023-09-22 15:12                                               ` Juan Manuel Macías
2023-09-22 17:51                                                 ` Zenny
2023-09-22  8:18                             ` Juan Manuel Macías
2023-09-22  8:30                               ` Zenny

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).