From 044a16fa1e3ace15f8b9b8df0515a3f780f94978 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Thu, 24 Nov 2022 20:39:56 +0000 Subject: luaquotes (24nov22) git-svn-id: svn://tug.org/texlive/trunk@65098 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/lualatex/luaquotes/README | 5 +-- .../lualatex/luaquotes/luaquotes-documentation.pdf | Bin 110367 -> 111052 bytes .../lualatex/luaquotes/luaquotes-documentation.tex | 39 ++++++++++----------- .../tex/lualatex/luaquotes/luaquotes.sty | 30 ++++++++-------- 4 files changed, 37 insertions(+), 37 deletions(-) (limited to 'Master') diff --git a/Master/texmf-dist/doc/lualatex/luaquotes/README b/Master/texmf-dist/doc/lualatex/luaquotes/README index 162a742f068..b4095e8a56c 100644 --- a/Master/texmf-dist/doc/lualatex/luaquotes/README +++ b/Master/texmf-dist/doc/lualatex/luaquotes/README @@ -1,17 +1,18 @@ luaquotes - smart quotes with lua -version: 1.1.0 +version: 1.2.1 This package automatically creates smart quotes using lua filters and provides auxiliary commands for typesetting specific lua punctuation This work may be distributed and/or modified under the conditions of the -LaTeX Project Public License (LPPL), version 1.3 or later. +LaTeX Project Public License (LPPL), version 1.3c or later. For suggestions, feature requests, and bug reports, please use the project's GitHub site: https://github.com/ezgranet/luaquotes Version history: +23/11/2022-walking back automatic elision for now 25/10/2022—support for elision 30/08/2022—resolving bug with language versions 28/08/2022—resolving bug with language versions diff --git a/Master/texmf-dist/doc/lualatex/luaquotes/luaquotes-documentation.pdf b/Master/texmf-dist/doc/lualatex/luaquotes/luaquotes-documentation.pdf index 339ea92bb59..4d5e961eace 100644 Binary files a/Master/texmf-dist/doc/lualatex/luaquotes/luaquotes-documentation.pdf and b/Master/texmf-dist/doc/lualatex/luaquotes/luaquotes-documentation.pdf differ diff --git a/Master/texmf-dist/doc/lualatex/luaquotes/luaquotes-documentation.tex b/Master/texmf-dist/doc/lualatex/luaquotes/luaquotes-documentation.tex index d5bf6ed5ef9..3a92f1df05e 100644 --- a/Master/texmf-dist/doc/lualatex/luaquotes/luaquotes-documentation.tex +++ b/Master/texmf-dist/doc/lualatex/luaquotes/luaquotes-documentation.tex @@ -93,9 +93,6 @@ The English features are designed to smartly recognise English punctuation: Single Quotes& \LARGE\texttt{'Hello!'}% & \LARGE 'Hello' \\ Contractions & \LARGE \texttt{Don't} & \LARGE Don't\\ -Elision & \LARGE\texttt{'ello} & \LARGE 'ello \\ - - \end{tabular} \end{center} @@ -509,9 +506,9 @@ firstnumber=last {lua} -function abbrevsingle ( s ) - return ( s:gsub ( " '(..-) " , " ’\%1 " ) ) - end +%function abbrevsingle ( s ) +% return ( s:gsub ( " '(..-) " , " ’\%1 " ) ) +% end \end{minted} \begin{minted}[ frame=lines, @@ -632,7 +629,7 @@ firstnumber=last ] {latex} }} -\newcommand\abbrevsingleon{\directlua{ +%\newcommand\abbrevsingleon{\directlua{ \end{minted} \begin{minted}[ frame=lines, @@ -646,11 +643,11 @@ firstnumber=last ] {lua} - -luatexbase.add_to_callback ( - "process_input_buffer" , - abbrevsingle , - "abbrevsingle" ) +% +%luatexbase.add_to_callback ( +% "process_input_buffer" , +% abbrevsingle , +% "abbrevsingle" ) \end{minted} \begin{minted}[ frame=lines, @@ -665,8 +662,8 @@ firstnumber=last {latex} - }} -\newcommand\abbrevsingleoff{\directlua{ +% }} +%\newcommand\abbrevsingleoff{\directlua{ \end{minted} \begin{minted}[ frame=lines, @@ -680,9 +677,9 @@ firstnumber=last ] {lua} -luatexbase.remove_from_callback ( - "process_input_buffer" , - "abbrevsingle" ) +%luatexbase.remove_from_callback ( +% "process_input_buffer" , +% "abbrevsingle" ) \end{minted} \begin{minted}[ frame=lines, @@ -696,7 +693,7 @@ firstnumber=last ] {latex} - }} +% }} @@ -806,11 +803,11 @@ firstnumber=last \newcommand{\smartquotes}{% \doublequoteson% \singlequotelinestarton% -\abbrevsingleon% +%\abbrevsingleon% \singlequoteson} \newcommand{\dumbquotes}{ \doublequotesoff -\abbrevsingleoff +%\abbrevsingleoff \singlequotelinestartoff \singlequotesoff} \end{minted} @@ -1505,6 +1502,8 @@ firstnumber=last \end{minted} \section{Version History} +\subsection{\normalfont\texttt{1.2.1}} +\ttfamily Suspended automatic elision support due to implementation issues \subsection{\normalfont\texttt{1.1.0}} \ttfamily 25 October 2022: Added support for elision diff --git a/Master/texmf-dist/tex/lualatex/luaquotes/luaquotes.sty b/Master/texmf-dist/tex/lualatex/luaquotes/luaquotes.sty index 4889a3786b0..f26758b9092 100644 --- a/Master/texmf-dist/tex/lualatex/luaquotes/luaquotes.sty +++ b/Master/texmf-dist/tex/lualatex/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} -- cgit v1.2.3