summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2021-02-06 22:32:17 +0000
committerKarl Berry <karl@freefriends.org>2021-02-06 22:32:17 +0000
commit39378a05890e8acd64706acf9e74410d82bf96a1 (patch)
treef64e028975a18b933bbef05040389f280f10695b /Master/texmf-dist/source
parent8d4bbf8fe35ffb78e4883f175e2e27faeb05f00a (diff)
babel-swedish (6feb21)
git-svn-id: svn://tug.org/texlive/trunk@57647 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source')
-rw-r--r--Master/texmf-dist/source/generic/babel-swedish/swedish.dtx38
1 files changed, 21 insertions, 17 deletions
diff --git a/Master/texmf-dist/source/generic/babel-swedish/swedish.dtx b/Master/texmf-dist/source/generic/babel-swedish/swedish.dtx
index 6beb68787b5..67b6b049d43 100644
--- a/Master/texmf-dist/source/generic/babel-swedish/swedish.dtx
+++ b/Master/texmf-dist/source/generic/babel-swedish/swedish.dtx
@@ -2,10 +2,10 @@
%
% Copyright 1989-2005 Johannes L. Braams and any individual authors
% listed elsewhere in this file. All rights reserved.
-%
+%
% This file is part of the Babel system.
% --------------------------------------
-%
+%
% It may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3
% of this license or (at your option) any later version.
@@ -13,20 +13,19 @@
% http://www.latex-project.org/lppl.txt
% and version 1.3 or later is part of all distributions of LaTeX
% version 2003/12/01 or later.
-%
+%
% This work has the LPPL maintenance status "maintained".
-%
+%
% The Current Maintainer of this work is Johannes Braams.
-%
+%
% The list of all files belonging to the Babel system is
% given in the file `manifest.bbl. See also `legal.bbl' for additional
% information.
-%
+%
% The list of derived (unpacked) files belonging to the distribution
% and covered by LPPL is defined by the unpacking scripts (with
% extension .ins) which are part of the distribution.
% \fi
-% \CheckSum{272}
% \iffalse
% Tell the \LaTeX\ system who we are and write an entry on the
% transcript.
@@ -36,7 +35,7 @@
%<code>\ProvidesLanguage{swedish}
%\fi
%\ProvidesFile{swedish.dtx}
- [2005/03/31 v2.3d Swedish support from the babel system]
+ [2021/02/06 v2.3e Swedish support from the babel system]
%\iffalse
%% File `swedish.dtx'
%% Babel package for LaTeX version 2e
@@ -50,7 +49,7 @@
% code for the Swedish language definition file. A contribution
% was made by Sten Hellman HELLMAN@CERNVM.CERN.CH
%
-% Further enhancements for version 2.0 were provided by
+% Further enhancements for version 2.0 were provided by
% Erik "Osthols <erik\_osthols@yahoo.com>
%<*filedriver>
\documentclass{ltxdoc}
@@ -105,7 +104,7 @@
% should be hyphenated as \texttt{straff-f{\aa}nge}.
% This is also implemented for b, d, f, g, l, m, n,
% p, r, s, and t. \\
-% \verb="|= & disable ligature at this position. This should be
+% \verb="|= & disable ligature at this position. This should be
% used for compound words, such as
% ``\texttt{stra|"|ffinr\"attning}'',
% which should not have the ligature ``ffi''. \\
@@ -141,7 +140,7 @@
% loaded more than once, checking the category code of the
% \texttt{@} sign, etc.
% \changes{swedish-2.1}{1996/11/03}{Now use \cs{LdfInit} to perform
-% initial checks}
+% initial checks}
% \begin{macrocode}
%<*code>
\LdfInit{swedish}\captionsswedish
@@ -215,7 +214,7 @@
\def\alsoname{se \"aven}%
% \end{macrocode}
% \changes{swedish-1.3g}{1995/11/03}{Replaced `Proof' by its
-% translation}
+% translation}
% \changes{swedish-2.3b}{2000/09/26}{Added \cs{glossaryname}}
% \changes{swedish-2.3c}{2001/03/12}{Provided translation for
% Glossary}
@@ -296,7 +295,7 @@
% For Swedish the \texttt{"} character is made active. This is done
% once, later on its definition may vary.
% \changes{swedish-2.0}{1996/01/24}{Added active double quote
-% character}
+% character}
%
% \begin{macrocode}
\initiate@active@char{"}
@@ -386,12 +385,17 @@
% \texttt{"\protect\indexeqs}, \cs{-} and \texttt{"~}}
% \begin{macrocode}
\declare@shorthand{swedish}{"-}{\nobreak-\bbl@allowhyphens}
+% \end{macrocode}
+% \changes{swedish-2.3e}{2021/02/06}{Adapted some shorthands to changes in hyperref}
+% To avoid problems in bookmarks some shorthands should be hyperref aware.
+% \begin{macrocode}
+\providecommand\texorpdfstring[2]{#1}
\declare@shorthand{swedish}{"|}{%
- \textormath{\nobreak\discretionary{-}{}{\kern.03em}%
- \bbl@allowhyphens}{}}
-\declare@shorthand{swedish}{""}{\hskip\z@skip}
+ \texorpdfstring{\textormath{\nobreak\discretionary{-}{}{\kern.03em}%
+ \bbl@allowhyphens}{}}{}}
\declare@shorthand{swedish}{"~}{%
- \textormath{\leavevmode\hbox{-}\bbl@allowhyphens}{-}}
+ \texorpdfstring{\textormath{\leavevmode\hbox{-}\bbl@allowhyphens}{-}}{-}}
+\declare@shorthand{swedish}{""}{\hskip\z@skip}
\declare@shorthand{swedish}{"=}{\hbox{-}\allowhyphens}
% \end{macrocode}
%