[texhax] quotation marks with babel in LuaLaTeX
Ulrike Fischer
news3 at nililand.de
Mon Sep 19 19:09:09 CEST 2011
Am Mon, 19 Sep 2011 14:37:44 +0200 schrieb Arno Trautmann:
> \ProvideTextCommand{\glqq}{EU2}{\textormath{\quotedblbase}
> {\mbox{\quotedblbase}}}
>
> So (I guess) babel maps "` to \glqq, and the libertine package
> re-defines that command. Now, in source2e, I find
Yes.
> \DeclareTextSymbol{\quotedblbase}{T1}{18}
> I'm not sure why, but I have the feeling that this is awkward. Wouldn't
> it make much more sense if "` was mapped directly to the unicode point
> of „? If so, should this be in some package?
This is the definition for T1 encoding. With xetex/luatex you will
probably use fontspec and so EU1/EU2 encoding. In this case the
definition of xunicode (loaded by fontspec) will be used. In this
case:
\DeclareUTFcharacter[\UTFencname]{x201E}{\quotedblbase}
(For some reason xunicode doesn't provide a sensible definitions for
\glqq/\grqq and some other quoting commands)
I personally haven't used \glqq/ "` etc for years. I'm always using
csquotes:
\documentclass[ngerman]{scrartcl}
\usepackage{babel,fontspec}
\setmainfont{Linux Libertine O}
\usepackage[autostyle]{csquotes}
\MakeAutoQuote «»
\begin{document}
«abc»
\end{document}
--
Ulrike Fischer
More information about the texhax
mailing list