diff options
Diffstat (limited to 'Master/texmf-dist/tex/generic/babel-french/frenchb.ldf')
-rw-r--r-- | Master/texmf-dist/tex/generic/babel-french/frenchb.ldf | 64 |
1 files changed, 38 insertions, 26 deletions
diff --git a/Master/texmf-dist/tex/generic/babel-french/frenchb.ldf b/Master/texmf-dist/tex/generic/babel-french/frenchb.ldf index 4f81c129600..eb0939c313f 100644 --- a/Master/texmf-dist/tex/generic/babel-french/frenchb.ldf +++ b/Master/texmf-dist/tex/generic/babel-french/frenchb.ldf @@ -33,7 +33,7 @@ %% extension .ins) which are part of the distribution. %% \ProvidesLanguage{frenchb} - [2016/03/18 v3.2a French support from the babel system] + [2016/04/18 v3.2b French support from the babel system] %% %% File `frenchb.ldf' %% Babel package for LaTeX version 2e @@ -92,13 +92,13 @@ \begingroup \newlinechar=`\^^J \def\\{^^J(frenchb.ldf) }% - \errhelp{#2}\errmessage{\\#1}% + \errhelp{#2}\errmessage{\\#1^^J}% \endgroup} \def\fb@warning#1{% \begingroup \newlinechar=`\^^J \def\\{^^J(frenchb.ldf) }% - \message{\\#1}% + \message{\\#1^^J}% \endgroup} \def\fb@info#1{% \begingroup @@ -172,15 +172,32 @@ \newif\ifFB@active@punct \FB@active@puncttrue \newif\ifFB@luatex@punct \ifFBLuaTeX - \ifnum\luatexversion>75 + \ifnum\luatexversion>94 \FB@luatex@puncttrue\FB@active@punctfalse + \else + \ifx\PackageWarning\@undefined + \fb@warning{Please upgrade LuaTeX to version 0.95 or above!\\% + frenchb will make high punctuation characters (;:!?) active\\% + with LuaTeX < 0.95.}% + \else + \PackageWarning{frenchb.ldf}{Please upgrade LuaTeX + to version 0.95 or above!\MessageBreak + frenchb will make high punctuation characters\MessageBreak + (;:!?) active with LuaTeX < 0.95;\MessageBreak reported}% + \fi \fi \fi +\newcount\FB@nonchar \newif\ifFB@xetex@punct \begingroup\expandafter\expandafter\expandafter\endgroup \expandafter\ifx\csname XeTeXinterchartokenstate\endcsname\relax \else \FB@xetex@puncttrue\FB@active@punctfalse + \ifdim\the\XeTeXversion\XeTeXrevision pt<0.99996pt + \FB@nonchar=255 \relax + \else + \FB@nonchar=4095 \relax + \fi \fi \newcommand*{\FBcolonspace}{\space} \newcommand*{\FBthinspace}{\hskip .16667em \relax} @@ -192,21 +209,10 @@ \directlua{tex.enableprimitives("", tex.extraprimitives("omega"))} \begingroup\expandafter\expandafter\expandafter\endgroup \expandafter\ifx\csname newluafunction\endcsname\relax - \ifLaTeXe - \AtEndOfPackage{% - \RequirePackage{luatexbase}% - \newluatexattribute\FB@addDPspace \FB@addDPspace=1 \relax - \newluatexattribute\FB@addGUILspace \FB@addGUILspace=0 \relax - } - \else - \input luatexbase.sty - \newluatexattribute\FB@addDPspace \FB@addDPspace=1 \relax - \newluatexattribute\FB@addGUILspace \FB@addGUILspace=0 \relax - \fi - \else - \newattribute\FB@addDPspace \FB@addDPspace=1 \relax - \newattribute\FB@addGUILspace \FB@addGUILspace=0 \relax + \input ltluatex.tex \fi + \newattribute\FB@addDPspace \FB@addDPspace=1 \relax + \newattribute\FB@addGUILspace \FB@addGUILspace=0 \relax \ifLaTeXe \PackageInfo{frenchb.ldf}{No need for active punctuation characters\MessageBreak with this version @@ -296,7 +302,7 @@ \ifhmode\FDP@colonspace\fi}% \XeTeXinterchartoks \FB@guilf \FB@punctthick = {% \FDP@colonspace}% - \XeTeXinterchartoks 255 \FB@punctthick = {% + \XeTeXinterchartoks \FB@nonchar \FB@punctthick = {% \ifhmode \ifdim\lastskip>1sp \unskip\penalty\@M\FBcolonspace @@ -311,7 +317,7 @@ \ifhmode\FDP@thinspace\fi}% \XeTeXinterchartoks \FB@guilf \FB@punctthin = {% \FDP@thinspace}% - \XeTeXinterchartoks 255 \FB@punctthin = {% + \XeTeXinterchartoks \FB@nonchar \FB@punctthin = {% \ifhmode \ifdim\lastskip>1sp \unskip\penalty\@M\FBthinspace @@ -321,13 +327,13 @@ \fi}% \XeTeXinterchartoks \FB@guilo \z@ = {% \ifFBAutoSpaceGuill\FBguillspace\fi}% - \XeTeXinterchartoks \FB@guilo 255 = {% + \XeTeXinterchartoks \FB@guilo \FB@nonchar = {% \ifFBAutoSpaceGuill\FBguillspace\ignorespaces\fi}% \XeTeXinterchartoks \z@ \FB@guilf = {% \ifFBAutoSpaceGuill\FBguillspace\fi}% \XeTeXinterchartoks \FB@punctthin \FB@guilf = {% \ifFBAutoSpaceGuill\FBguillspace\fi}% - \XeTeXinterchartoks 255 \FB@guilf = {% + \XeTeXinterchartoks \FB@nonchar \FB@guilf = {% \ifFBAutoSpaceGuill\unskip\FBguillspace\fi}% \bbl@for\FB@char {`\[,`\(,"A0,"202F}% @@ -436,10 +442,10 @@ \fi \sffamilyORI}% \fi -\newcommand*{\NoAutoSpacing}{\FBAutoSpaceGuillfalse - \ifFB@active@punct\shorthandoff{;:!?}\fi - \ifFB@xetex@punct\XeTeXinterchartokenstate=0 \fi - \ifFB@luatex@punct\FB@addDPspace=0 \FB@addGUILspace=0 \fi +\DeclareRobustCommand*{\NoAutoSpacing}{\FBAutoSpaceGuillfalse + \ifFB@active@punct\noautospace@beforeFDP\shorthandoff{;:!?}\fi + \ifFB@xetex@punct\XeTeXinterchartokenstate=0 \fi + \ifFB@luatex@punct\FB@addDPspace=0 \FB@addGUILspace=0 \fi } \ifLaTeXe \else @@ -894,6 +900,12 @@ AFTER babel/frenchb; reported}% \@FBwarning@capsepfalse}% {} +\@ifpackageloaded{subcaption} + {\FBWarning{frenchb.ldf}% + {Please load the "subcaption" package\MessageBreak + AFTER babel/frenchb; reported}% + \@FBwarning@capsepfalse}% + {} \@ifpackageloaded{floatrow} {\FBWarning{frenchb.ldf}% {Please load the "floatrow" package\MessageBreak |