From 47b05827e36c70484f9a11ecd9677b22537a8910 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Tue, 28 Apr 2020 21:14:00 +0000 Subject: babel (28apr20) git-svn-id: svn://tug.org/texlive/trunk@54930 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/generic/babel/hyphen.cfg | 45 ++++++++++++++++++++++++-- 1 file changed, 43 insertions(+), 2 deletions(-) (limited to 'Master/texmf-dist/tex/generic/babel/hyphen.cfg') diff --git a/Master/texmf-dist/tex/generic/babel/hyphen.cfg b/Master/texmf-dist/tex/generic/babel/hyphen.cfg index 5299d74cad3..a66ac1fbcda 100644 --- a/Master/texmf-dist/tex/generic/babel/hyphen.cfg +++ b/Master/texmf-dist/tex/generic/babel/hyphen.cfg @@ -37,8 +37,10 @@ \wlog{File: #1 #4 #3 <#2>}% \let\ProvidesFile\@undefined} \fi -\ProvidesFile{hyphen.cfg}[2020/03/22 3.42 Babel hyphens] +\ProvidesFile{hyphen.cfg}[2020/04/28 3.43 Babel hyphens] \xdef\bbl@format{\jobname} +\def\bbl@version{3.43} +\def\bbl@date{2020/04/28} \ifx\AtBeginDocument\@undefined \def\@empty{} \let\orig@dump\dump @@ -127,7 +129,45 @@ \def\bbl@hook@everylanguage#1{} \def\bbl@hook@loadpatterns#1{\input #1\relax} \let\bbl@hook@loadexceptions\bbl@hook@loadpatterns -\let\bbl@hook@loadkernel\bbl@hook@loadpatterns +\def\bbl@hook@loadkernel#1{% + \def\addlanguage{\alloc@9\language\chardef\@cclvi}% + \def\adddialect##1##2{% + \global\chardef##1##2\relax + \wlog{\string##1 = a dialect from \string\language##2}}% + \def\iflanguage##1{% + \expandafter\ifx\csname l@##1\endcsname\relax + \@nolanerr{##1}% + \else + \ifnum\csname l@##1\endcsname=\language + \expandafter\expandafter\expandafter\@firstoftwo + \else + \expandafter\expandafter\expandafter\@secondoftwo + \fi + \fi}% + \def\providehyphenmins##1##2{% + \expandafter\ifx\csname ##1hyphenmins\endcsname\relax + \@namedef{##1hyphenmins}{##2}% + \fi}% + \def\set@hyphenmins##1##2{% + \lefthyphenmin##1\relax + \righthyphenmin##2\relax}% + \def\selectlanguage{% + \errhelp{Selecting a language requires a package supporting it}% + \errmessage{Not loaded}}% + \let\foreignlanguage\selectlanguage + \let\otherlanguage\selectlanguage + \expandafter\let\csname otherlanguage*\endcsname\selectlanguage + \def\bbl@usehooks##1##2{}% TODO. Temporary!! + \def\setlocale{% + \errhelp{Find an armchair, sit down and wait}% + \errmessage{Not yet available}}% + \let\uselocale\setlocale + \let\locale\setlocale + \let\selectlocale\setlocale + \let\localename\setlocale + \let\textlocale\setlocale + \let\textlanguage\setlocale + \let\languagetext\setlocale} \begingroup \def\AddBabelHook#1#2{% \expandafter\ifx\csname bbl@hook@#2\endcsname\relax @@ -194,6 +234,7 @@ \let\bbl@hook@everylanguage\@undefined \let\bbl@hook@loadpatterns\@undefined \let\bbl@hook@loadexceptions\@undefined + \endinput %% %% End of file `hyphen.cfg'. -- cgit v1.2.3