[latex3-commits] [git/LaTeX3-latex3-latex2e] ProvideHook: use straight quotes in messages (5f17e406)
Frank Mittelbach
frank.mittelbach at latex-project.org
Fri Apr 30 11:20:25 CEST 2021
Repository : https://github.com/latex3/latex2e
On branch : ProvideHook
Link : https://github.com/latex3/latex2e/commit/5f17e40673663220bb636902a01063ac1d27c53d
>---------------------------------------------------------------
commit 5f17e40673663220bb636902a01063ac1d27c53d
Author: Frank Mittelbach <frank.mittelbach at latex-project.org>
Date: Fri Apr 30 11:20:25 2021 +0200
use straight quotes in messages
>---------------------------------------------------------------
5f17e40673663220bb636902a01063ac1d27c53d
base/lthooks.dtx | 46 +++++++++++++++++++++++-----------------------
1 file changed, 23 insertions(+), 23 deletions(-)
diff --git a/base/lthooks.dtx b/base/lthooks.dtx
index e7111234..45d6a78a 100644
--- a/base/lthooks.dtx
+++ b/base/lthooks.dtx
@@ -4540,8 +4540,8 @@
% \begin{macrocode}
\__kernel_msg_new:nnnn { hooks } { labels-incompatible }
{
- Labels~`#1'~and~`#2'~are~incompatible
- \str_if_eq:nnF {#3} {??} { ~in~hook~`#3' } .~
+ Labels~'#1'~and~'#2'~are~incompatible
+ \str_if_eq:nnF {#3} {??} { ~in~hook~'#3' } .~
\int_compare:nNnTF {#4} = { 1 }
{ The~ code~ for~ both~ labels~ will~ be~ dropped. }
{ You~ may~ see~ errors~ later. }
@@ -4552,7 +4552,7 @@
%
% \begin{macrocode}
\__kernel_msg_new:nnnn { hooks } { exists }
- { Hook~`#1'~ has~ already~ been~ declared. }
+ { Hook~'#1'~ has~ already~ been~ declared. }
{ There~ already~ exists~ a~ hook~ declaration~ with~ this~
name.\\
Please~ use~ a~ different~ name~ for~ your~ hook.}
@@ -4561,9 +4561,9 @@
%
% \begin{macrocode}
\__kernel_msg_new:nnnn { hooks } { hook-disabled }
- { Cannot~add~code~to~disabled~hook~`#1'. }
+ { Cannot~add~code~to~disabled~hook~'#1'. }
{
- The~hook~`#1'~you~tried~to~add~code~to~was~previously~disabled~
+ The~hook~'#1'~you~tried~to~add~code~to~was~previously~disabled~
with~\iow_char:N\\hook_disable:n~or~\iow_char:N\\DisableHook,~so~
it~cannot~have~code~added~to~it.
}
@@ -4573,7 +4573,7 @@
\__kernel_msg_new:nnn { hooks } { empty-label }
{
Empty~code~label~\msg_line_context:.~
- Using~`\@@_currname_or_default:'~instead.
+ Using~'\@@_currname_or_default:'~instead.
}
% \end{macrocode}
%
@@ -4587,19 +4587,19 @@
%
% \begin{macrocode}
\__kernel_msg_new:nnnn { hooks } { unknown-rule }
- { Unknown~ relationship~ `#3'~
- between~ labels~ `#2'~ and~ `#4'~
- \str_if_eq:nnF {#1} {??} { ~in~hook~`#1' }. ~
+ { Unknown~ relationship~ '#3'~
+ between~ labels~ '#2'~ and~ '#4'~
+ \str_if_eq:nnF {#1} {??} { ~in~hook~'#1' }. ~
Perhaps~ a~ missspelling?
}
{
The~ relation~ used~ not~ known~ to~ the~ system.~ Allowed~ values~ are~
- `before'~ or~ `<',~
- `after'~ or~ `>',~
- `incompatible-warning',~
- `incompatible-error',~
- `voids'~ or~
- `unrelated'.
+ 'before'~ or~ '<',~
+ 'after'~ or~ '>',~
+ 'incompatible-warning',~
+ 'incompatible-error',~
+ 'voids'~ or~
+ 'unrelated'.
}
% \end{macrocode}
%
@@ -4607,12 +4607,12 @@
\__kernel_msg_new:nnnn { hooks } { misused-top-level }
{
Illegal~\iow_char:N \\AddToHook{#1}[top-level]{...}.\\
- `top-level'~is~reserved~for~the~user's~document.
+ 'top-level'~is~reserved~for~the~user's~document.
}
{
- The~`top-level'~label~is~meant~for~user~code~only,~and~should~only~
+ The~'top-level'~label~is~meant~for~user~code~only,~and~should~only~
be~used~(sparingly)~in~the~main~document.~Use~the~default~label~
- `\@@_currname_or_default:'~for~this~\@cls at pkg,~or~another~
+ '\@@_currname_or_default:'~for~this~\@cls at pkg,~or~another~
suitable~label.
}
% \end{macrocode}
@@ -4620,7 +4620,7 @@
% \begin{macrocode}
\__kernel_msg_new:nnn { hooks } { set-top-level }
{
- You~cannot~change~the~default~label~#1~`top-level'.~Illegal \\
+ You~cannot~change~the~default~label~#1~'top-level'.~Illegal \\
\use:nn { ~ } { ~ } \iow_char:N \\#2{#3} \\
\msg_line_context:.
}
@@ -4644,7 +4644,7 @@
\__kernel_msg_new:nnn { hooks } { missing-pop-label }
{
Missing~\iow_char:N \\PopDefaultHookLabel. \\
- The~label~`#1'~was~pushed~but~never~popped.~Something~is~wrong.
+ The~label~'#1'~was~pushed~but~never~popped.~Something~is~wrong.
}
% \end{macrocode}
%
@@ -4661,18 +4661,18 @@
% \begin{macrocode}
\__kernel_msg_new:nnn { hooks } { provide-disabled }
{
- Can't~ provide~ hook~ `#1'~ because~ it~ is~ disabled!
+ Can't~ provide~ hook~ '#1'~ because~ it~ is~ disabled!
}
% \end{macrocode}
%
% \begin{macrocode}
\__kernel_msg_new:nnnn { hooks } { provide-error }
{
- Hook~`#1'~ already~ declared~ as~ a~
+ Hook~'#1'~ already~ declared~ as~ a~
\@@_if_reversed:nTF {#1} { reversed } { normal }~ hook!
}
{
- You~ attempted~ to~ provide~ the~ hook~`#1'~ as~ a~
+ You~ attempted~ to~ provide~ the~ hook~'#1'~ as~ a~
\@@_if_reversed:nTF {#1} { normal } { reversed }~ hook,~ but~ it~
was~ already~ previously~ declared~ as~ a~
\@@_if_reversed:nTF {#1} { reversed } { normal }~ hook.~
More information about the latex3-commits
mailing list.