[Tex/LaTex] German-style quotation marks in LuaLaTeX using polyglossia

germanluatexpunctuation

Could someone post a complete minimal input file for LuaLaTeX to output

"Hallo"

also to get around ,,Hallo´´

In LaTeX I would have written

``Hallo´´


%% Minimal Inputfile for LuaLaTeX
\documentclass[a4paper]{scrartcl}
\usepackage{polyglossia}
\setdefaultlanguage[spelling=new, babelshorthands=true]{german}
\usepackage{fontspec}
\usepackage{csquotes}

\begin{document}

\enquote{Hallo--mit enquote--this is working}

But: how to produce the euivalent Text, based on babelshorthands?

“`Hallo”’  --- is not working

\end{document}

Best Answer

For babel-style shortcuts, don't use "smart" quotes: using "dumb" double quotes is the way to go.

enter image description here

\documentclass[a4paper]{scrartcl}
\usepackage{fontspec}
\usepackage{polyglossia}
\setdefaultlanguage[spelling=new, babelshorthands=true]{german}
\usepackage{csquotes}

\begin{document}
\enquote{Hallo} --- with \texttt{\string\enquote}, this works

"`Hallo"'  --- with \verb+"`+ and \verb+"'+, this works too
\end{document}
Related Question