I try to write an abstract in Hebrew.
I use MikTeX2.9 and TeXnicCenter editor.
This is my MWE:
\documentclass[12pt]{article}
\usepackage[english,bidi=default]{babel} %bidi=default with xelatex
\babelprovide[import,main]{hebrew}
\babelfont{rm}[Language=Default]{Latin Modern Roman}
\babelfont[hebrew]{rm}{DejaVu Sans}
%\babelfont[hebrew]{rm}{Noto Sans Hebrew}
\begin{document}
\begin{center}
\Huge
\textbf{תקציר}
\end{center}
ניסוי ותהייה, או ניסוי וטעיה?
\selectlanguage{english} some text
\end{document}
When I compile it with XeLaTeX I get no errors but 1 warning saying:
Package fontspec Warning: 'Language 'Hebrew' not available for font 'DejaVu Sans' with script 'Hebrew' 'Defualt' language used instead'
In the pdf generated I get question marks instead of the Hebrew letters.
I'll appreciate if someone can tell me step by step how to make the language Hebrew available for the font 'DejaVu Sans' with script Hebrew.
\babelfont[hebrew]{rm}[Language=Default]{DejaVu Sans}
to avoid the warning, but it is not the reason for the question marks. And better get it first working with lualatex -- its font handling is easier, it is less picky regarding the name and the log is better.