| 1 |
%%^^A%% um-code-msg.dtx -- part of UNICODE-MATH <wspr.io/unicode-math> |
| 2 |
%%^^A%% Definitions of error, warning, and log messages. |
| 3 |
|
| 4 |
% \section{Error messages} |
| 5 |
% \seclabel{codemsg} |
| 6 |
% |
| 7 |
% \begin{macrocode} |
| 8 |
%<*package> |
| 9 |
% \end{macrocode} |
| 10 |
% |
| 11 |
% \begin{macrocode} |
| 12 |
\char_set_catcode_space:n {32} |
| 13 |
% \end{macrocode} |
| 14 |
% |
| 15 |
% \begin{macrocode} |
| 16 |
\@@_msg_new:nn {default-math-font} |
| 17 |
{ |
| 18 |
Defining the default maths font as '\l_@@_fontname_tl'. |
| 19 |
} |
| 20 |
\@@_msg_new:nn {setup-implicit} |
| 21 |
{ |
| 22 |
Setup alphabets: implicit mode. |
| 23 |
} |
| 24 |
\@@_msg_new:nn {setup-explicit} |
| 25 |
{ |
| 26 |
Setup alphabets: explicit mode. |
| 27 |
} |
| 28 |
\@@_msg_new:nn {alph-initialise} |
| 29 |
{ |
| 30 |
Initialising \@backslashchar math#1. |
| 31 |
} |
| 32 |
\@@_msg_new:nn {setup-alph} |
| 33 |
{ |
| 34 |
Setup alphabet: #1. |
| 35 |
} |
| 36 |
\@@_msg_new:nn {no-alphabet} |
| 37 |
{ |
| 38 |
I am trying to set up alphabet"#1" but there are no configuration settings for it. |
| 39 |
(See source file "unicode-math-alphabets.dtx" to debug.) |
| 40 |
} |
| 41 |
\@@_msg_new:nn {no-named-range} |
| 42 |
{ |
| 43 |
I am trying to define new alphabet "#2" in range "#1", but range "#1" hasn't been defined yet. |
| 44 |
} |
| 45 |
\@@_msg_new:nn {missing-alphabets} |
| 46 |
{ |
| 47 |
Missing math alphabets in font "\fontname\g_@@_curr_font_cmd_tl" \\ \\ |
| 48 |
\seq_map_function:NN \l_@@_missing_alph_seq \@@_print_indent:n |
| 49 |
} |
| 50 |
\cs_new:Nn \@@_print_indent:n { \space\space\space\space #1 \\ } |
| 51 |
\@@_msg_new:nn {macro-expected} |
| 52 |
{ |
| 53 |
I've expected that #1 is a macro, but it isn't. |
| 54 |
} |
| 55 |
\@@_msg_new:nn {wrong-meaning} |
| 56 |
{ |
| 57 |
I've expected #1 to have the meaning #3, but it has the meaning #2. |
| 58 |
} |
| 59 |
\@@_msg_new:nn {patch-macro} |
| 60 |
{ |
| 61 |
I'm going to patch macro #1. |
| 62 |
} |
| 63 |
\@@_msg_new:nn {mathtools-overbracket} { |
| 64 |
Using \token_to_str:N \overbracket\ and |
| 65 |
\token_to_str:N \underbracket\ from |
| 66 |
`mathtools' package.\\ |
| 67 |
\\ |
| 68 |
Use \token_to_str:N \Uoverbracket\ and |
| 69 |
\token_to_str:N \Uunderbracket\ for |
| 70 |
original `unicode-math' definition. |
| 71 |
} |
| 72 |
\@@_msg_new:nn {mathtools-colon} { |
| 73 |
I'm going to overwrite the following commands from |
| 74 |
the `mathtools' package: \\ \\ |
| 75 |
\ \ \ \ \token_to_str:N \dblcolon, |
| 76 |
\token_to_str:N \coloneqq, |
| 77 |
\token_to_str:N \Coloneqq, |
| 78 |
\token_to_str:N \eqqcolon. \\ \\ |
| 79 |
Note that since I won't overwrite the other colon-like |
| 80 |
commands, using them will lead to inconsistencies. |
| 81 |
} |
| 82 |
\@@_msg_new:nn {colonequals} { |
| 83 |
I'm going to overwrite the following commands from |
| 84 |
the `colonequals' package: \\ \\ |
| 85 |
\ \ \ \ \token_to_str:N \ratio, |
| 86 |
\token_to_str:N \coloncolon, |
| 87 |
\token_to_str:N \minuscolon, \\ |
| 88 |
\ \ \ \ \token_to_str:N \colonequals, |
| 89 |
\token_to_str:N \equalscolon, |
| 90 |
\token_to_str:N \coloncolonequals. \\ \\ |
| 91 |
Note that since I won't overwrite the other colon-like |
| 92 |
commands, using them will lead to inconsistencies. |
| 93 |
Furthermore, changing \token_to_str:N \colonsep \c_space_tl |
| 94 |
or \token_to_str:N \doublecolonsep \c_space_tl won't have |
| 95 |
any effect on the re-defined commands. |
| 96 |
} |
| 97 |
\@@_msg_new:nn {bad-cs-in-range} |
| 98 |
{ |
| 99 |
Command `#1` in math range is not recognised as a maths symbol. |
| 100 |
Check file "unicode-math-table.tex" for allowable commands. |
| 101 |
} |
| 102 |
\@@_msg_new:nn {legacy-char-not-supported} |
| 103 |
{ |
| 104 |
Command `#1` is a legacy maths symbol that is not supported by unicode-math. |
| 105 |
} |
| 106 |
\@@_msg_new:nn {range-not-bf-sf} |
| 107 |
{ |
| 108 |
Range alphabets cannot include alphabets referring to `bf`, `sf`, or `bfsf` |
| 109 |
since they relate to input commands not output glyphs. |
| 110 |
Use `bfit` or `bfup` (etc.) to specify which. |
| 111 |
} |
| 112 |
\@@_msg_new:nn {no-main-font} |
| 113 |
{ |
| 114 |
No main maths font has been set up yet.\\If you simply want ‘the default’, use: \\ |
| 115 |
\iow_indent:n {\token_to_str:N\setmathfont{latinmodern-math.otf}} |
| 116 |
} |
| 117 |
\@@_msg_new:nn {not-ot-math} |
| 118 |
{ |
| 119 |
The first font loaded by unicode-math must be an OpenType Math font (with script=math). |
| 120 |
If you simply want ‘the default’ before loading supplementary fonts over the top for certain |
| 121 |
ranges, use: \\ |
| 122 |
\iow_indent:n {\token_to_str:N\setmathfont{latinmodern-math.otf}} |
| 123 |
} |
| 124 |
% \end{macrocode} |
| 125 |
% |
| 126 |
% \begin{macrocode} |
| 127 |
\char_set_catcode_ignore:n {32} |
| 128 |
% \end{macrocode} |
| 129 |
% |
| 130 |
% \begin{macrocode} |
| 131 |
%</package> |
| 132 |
% \end{macrocode} |
| 133 |
|
| 134 |
\endinput |
| 135 |
|
| 136 |
% /© |
| 137 |
% |
| 138 |
% ------------------------------------------------ |
| 139 |
% The UNICODE-MATH package <wspr.io/unicode-math> |
| 140 |
% ------------------------------------------------ |
| 141 |
% This package is free software and may be redistributed and/or modified under |
| 142 |
% the conditions of the LaTeX Project Public License, version 1.3c or higher |
| 143 |
% (your choice): <http://www.latex-project.org/lppl/>. |
| 144 |
% ------------------------------------------------ |
| 145 |
% Copyright 2006-2019 Will Robertson, LPPL "maintainer" |
| 146 |
% Copyright 2010-2017 Philipp Stephani |
| 147 |
% Copyright 2011-2017 Joseph Wright |
| 148 |
% Copyright 2012-2015 Khaled Hosny |
| 149 |
% ------------------------------------------------ |
| 150 |
% |
| 151 |
% ©/ |