babel-french 的连字功能如何工作?

babel-french 的连字功能如何工作?

我曾看到过许多其他与此问题有关的问题,但却不明白它是如何工作的以及如何解决它。

我使用install-tl脚本安装了 latex 并选择了babel-french包。

在我的文档中我使用了\usepackage[french]{babel}但是我收到以下警告(并且连字符不起作用):

No hyphenation patterns were preloaded for
(babel) the language `French' into the format.
(babel) Please, configure your TeX system to add them and
(babel) rebuild the format. Now I will use the patterns
(babel) preloaded for \language=nohyphenation instead.

我不知道如何“配置我的 TeX 系统”。当我查看时,/usr/local/texlive/2020/texmf-dist/tex/generic/babel-french/french.ldf我在标题中看到

%% This is file `french.ldf',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% frenchb.dtx  (with options: `french')
%% This is a generated file part of the babel-french bundle
%% to be used with the Babel system.

后面几行是关于连字符的

\def\FB@nopatterns{%
   \ifdefined\l@nohyphenation
      \adddialect\l@french\l@nohyphenation
      \edef\bbl@nulllanguage{\string\language=nohyphenation}%
   \else
      \edef\bbl@nulllanguage{\string\language=0}%
      \adddialect\l@french0
   \fi
   \@nopatterns{French}}
\ifdefined\l@french \else \FB@nopatterns \fi
\ifdefined\l@acadian
  \adddialect\l@canadien\l@acadian
\else
  \adddialect\l@acadian\l@french
  \adddialect\l@canadien\l@french
\fi
\providehyphenmins{french}{\tw@\thr@@}
\providehyphenmins{acadian}{\tw@\thr@@}

有些论坛建议运行fmtutil --all,但它并没有解决任何问题,我也不明白文档中它应该做什么(man fmtutil)。我的印象是,LaTeX 是一个老化且复杂的系统,具有许多边界效应,因此如果不深入了解其行为,就很难管理。

相关内容