Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Polyglossia demands "Please define \devanagarifont with \newfontfamily" even if I use transliteration only. #183

Closed
ppasedach opened this issue Jun 24, 2017 · 3 comments

Comments

@ppasedach
Copy link

ppasedach commented Jun 24, 2017

I would like to use polyglossia for switching between hyphenation rules for English and Sanskrit, without needing to do any specific font setup for it:

\documentclass{article}
\usepackage{polyglossia}
\setdefaultlanguage{english}
\setotherlanguage{sanskrit}
\setotherlanguage{german}
\begin{document}
Something.
\textgerman{Etwas.}
\textsanskrit{kiṃcit.}
\end{document}

gives me the following error message:

! Package polyglossia Error: The current roman font does not contain the Devanagari script!
(polyglossia)                Please define \devanagarifont with \newfontfamily.

Of course I can follow the instruction in the error message and define a \devanagarifont, but if I'm intending to use latin transliteration of Sanskrit only this should not be necessary. Apparently if none of the other (indic) script options present in gloss-sanskrit.ldf is specifically selected, an option for transliteration not given, Devanagari is assumed as a default? hyph-sa.tex used by polyglossia for the hyphenation patterns is handling transliterated Sanskrit well.

Related also this thread, and this comment here.

@jspitz
Copy link
Collaborator

jspitz commented Aug 24, 2019

This is fixed in current master (as opposed to 1.44).

Someone who can please close this ticket.

@ppasedach
Copy link
Author

In current TeX Live 2020 I still get this. polyglossia 2020/04/08 v1.49 .

@jspitz
Copy link
Collaborator

jspitz commented Jun 30, 2020

To clarify:

You need to use the script=Latin option (see polyglossia manual):

\documentclass{article}
\usepackage{polyglossia}
\setdefaultlanguage{english}
\setotherlanguage[script=Latin]{sanskrit}
\setotherlanguage{german}
\begin{document}
Something.
\textgerman{Etwas.}
\textsanskrit{kiṃcit.}
\end{document}

The default script of Sanskrit still is (and remains) Devanagari.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants