summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/xelatex/polyglossia/babelsh.def
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/xelatex/polyglossia/babelsh.def')
-rw-r--r--Master/texmf-dist/tex/xelatex/polyglossia/babelsh.def15
1 files changed, 10 insertions, 5 deletions
diff --git a/Master/texmf-dist/tex/xelatex/polyglossia/babelsh.def b/Master/texmf-dist/tex/xelatex/polyglossia/babelsh.def
index 9bf1d1e46b7..5434f9be80d 100644
--- a/Master/texmf-dist/tex/xelatex/polyglossia/babelsh.def
+++ b/Master/texmf-dist/tex/xelatex/polyglossia/babelsh.def
@@ -65,9 +65,10 @@
\fi}%
\fi}
\fi
- \@ifpackagewith{babel}{KeepShorthandsActive}{}{%
+ %%\@ifpackagewith{babel}{KeepShorthandsActive}{}{%
\edef\bbl@tempa{\catcode`\noexpand##1\the\catcode`##1}%
- \expandafter\AtEndOfPackage\expandafter{\bbl@tempa}}%
+ \expandafter\AtEndOfPackage\expandafter{\bbl@tempa}%
+ %%}%
\@tempcnta=\lccode`\~
\lccode`~=`##1%
\lowercase{%
@@ -237,7 +238,7 @@
\fi
}
\def\@notshorthand#1{%
- \PackageError{babel}{%
+ \PackageError{polyglossia}{%
The character `\string #1' should be made
a shorthand character;\MessageBreak
add the command \string\useshorthands\string{#1\string} to
@@ -248,7 +249,7 @@
\newcommand*\shorthandoff[1]{\bbl@switch@sh{off}#1\@nil}
\def\bbl@switch@sh#1#2#3\@nil{%
\@ifundefined{active@char\string#2}{%
- \PackageError{babel}{%
+ \PackageError{polyglossia}{%
The character '\string #2' is not a shorthand character
in \languagename}{%
Maybe you made a typing mistake?\MessageBreak
@@ -297,7 +298,11 @@
\bbl@activate{~}
\def\bbl@disc#1#2{%
\nobreak\discretionary{#2-}{}{#1}\allowhyphens}
-%HERE ENDS THE CODE COPIED FROM babel.def --------------------
+\def\bbl@t@one{T1}
+\def\allowhyphens{%
+ \ifx\cf@encoding\bbl@t@one\else\bbl@allowhyphens\fi}
+\def\bbl@allowhyphens{\nobreak\hskip\z@skip}
+%HERE ENDS THE CODE COPIED FROM babel.def --------------------
\def\bbl@disc@german#1#2{%
\nobreak\discretionary{#2-}{}{#1}}
\endinput