2

Here is my MWE with the luaquotespackage:

\documentclass{article}
\usepackage{luaquotes}
% \smartquotes
\usepackage[english=british]{csquotes}
\begin{document}

\section{Test of \texttt{luaquotes} package}

\noindent 'Single' 'Single' 'Single'\

\noindent "Double" "Double" "Double".

\end{document}

Why is the first single quote reversed? I find the single quote behaviour inconsistent. How may I get consistent behaviour?

Uncommenting the line \smartquotes does not affect the result.

chandra
  • 3,084
  • 1
    This is something that should be reported to the developer so that they can fix this counter-intuitive behaviour or at least mention it in the docs. (Ideally, you'd make a fully minimal example that does not involve csquotes at all for the report.) – moewe Nov 23 '22 at 06:36
  • Curiously, the presence/absence of \noindent changes where the undesirable behaviour happens. With \noindent it's the first pair of quotes, without it's the second. – moewe Nov 23 '22 at 06:38
  • 1
    I see this was already mentioned on the luaquotes bug tracker: https://github.com/ezgranet/luaquotes/issues/3 – moewe Nov 23 '22 at 06:49
  • @moewe: Ditto to all your comments. Commenting out the csquotes content does not alter results; but leaving out \noindent does swap the error position. I will await resolution from the developer. – chandra Nov 23 '22 at 07:25
  • Since csquotes has nothing to do with the issue, I suggest you minimise your example document to exclude csquotes and also remove the csquotes tag. – moewe Nov 23 '22 at 07:41
  • Dev here—I'm taking a look now. Will answer soon. Thanks for finding this and apologies this apparent bug slipped in! Edit: quick check shows this is an issue with the feature designed to allow smart elision (like ’ello for hello). I will fix this and push an update to CTAN and make a full answer once I repair the code – ezgranet Nov 23 '22 at 11:54
  • @moewe: Both your suggestions have been implemented. – chandra Nov 25 '22 at 15:37

1 Answers1

2

Sorry for this bug! It's been fixed and will be on CTAN soon with version 1.2.1. In the meantime, you can download the updated version of the package on the GitHub which produces the correct results. https://github.com/ezgranet/luaquotes

Update:thanks to CTAN maintainers for their customary speed and efficiency. The updated package is now available on CTAN and pushed via the usual channels for updates.

ezgranet
  • 564
  • 1
    The change has been propagated through the latest TeXLive update and the behaviour of single quotes is as expected. Thank you. – chandra Nov 26 '22 at 19:45