From 6c28eadd6c04a60d0a12efaf864dea1a6b2f2b72 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Thu, 8 Jan 2026 11:23:03 +0100 Subject: LaTeX reader: handle more quote macros. (From fontspec and ngerman babel.) Closes #6120. --- src/Text/Pandoc/Readers/LaTeX/Inline.hs | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/Text/Pandoc/Readers/LaTeX/Inline.hs b/src/Text/Pandoc/Readers/LaTeX/Inline.hs index 531cfb3a1..55f5a0bf4 100644 --- a/src/Text/Pandoc/Readers/LaTeX/Inline.hs +++ b/src/Text/Pandoc/Readers/LaTeX/Inline.hs @@ -315,6 +315,26 @@ charCommands = M.fromList , ("dothyp", lit ".\173") , ("colonhyp", lit ":\173") , ("hyp", lit "-") + -- ngerman (babel) + , ("glq", lit "‚") + , ("grq", lit "‘") + , ("glqq", lit "„") + , ("grqq", lit "“") + , ("flq", lit "‹") + , ("frq", lit "›") + , ("flqq", lit "«") + , ("frqq", lit "»") + , ("dq", lit "\"") + -- fontspec + , ("guillemetleft", lit "«") + , ("guillemotleft", lit "«") + , ("guillemetright", lit "»") + , ("guillemotright", lit "»") + , ("guilsinglleft", lit "‹") + , ("guilsinglright", lit "›") + , ("quotedblbase", lit "„") + , ("quotesinglbase", lit ",") + , ("textquotedbl", lit "\"") ] biblatexInlineCommands :: PandocMonad m -- cgit v1.2.3