语言(连字模式)不可用

语言(连字模式)不可用

我在 windows7 上使用 MiKTeX 2.9。使用 pdflatex 编译时,我收到 Babel 发出的以下警告(在其他地方讨论过

未加载该语言的连字模式):

Package babel Warning: No hyphenation patterns were loaded for
(babel)                the language `German'
(babel)                I will use the patterns loaded for \language=0 instead.

其他地方(以及 MiKTeX 手册中)的建议是使用 MiKTeX 选项(我认为是 mo.exe)来更新语言。

当我使用 mo.exe 时,我导航到语言选项卡并单击我想要的语言。

我得到的答复是:"This language is not yet available"

警告截图

截图由 Infowanna 添加

上面是我的系统的屏幕截图。不存在的语言在相应的按钮中没有复选标记。当我单击按钮(任何按钮)时,我都会收到消息框。

我假设下面的截图(来自 Speravir)显示了该对话框的正常功能:

警告截图
Speravir 添加的屏幕截图

如何使某种语言可用?

首先,我尝试更新我的“ language.dat”文件。但随后,我注意到每当我通过 mo.exe 更新 fndb 时,它都会(悄无声息地)更新。更新只会用一个空文件覆盖所有编辑。因此,编辑该文件毫无意义(我知道我不应该这样做,因为它位于 texmf 目录树下)。

其次,根据 Ulrike 在下面的评论中的建议,我查看了 miktex 配置目录中的文件“languages.dat”。(第一行写着“请勿编辑”——没有任何线索表明它是如何生成的,或者如何编辑。)我目前想要的语言(英语、德语、法语)没有“排除”属性。事实上,条目如下:

[english]
attributes=
...
[french]
attributes=
...
[german]
attributes=

所有其他语言都有:

attributes=exclude

不同的属性是否会告诉 mo.exe 启用某种语言的按钮?我该如何设置它?

答案1

我发现了一个进入官方 MikTeX Bug 列表(通过源代码伪造),最初来自 Ulrike Fischer。因此人们应该点击 Ulrike 的评论,给予她应有的尊重。

Miktex 2.9, win xp, installed as single user.

In miktex-settings in the language tab there are no "New, edit, remove" buttons. I see only the list of languages.

稍后在 MiKTeX 用户的讨论论坛中“Tethered.Sun”写道

I managed to find a workaround: I located the language.dat file, rewritten the
relevant row in it, and ran initexmf --dump. Updating the format files from
the graphical interface would do no good since it always replaced my manual
insertions with the default (and ineditable) settings of the graphical
interface.

使用命令行程序初始化完成添加所需连字模式的工作。截至撰写本文时,上述报告的错误仍未解决。

因此我将使用命令行工具来代替 GUI。

相关内容