Skip to content

Commit

Permalink
spellchecking (US) and resulting rollback test file updates
Browse files Browse the repository at this point in the history
  • Loading branch information
FrankMittelbach committed Feb 3, 2025
1 parent 9419599 commit 008286a
Show file tree
Hide file tree
Showing 29 changed files with 446 additions and 446 deletions.
52 changes: 26 additions & 26 deletions base/lthooks.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -775,10 +775,10 @@
% When the hook code is finally sorted all rules that apply are acted
% upon, the others are ignored.
%
% This offers the neccessary flexibility to handle complicated
% This offers the necessary flexibility to handle complicated
% relationships between code from different packages and set this up
% beforehand, whether or not the packages are actually loaded in a
% specific document. The downside of this is that missspellings of
% specific document. The downside of this is that misspellings of
% hook names or code labels will not raise any error, instead the rule
% will simply never apply!
%
Expand Down Expand Up @@ -1698,7 +1698,7 @@
% will be replaced by \verb|arg-1|, \verb|#2| by \verb|arg-2| and so
% on. If, at the point of usage, the programmer provides more
% arguments than the hook is declared to take, the excess arguments
% are simply ignored by the hook. Behaviour is
% are simply ignored by the hook. Behavior is
% unpredictable\footnote
% {The hook \emph{will} take the declared number of arguments, and
% what will happen depends on what was grabbed, and what the hook
Expand Down Expand Up @@ -2911,7 +2911,7 @@
% code with arguments to a hook without prior knowledge of the number
% of arguments of that hook, so \pkg{lthooks} assumes~9 until the
% hook is properly declared and the number of arguments is known.
% \cs{@@_normalise_cs_args:nn} does the normalisation by using the
% \cs{@@_normalise_cs_args:nn} does the normalization by using the
% \cs[no-index]{c_@@_\meta{hook}_parameter_tl} defined just above.
% \begin{macrocode}
\@@_normalise_cs_args:nn { _toplevel } {#1}
Expand Down Expand Up @@ -3920,7 +3920,7 @@
% \begin{macro}{\@@_gput_undeclared_hook:nnn}
% Often it may happen that a package $A$ defines a hook \verb=foo=,
% but package $B$, that adds code to that hook, is loaded before $A$.
% In such case we need to add code to the hook before its declared.
% In such case we need to add code to the hook before it is declared.
% An implicitly declared hook doesn't have arguments (in principle),
% so use \cs{c_false_bool} here.
% \begin{macrocode}
Expand Down Expand Up @@ -3949,7 +3949,7 @@
% next-execution hooks does the same: it defers the code to
% \cs{hook_gput_next_code:nn} if the generic hook was declared, or
% to \cs{@@_gput_next_do:nn} otherwise.
% \changes{v1.0p}{2021/08/25}{Standardise generic hook names (gh/648)}
% \changes{v1.0p}{2021/08/25}{Standardize generic hook names (gh/648)}
% \changes{v1.1d}{2023/05/21}
% {Changes to allow support arguments in cmd hooks (cmd-args).}
% \begin{macrocode}
Expand All @@ -3973,7 +3973,7 @@
%<latexrelease>\EndIncludeInRelease
%<latexrelease>\IncludeInRelease{2021/11/15}
%<latexrelease> {\@@_try_declaring_generic_hook:nnn}
%<latexrelease> {Standardise~generic~hook~names}
%<latexrelease> {Standardize~generic~hook~names}
%<latexrelease>\cs_gset_protected:Npn \@@_try_declaring_generic_hook:nnn #1
%<latexrelease> {
%<latexrelease> \@@_try_declaring_generic_hook:wnTF #1 / / / \scan_stop:
Expand All @@ -3994,7 +3994,7 @@
%<latexrelease>\EndIncludeInRelease
%<latexrelease>\IncludeInRelease{2020/10/01}
%<latexrelease> {\@@_try_declaring_generic_hook:nnn}
%<latexrelease> {Standardise~generic~hook~names}
%<latexrelease> {Standardize~generic~hook~names}
%<latexrelease>\cs_new_protected:Npn
%<latexrelease> \@@_try_declaring_generic_hook:nnn #1
%<latexrelease> {
Expand Down Expand Up @@ -4182,7 +4182,7 @@
% \begin{macrocode}
%<latexrelease>\IncludeInRelease{2021/11/15}
%<latexrelease> {\@@_try_declaring_generic_hook:wn}
%<latexrelease> {Standardise~generic~hook~names}
%<latexrelease> {Standardize~generic~hook~names}
%<latexrelease>\prg_new_protected_conditional:Npnn
%<latexrelease> \@@_try_declaring_generic_hook:wn
%<latexrelease> #1 / #2 / #3 / #4 \scan_stop: #5 { TF }
Expand Down Expand Up @@ -4286,10 +4286,10 @@
% executes the \meta{true} branch, otherwise \meta{false}.
% \begin{macrocode}
%<latexrelease>\IncludeInRelease{2021/11/15}{\@@_if_file_hook:w}
%<latexrelease> {Standardise~generic~hook~names}
%<latexrelease> {Standardize~generic~hook~names}
%<latexrelease>\EndIncludeInRelease
%<latexrelease>\IncludeInRelease{2020/10/01}{\@@_if_file_hook:w}
%<latexrelease> {Standardise~generic~hook~names}
%<latexrelease> {Standardize~generic~hook~names}
%<latexrelease>\prg_new_conditional:Npnn \@@_if_file_hook:w
%<latexrelease> #1 / #2 / #3 \s_@@_mark { TF }
%<latexrelease> {
Expand All @@ -4316,7 +4316,7 @@
%
% \begin{macrocode}
%<latexrelease>\IncludeInRelease{2021/11/15}{\@@_file_hook_normalize:n}
%<latexrelease> {Standardise~generic~hook~names}
%<latexrelease> {Standardize~generic~hook~names}
%<latexrelease>\EndIncludeInRelease
% \end{macrocode}
%
Expand All @@ -4328,7 +4328,7 @@
% have to be \verb|\AddToHook{file/./mypath//file.tex/after}|.
% \begin{macrocode}
%<latexrelease>\IncludeInRelease{2020/10/01}{\@@_file_hook_normalize:n}
%<latexrelease> {Standardise~generic~hook~names}
%<latexrelease> {Standardize~generic~hook~names}
%<latexrelease>\cs_new:Npn \@@_file_hook_normalize:n #1
%<latexrelease> { \@@_strip_double_slash:n {#1} }
%<latexrelease>\cs_new:Npn \@@_strip_double_slash:n #1
Expand Down Expand Up @@ -4375,7 +4375,7 @@
% \end{description}
% \begin{macrocode}
%<latexrelease>\IncludeInRelease{2021/11/15}{\c_@@_generics_prop}
%<latexrelease> {Standardise~generic~hook~names}
%<latexrelease> {Standardize~generic~hook~names}
\clist_map_inline:nn { cmd , env , file , package , class , include }
{
\tl_const:cn { c_@@_generic_#1/./before_tl } { + }
Expand Down Expand Up @@ -4404,7 +4404,7 @@
%
% \begin{macrocode}
%<latexrelease>\IncludeInRelease{2020/10/01}{\c_@@_generics_prop}
%<latexrelease> {Standardise~generic~hook~names}
%<latexrelease> {Standardize~generic~hook~names}
%<latexrelease>\prop_const_from_keyval:Nn \c_@@_generics_prop
%<latexrelease> {cmd=,env=,file=,package=,class=,include=}
%<latexrelease>\EndIncludeInRelease
Expand All @@ -4418,13 +4418,13 @@
% (the |ii| and |iii| names are kept for the deprecation cycle):
% \begin{macrocode}
%<latexrelease>\IncludeInRelease{2021/11/15}{\c_@@_generics_reversed_ii_prop}
%<latexrelease> {Standardise~generic~hook~names}
%<latexrelease> {Standardize~generic~hook~names}
%<latexrelease>\EndIncludeInRelease
% \end{macrocode}
%
% \begin{macrocode}
%<latexrelease>\IncludeInRelease{2020/10/01}{\c_@@_generics_reversed_ii_prop}
%<latexrelease> {Standardise~generic~hook~names}
%<latexrelease> {Standardize~generic~hook~names}
%<latexrelease>\prop_const_from_keyval:Nn
%<latexrelease> \c_@@_generics_reversed_ii_prop {after=,end=}
%<latexrelease>\prop_const_from_keyval:Nn
Expand Down Expand Up @@ -4584,7 +4584,7 @@
% \begin{macro}{\@@_cs_gput_right_fast:nnn,\@@_cs_gput_right_slow:nnn}
% \begin{macro}{\@@_code_gset_auxi:nnnn,\@@_code_gset_auxi:eeen}
% This macro is used to append code to the \verb|toplevel| and
% \verb|next| token lists, trating them correctly depending on their
% \verb|next| token lists, treating them correctly depending on their
% number of arguments, and depending if the code being added should
% have parameter tokens understood as parameters, or doubled to be
% stored as parameter tokens.
Expand Down Expand Up @@ -4641,7 +4641,7 @@
% Here we take the existing code in the macro, expand it with as many
% arguments as it takes, then double the hashes so the code can be
% reused. \pho{Maybe can be improved. The case of adding to an empty
% cs can be optimised by quickly checking \cs{cs_replacement_spec}.}
% cs can be optimized by quickly checking \cs{cs_replacement_spec}.}
% \begin{macrocode}
{
\exp_args:NNo \exp_args:No \@@_double_hashes:n
Expand Down Expand Up @@ -4733,7 +4733,7 @@
% \end{macro}
%
% \begin{macro}{\@@_normalise_cs_args:nn}
% This macro normalises the parameters of the macros
% This macro normalizes the parameters of the macros
% \cs[no-index]{@@\meta{type}\textvisiblespace\meta{hook}} to take the
% right number of arguments after a hook is declared. At this point
% we know \cs[no-index]{c_@@_\meta{hook}_parameter_tl} exists, so use
Expand Down Expand Up @@ -4793,7 +4793,7 @@
% \end{macrocode}
% First, call \cs{@@_set_normalise_fn:nn} with the hook name to set
% everything up, then we'll loop over the
% hook's code pool applying the normalisation above. After that's
% hook's code pool applying the normalization above. After that's
% done, copy the temporary property list back to the hook's.
% \begin{macrocode}
\@@_set_normalise_fn:nn {#1} { Offending~label:~'##1' }
Expand Down Expand Up @@ -6655,7 +6655,7 @@
% \changes{v1.1a}{2023/04/06}
% {Changes to add hook arguments (hook-args).}
% \changes{v1.1c}{2023/04/19}
% {Initialise hook structure when adding 'next' code (gh/1052).}
% {Initialize hook structure when adding 'next' code (gh/1052).}
% \begin{macrocode}
%<latexrelease>\IncludeInRelease{2023/06/01}{\@@_gput_next_do:nn}
%<latexrelease> {Hooks~with~args}
Expand Down Expand Up @@ -6770,7 +6770,7 @@
%
% \begin{macrocode}
%<latexrelease>\IncludeInRelease{2021/11/15}{\hook_use:n}
%<latexrelease> {Standardise~generic~hook~names}
%<latexrelease> {Standardize~generic~hook~names}
%<latexrelease>\cs_new_protected:Npn \hook_use:n #1
%<latexrelease> {
%<latexrelease> \tl_if_exist:cT { @@~#1 }
Expand All @@ -6793,7 +6793,7 @@
%
% \begin{macrocode}
%<latexrelease>\IncludeInRelease{2020/10/01}{\hook_use:n}
%<latexrelease> {Standardise~generic~hook~names}
%<latexrelease> {Standardize~generic~hook~names}
%<latexrelease>\cs_new_protected:Npn \hook_use:n #1
%<latexrelease> {
%<latexrelease> \tl_if_exist:cTF { @@~#1 }
Expand Down Expand Up @@ -6898,10 +6898,10 @@
% \cs{@@_preamble_hook:n} if so, then uses the hook.
% \begin{macrocode}
%<latexrelease>\IncludeInRelease{2021/11/15}{\@@_use:wn}
%<latexrelease> {Standardise~generic~hook~names}
%<latexrelease> {Standardize~generic~hook~names}
%<latexrelease>\EndIncludeInRelease
%<latexrelease>\IncludeInRelease{2020/10/01}{\@@_use:wn}
%<latexrelease> {Standardise~generic~hook~names}
%<latexrelease> {Standardize~generic~hook~names}
%<latexrelease>\cs_new:Npn \@@_use:wn #1 / #2 \s_@@_mark #3
%<latexrelease> {
%<latexrelease> \str_if_eq:nnTF {#1} { file }
Expand Down
30 changes: 15 additions & 15 deletions base/testfiles-lthooks/lthooks-rollback-args.tlg
Original file line number Diff line number Diff line change
Expand Up @@ -152,20 +152,20 @@ Applying: [....-..-..] Providing hooks on input line ....
Skipping: [....-..-..] Hooks with args on input line ....
Applying: [....-..-..] Hooks with args on input line ....
Skipping: [....-..-..] Hooks with args on input line ....
Skipping: [....-..-..] Standardise generic hook names on input line ....
Applying: [....-..-..] Standardise generic hook names on input line ....
Skipping: [....-..-..] Standardize generic hook names on input line ....
Applying: [....-..-..] Standardize generic hook names on input line ....
Skipping: [....-..-..] Hooks with args on input line ....
Skipping: [....-..-..] Standardise generic hook names on input line ....
Skipping: [....-..-..] Standardize generic hook names on input line ....
Skipping: [....-..-..] Support cmd hooks on input line ....
Applying: [....-..-..] Support cmd hooks on input line ....
Skipping: [....-..-..] Standardise generic hook names on input line ....
Applying: [....-..-..] Standardise generic hook names on input line ....
Skipping: [....-..-..] Standardise generic hook names on input line ....
Applying: [....-..-..] Standardise generic hook names on input line ....
Skipping: [....-..-..] Standardise generic hook names on input line ....
Applying: [....-..-..] Standardise generic hook names on input line ....
Skipping: [....-..-..] Standardise generic hook names on input line ....
Applying: [....-..-..] Standardise generic hook names on input line ....
Skipping: [....-..-..] Standardize generic hook names on input line ....
Applying: [....-..-..] Standardize generic hook names on input line ....
Skipping: [....-..-..] Standardize generic hook names on input line ....
Applying: [....-..-..] Standardize generic hook names on input line ....
Skipping: [....-..-..] Standardize generic hook names on input line ....
Applying: [....-..-..] Standardize generic hook names on input line ....
Skipping: [....-..-..] Standardize generic hook names on input line ....
Applying: [....-..-..] Standardize generic hook names on input line ....
Skipping: [....-..-..] Hooks with args on input line ....
Applying: [....-..-..] Hooks with args on input line ....
Skipping: [....-..-..] Hooks with args on input line ....
Expand Down Expand Up @@ -207,14 +207,14 @@ Applying: [....-..-..] Hooks with args on input line ....
Skipping: [....-..-..] Hooks with args on input line ....
Applying: [....-..-..] Hooks with args on input line ....
Skipping: [....-..-..] Hooks with args on input line ....
Skipping: [....-..-..] Standardise generic hook names on input line ....
Applying: [....-..-..] Standardise generic hook names on input line ....
Skipping: [....-..-..] Standardize generic hook names on input line ....
Applying: [....-..-..] Standardize generic hook names on input line ....
Skipping: [....-..-..] Hooks with args on input line ....
Applying: [....-..-..] Hooks with args on input line ....
Skipping: [....-..-..] Hooks with args on input line ....
Applying: [....-..-..] Hooks with args on input line ....
Skipping: [....-..-..] Standardise generic hook names on input line ....
Applying: [....-..-..] Standardise generic hook names on input line ....
Skipping: [....-..-..] Standardize generic hook names on input line ....
Applying: [....-..-..] Standardize generic hook names on input line ....
Skipping: [....-..-..] Hooks with args on input line ....
Applying: [....-..-..] Hooks with args on input line ....
Skipping: [....-..-..] Hooks with args on input line ....
Expand Down
30 changes: 15 additions & 15 deletions base/testfiles/tlb-latexrelease-rollback-2020-10-01.luatex.tlg
Original file line number Diff line number Diff line change
Expand Up @@ -162,20 +162,20 @@ Applying: [....-..-..] Providing hooks on input line ....
Skipping: [....-..-..] Hooks with args on input line ....
Applying: [....-..-..] Hooks with args on input line ....
Skipping: [....-..-..] Hooks with args on input line ....
Skipping: [....-..-..] Standardise generic hook names on input line ....
Applying: [....-..-..] Standardise generic hook names on input line ....
Skipping: [....-..-..] Standardize generic hook names on input line ....
Applying: [....-..-..] Standardize generic hook names on input line ....
Skipping: [....-..-..] Hooks with args on input line ....
Skipping: [....-..-..] Standardise generic hook names on input line ....
Skipping: [....-..-..] Standardize generic hook names on input line ....
Skipping: [....-..-..] Support cmd hooks on input line ....
Applying: [....-..-..] Support cmd hooks on input line ....
Skipping: [....-..-..] Standardise generic hook names on input line ....
Applying: [....-..-..] Standardise generic hook names on input line ....
Skipping: [....-..-..] Standardise generic hook names on input line ....
Applying: [....-..-..] Standardise generic hook names on input line ....
Skipping: [....-..-..] Standardise generic hook names on input line ....
Applying: [....-..-..] Standardise generic hook names on input line ....
Skipping: [....-..-..] Standardise generic hook names on input line ....
Applying: [....-..-..] Standardise generic hook names on input line ....
Skipping: [....-..-..] Standardize generic hook names on input line ....
Applying: [....-..-..] Standardize generic hook names on input line ....
Skipping: [....-..-..] Standardize generic hook names on input line ....
Applying: [....-..-..] Standardize generic hook names on input line ....
Skipping: [....-..-..] Standardize generic hook names on input line ....
Applying: [....-..-..] Standardize generic hook names on input line ....
Skipping: [....-..-..] Standardize generic hook names on input line ....
Applying: [....-..-..] Standardize generic hook names on input line ....
Skipping: [....-..-..] Hooks with args on input line ....
Applying: [....-..-..] Hooks with args on input line ....
Skipping: [....-..-..] Hooks with args on input line ....
Expand Down Expand Up @@ -217,14 +217,14 @@ Applying: [....-..-..] Hooks with args on input line ....
Skipping: [....-..-..] Hooks with args on input line ....
Applying: [....-..-..] Hooks with args on input line ....
Skipping: [....-..-..] Hooks with args on input line ....
Skipping: [....-..-..] Standardise generic hook names on input line ....
Applying: [....-..-..] Standardise generic hook names on input line ....
Skipping: [....-..-..] Standardize generic hook names on input line ....
Applying: [....-..-..] Standardize generic hook names on input line ....
Skipping: [....-..-..] Hooks with args on input line ....
Applying: [....-..-..] Hooks with args on input line ....
Skipping: [....-..-..] Hooks with args on input line ....
Applying: [....-..-..] Hooks with args on input line ....
Skipping: [....-..-..] Standardise generic hook names on input line ....
Applying: [....-..-..] Standardise generic hook names on input line ....
Skipping: [....-..-..] Standardize generic hook names on input line ....
Applying: [....-..-..] Standardize generic hook names on input line ....
Skipping: [....-..-..] Hooks with args on input line ....
Applying: [....-..-..] Hooks with args on input line ....
Skipping: [....-..-..] Hooks with args on input line ....
Expand Down
Loading

0 comments on commit 008286a

Please sign in to comment.