summaryrefslogtreecommitdiff
path: root/macros/luatex/latex/luaquotes/luaquotes.sty
diff options
context:
space:
mode:
Diffstat (limited to 'macros/luatex/latex/luaquotes/luaquotes.sty')
-rw-r--r--macros/luatex/latex/luaquotes/luaquotes.sty30
1 files changed, 15 insertions, 15 deletions
diff --git a/macros/luatex/latex/luaquotes/luaquotes.sty b/macros/luatex/latex/luaquotes/luaquotes.sty
index 4889a3786b..f26758b909 100644
--- a/macros/luatex/latex/luaquotes/luaquotes.sty
+++ b/macros/luatex/latex/luaquotes/luaquotes.sty
@@ -1,6 +1,6 @@
-\def\luaquotesversionnumber{1.2.0}
+\def\luaquotesversionnumber{1.2.1}
\ProvidesPackage{luaquotes}
- [2022/10/25\luaquotesversionnumber smart quotes with lua]
+ [2022/11/23\luaquotesversionnumber smart quotes with lua]
% !TeX program = lualatex
% !TeX encoding = utf8
% This work may be distributed and/or modified under the
@@ -94,10 +94,10 @@ function doublequotes ( s )
-\luaexec{
-function abbrevsingle ( s )
- return ( s:gsub ( " '(..-) " , " ’\%1 " ) )
- end}
+% \luaexec{
+% function abbrevsingle ( s )
+% return ( s:gsub ( " '(..-) " , " ’\%1 " ) )
+% end}
\luaexec{function singlequotes ( s )
return ( s:gsub ( " '"," ‘" ) )
@@ -114,13 +114,13 @@ function abbrevsingle ( s )
\newcommand\doublequotesoff{\directlua{luatexbase.remove_from_callback (
"process_input_buffer" ,
"doublequotes" )}}
-\newcommand\abbrevsingleon{\directlua{luatexbase.add_to_callback (
- "process_input_buffer" ,
- abbrevsingle ,
- "abbrevsingle" )}}
-\newcommand\abbrevsingleoff{\directlua{luatexbase.remove_from_callback (
- "process_input_buffer" ,
- "abbrevsingle" )}}
+% \newcommand\abbrevsingleon{\directlua{luatexbase.add_to_callback (
+% "process_input_buffer" ,
+% abbrevsingle ,
+% "abbrevsingle" )}}
+% \newcommand\abbrevsingleoff{\directlua{luatexbase.remove_from_callback (
+% "process_input_buffer" ,
+% "abbrevsingle" )}}
\newcommand\singlequotelinestarton{\directlua{
luatexbase.add_to_callback (
@@ -144,11 +144,11 @@ luatexbase.add_to_callback (
\newcommand{\smartquotes}{%
\doublequoteson%
\singlequotelinestarton%
-\abbrevsingleon%
+% \abbrevsingleon%
\singlequoteson}
\newcommand{\dumbquotes}{
\doublequotesoff
-\abbrevsingleoff
+% \abbrevsingleoff
\singlequotelinestartoff
\singlequotesoff}