[latex3-commits] [git/LaTeX3-latex3-babel] master: Disable some warnings with hyperref (f383db1)

Joseph Wright joseph.wright at morningstar2.co.uk
Mon Apr 1 19:40:36 CEST 2019


Repository : https://github.com/latex3/babel
On branch  : master
Link       : https://github.com/latex3/babel/commit/f383db1f5bca5ddc29dadb93e50905ebac369709

>---------------------------------------------------------------

commit f383db1f5bca5ddc29dadb93e50905ebac369709
Author: Javier Bezos <jbezos at users.noreply.github.com>
Date:   Wed Mar 27 18:46:41 2019 +0100

    Disable some warnings with hyperref


>---------------------------------------------------------------

f383db1f5bca5ddc29dadb93e50905ebac369709
 babel.dtx |   17 ++++++++++++-----
 1 file changed, 12 insertions(+), 5 deletions(-)

diff --git a/babel.dtx b/babel.dtx
index ab551fe..48d7b72 100644
--- a/babel.dtx
+++ b/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