[latex3-commits] [git/LaTeX3-latex3-latex2e] master: Disable some warnings with hyperref (2ef86af)
GitHub
noreply at github.com
Wed Mar 27 18:46:41 CET 2019
Repository : https://github.com/latex3/latex2e
On branch : master
Link : https://github.com/latex3/latex2e/commit/2ef86af2af7b2275617101b2a1f70e6196c644bf
>---------------------------------------------------------------
commit 2ef86af2af7b2275617101b2a1f70e6196c644bf
Author: Javier Bezos <jbezos at users.noreply.github.com>
Date: Wed Mar 27 18:46:41 2019 +0100
Disable some warnings with hyperref
>---------------------------------------------------------------
2ef86af2af7b2275617101b2a1f70e6196c644bf
required/babel/babel.dtx | 17 ++++++++++++-----
1 file changed, 12 insertions(+), 5 deletions(-)
diff --git a/required/babel/babel.dtx b/required/babel/babel.dtx
index ab551fe..48d7b72 100644
--- a/required/babel/babel.dtx
+++ b/required/babel/babel.dtx
@@ -1888,9 +1888,9 @@ to select fonts in addition to the three basic families.
rendered incorrectly by \textsf{fontspec}, so double check the
results. \xetex{} fares better, but some font are still
problematic.}). You may also pass some options to \textsf{fontspec}:
- with |silent|, the annoying warnings about unavailable scripts or
- languages are not shown (they are only really useful when the document
- format is being set up).
+ with |silent|, the warnings about unavailable scripts or languages
+ are not shown (they are only really useful when the document format
+ is being set up).
\end{note}
\begin{note}
@@ -9386,12 +9386,19 @@ help from Bernd Raichle, for which I am grateful.
\fi
% \end{macrocode}
%
-% A tool for weak L (mainly digits).
+% A tool for weak L (mainly digits). We also disable warnings with
+% \textsf{hyperref}.
%
% \changes{3.16}{2018/01/02}{New macro \cs{babelsublr}}
%
% \begin{macrocode}
- \DeclareRobustCommand\babelsublr[1]{\leavevmode{\bbl at textdir\z@#1}}
+\DeclareRobustCommand\babelsublr[1]{\leavevmode{\bbl at textdir\z@#1}}
+\AtBeginDocument{%
+ \ifx\pdfstringdefDisableCommands\@undefined\else
+ \ifx\pdfstringdefDisableCommands\relax\else
+ \pdfstringdefDisableCommands{\let\babelsublr\@firstofone}%
+ \fi
+ \fi}
% \end{macrocode}
%
% \subsection{Local Language Configuration}
More information about the latex3-commits
mailing list