In russian typography the dashes are recommended to be typeset as "---, not as ~---, and "--~ as a dash between surnames, according to https://en.wikibooks.org/wiki/LaTeX/Internationalization#Cyrillic_script. The examples shown are using babel, but I use polyglossia and the result is wrong:

enter image description here

How can I use these babel way of typesetting without switching from polyglossia?

Here is a MWE (I use LuaLaTeX):

\documentclass{article}

\usepackage{polyglossia}
\defaultfontfeatures{Ligatures=TeX}
\setmainlanguage{russian}
\setmainfont{Georgia}
\newfontfamily\cyrillicfont{Georgia}

\begin{document}

    А"--- Б.

    Ньютон"--~Лейбниц.

\end{document}
up vote 2 down vote accepted

You can activate the shorthands with the option babelshorthands (by language or globally, see the documentation):

\documentclass{article}

\usepackage{polyglossia}
\defaultfontfeatures{Ligatures=TeX}
\setmainlanguage[babelshorthands=true]{russian}
\setmainfont{Georgia}
\newfontfamily\cyrillicfont{Georgia}

\begin{document}

    А"--- Б.

    Ньютон"--~Лейбниц.

\end{document}

enter image description here

Your Answer

 

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.