summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/unicode-math/um-code-msg.dtx
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2018-01-07 23:46:58 +0000
committerKarl Berry <karl@freefriends.org>2018-01-07 23:46:58 +0000
commitf15ab98da224024bdcb9d2b70a263c7f6143a91b (patch)
tree8368ce018ac0869d5d556cc47b29de4770ad3e62 /Master/texmf-dist/source/latex/unicode-math/um-code-msg.dtx
parent6c0d576e1d48613f952b56e99e4dd9d59e41a265 (diff)
unicode-math (7jan18)
git-svn-id: svn://tug.org/texlive/trunk@46240 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/unicode-math/um-code-msg.dtx')
-rw-r--r--Master/texmf-dist/source/latex/unicode-math/um-code-msg.dtx135
1 files changed, 75 insertions, 60 deletions
diff --git a/Master/texmf-dist/source/latex/unicode-math/um-code-msg.dtx b/Master/texmf-dist/source/latex/unicode-math/um-code-msg.dtx
index d797e09b57d..db561dcebb3 100644
--- a/Master/texmf-dist/source/latex/unicode-math/um-code-msg.dtx
+++ b/Master/texmf-dist/source/latex/unicode-math/um-code-msg.dtx
@@ -1,4 +1,5 @@
%%^^A%% um-code-msg.dtx -- part of UNICODE-MATH <wspr.io/unicode-math>
+%%^^A%% Definitions of error, warning, and log messages.
% \section{Error messages}
% \seclabel{codemsg}
@@ -7,102 +8,116 @@
%<*package>
% \end{macrocode}
%
-% Wrapper functions:
% \begin{macrocode}
-\cs_new:Npn \@@_error:n { \msg_error:nn {unicode-math} }
-\cs_new:Npn \@@_warning:n { \msg_warning:nn {unicode-math} }
-\cs_new:Npn \@@_warning:nnn { \msg_warning:nnxx {unicode-math} }
-\cs_new:Npn \@@_log:n { \msg_log:nn {unicode-math} }
-\cs_new:Npn \@@_log:nx { \msg_log:nnx {unicode-math} }
+\char_set_catcode_space:n {32}
% \end{macrocode}
%
% \begin{macrocode}
-\msg_new:nnn {unicode-math} {no-tfrac}
+\@@_msg_new:nn {no-tfrac}
{
- Small~ fraction~ command~ \protect\tfrac\ not~ defined.\\
- Load~ amsmath~ or~ define~ it~ manually~ before~ loading~ unicode-math.
+ Small fraction command \protect\tfrac\ not defined.\\
+ Load amsmath or define it manually before loading unicode-math.
}
-\msg_new:nnn {unicode-math} {default-math-font}
+\@@_msg_new:nn {default-math-font}
{
- Defining~ the~ default~ maths~ font~ as~ '\l_@@_fontname_tl'.
+ Defining the default maths font as '\l_@@_fontname_tl'.
}
-\msg_new:nnn {unicode-math} {setup-implicit}
+\@@_msg_new:nn {setup-implicit}
{
- Setup~ alphabets:~ implicit~ mode.
+ Setup alphabets: implicit mode.
}
-\msg_new:nnn {unicode-math} {setup-explicit}
+\@@_msg_new:nn {setup-explicit}
{
- Setup~ alphabets:~ explicit~ mode.
+ Setup alphabets: explicit mode.
}
-\msg_new:nnn {unicode-math} {alph-initialise}
+\@@_msg_new:nn {alph-initialise}
{
- Initialising~ \@backslashchar math#1.
+ Initialising \@backslashchar math#1.
}
-\msg_new:nnn {unicode-math} {setup-alph}
+\@@_msg_new:nn {setup-alph}
{
- Setup~ alphabet:~ #1.
+ Setup alphabet: #1.
}
-\msg_new:nnn {unicode-math} {no-alphabet}
+\@@_msg_new:nn {no-alphabet}
{
- I~ am~ trying~ to~ set~ up~ alphabet~"#1"~ but~ there~ are~ no~ configuration~ settings~ for~ it.~
- (See~ source~ file~ "unicode-math-alphabets.dtx"~ to~ debug.)
+ I am trying to set up alphabet"#1" but there are no configuration settings for it.
+ (See source file "unicode-math-alphabets.dtx" to debug.)
}
-\msg_new:nnn { unicode-math } { no-named-range }
+\@@_msg_new:nn {no-named-range}
{
- I~ am~ trying~ to~ define~ new~ alphabet~ "#2"~ in~ range~ "#1",~ but~ range~ "#1"~ hasn't~ been~ defined~ yet.
+ I am trying to define new alphabet "#2" in range "#1", but range "#1" hasn't been defined yet.
}
-\msg_new:nnn { unicode-math } { missing-alphabets }
+\@@_msg_new:nn {missing-alphabets}
{
- Missing~math~alphabets~in~font~ "\fontname\l_@@_font" \\ \\
+ Missingmathalphabetsinfont "\fontname\g_@@_curr_font_cmd_tl" \\ \\
\seq_map_function:NN \l_@@_missing_alph_seq \@@_print_indent:n
}
\cs_new:Nn \@@_print_indent:n { \space\space\space\space #1 \\ }
-\msg_new:nnn {unicode-math} {macro-expected}
+\@@_msg_new:nn {macro-expected}
{
- I've~ expected~ that~ #1~ is~ a~ macro,~ but~ it~ isn't.
+ I've expected that #1 is a macro, but it isn't.
}
-\msg_new:nnn {unicode-math} {wrong-meaning}
+\@@_msg_new:nn {wrong-meaning}
{
- I've~ expected~ #1~ to~ have~ the~ meaning~ #3,~ but~ it~ has~ the~ meaning~ #2.
+ I've expected #1 to have the meaning #3, but it has the meaning #2.
}
-\msg_new:nnn {unicode-math} {patch-macro}
+\@@_msg_new:nn {patch-macro}
{
- I'm~ going~ to~ patch~ macro~ #1.
+ I'm going to patch macro #1.
}
-\msg_new:nnn { unicode-math } { mathtools-overbracket } {
- Using~ \token_to_str:N \overbracket\ and~
- \token_to_str:N \underbracket\ from~
- `mathtools'~ package.\\
+\@@_msg_new:nn {mathtools-overbracket} {
+ Using \token_to_str:N \overbracket\ and
+ \token_to_str:N \underbracket\ from
+ `mathtools' package.\\
\\
- Use~ \token_to_str:N \Uoverbracket\ and~
- \token_to_str:N \Uunderbracket\ for~
- original~ `unicode-math'~ definition.
+ Use \token_to_str:N \Uoverbracket\ and
+ \token_to_str:N \Uunderbracket\ for
+ original `unicode-math' definition.
}
-\msg_new:nnn { unicode-math } { mathtools-colon } {
- I'm~ going~ to~ overwrite~ the~ following~ commands~ from~
- the~ `mathtools'~ package: \\ \\
- \ \ \ \ \token_to_str:N \dblcolon,~
- \token_to_str:N \coloneqq,~
- \token_to_str:N \Coloneqq,~
+\@@_msg_new:nn {mathtools-colon} {
+ I'm going to overwrite the following commands from
+ the `mathtools' package: \\ \\
+ \ \ \ \ \token_to_str:N \dblcolon,
+ \token_to_str:N \coloneqq,
+ \token_to_str:N \Coloneqq,
\token_to_str:N \eqqcolon. \\ \\
- Note~ that~ since~ I~ won't~ overwrite~ the~ other~ colon-like~
- commands,~ using~ them~ will~ lead~ to~ inconsistencies.
+ Note that since I won't overwrite the other colon-like
+ commands, using them will lead to inconsistencies.
}
-\msg_new:nnn { unicode-math } { colonequals } {
- I'm~ going~ to~ overwrite~ the~ following~ commands~ from~
- the~ `colonequals'~ package: \\ \\
- \ \ \ \ \token_to_str:N \ratio,~
- \token_to_str:N \coloncolon,~
+\@@_msg_new:nn {colonequals} {
+ I'm going to overwrite the following commands from
+ the `colonequals' package: \\ \\
+ \ \ \ \ \token_to_str:N \ratio,
+ \token_to_str:N \coloncolon,
\token_to_str:N \minuscolon, \\
- \ \ \ \ \token_to_str:N \colonequals,~
- \token_to_str:N \equalscolon,~
+ \ \ \ \ \token_to_str:N \colonequals,
+ \token_to_str:N \equalscolon,
\token_to_str:N \coloncolonequals. \\ \\
- Note~ that~ since~ I~ won't~ overwrite~ the~ other~ colon-like~
- commands,~ using~ them~ will~ lead~ to~ inconsistencies.~
- Furthermore,~ changing~ \token_to_str:N \colonsep \c_space_tl
- or~ \token_to_str:N \doublecolonsep \c_space_tl won't~ have~
- any~ effect~ on~ the~ re-defined~ commands.
+ Note that since I won't overwrite the other colon-like
+ commands, using them will lead to inconsistencies.
+ Furthermore, changing \token_to_str:N \colonsep \c_space_tl
+ or \token_to_str:N \doublecolonsep \c_space_tl won't have
+ any effect on the re-defined commands.
}
+\@@_msg_new:nn {bad-cs-in-range}
+ {
+ Command `#1` in math range is not recognised as a maths symbol.
+ Check file "unicode-math-table.tex" for allowable commands.
+ }
+\@@_msg_new:nn {legacy-char-not-supported}
+ {
+ Command `#1` is a legacy maths symbol that is not supported by unicode-math.
+ }
+\@@_msg_new:nn {range-not-bf-sf}
+ {
+ Range alphabets cannot include alphabets referring to `bf`, `sf`, or `bfsf`
+ since they relate to input commands not output glyphs.
+ Use `bfit` or `bfup` (etc.) to specify which.
+ }
+% \end{macrocode}
+%
+% \begin{macrocode}
+\char_set_catcode_ignore:n {32}
% \end{macrocode}
%
% \begin{macrocode}
@@ -120,7 +135,7 @@
% the conditions of the LaTeX Project Public License, version 1.3c or higher
% (your choice): <http://www.latex-project.org/lppl/>.
% ------------------------------------------------
-% Copyright 2006-2017 Will Robertson, LPPL "maintainer"
+% Copyright 2006-2018 Will Robertson, LPPL "maintainer"
% Copyright 2010-2017 Philipp Stephani
% Copyright 2011-2017 Joseph Wright
% Copyright 2012-2015 Khaled Hosny