PTXprint 的用户界面/预处理器是假设您正在处理一种少数语言编写的,在这种语言中,PTX 连字符列表是唯一可用的资源。如果您正在处理一种主要语言(或者团队中有人熟悉使用 patgen2 创建词典并将其引入 TeX),那么解决方案是使用内置(或可构建)的 TeX 模式。
不同的 TeX 构建版本通常只包含可用子集的一部分(为了提高加载速度/避免 1990 年代机器的内存限制等),您可能需要对 TeX 安装进行一些配置,当然,如果您在 Windows 上,我不知道 PTXprint 包含的内容被精简到了什么程度。
另外……自从我上次手动修改 language.dat 以来,像这样底层事物的布局和命名方案已经发生了变化,而且我看到现在不建议再那样做了,至少在这台 Linux 机器上是这样。
所以……提供准确且适当的帮助比较棘手,但是的,如果您正在处理一种具有 TeX 连字符支持的语言,虽然启用它可能有点麻烦,但使用它应该是完全可行的。由于许多开源连字符引擎都源自 TeX 及其朋友 patgen(它生成被读入 iniTeX 以构建您的 tex 安装的文件),如果您有一个词典,您应该能够对其进行转换。
一旦您有了一个了解该语言的 TeX 安装,只需添加
\uselanguage{esperanto} % 或任何语言
到您的 ptxprint-mods.tex 文件中即可。
请注意……PTXprint 使用的是 XeTeX,而不是 XeLaTeX、luaTeX/laTeX/conTeXt 或任何其他 TeX 变体。您在 Google 上搜索 TeX 相关问题时找到的许多问答可能并不特别相关。由于是 XeTeX,您需要 utf8 连字符模式。
PTXprint's user-interface / preprocessor is written assuming that you're working in a minority language where the PTX hyphenation list is all that's available. If you are working in a major language, (or someone on the team is familar with building patgen2 created dictionaries and getting them into TeX), then a solution is to use the built-in (or buildable-in) TeX patterns.
Different TeX builds often come with only a subset selected of what's available (to improve loading time/ avoid memory limitations on machines from the 1990s, etc) and you may need to do some configuring of the TeX installation, plus of course, if you're on Windows I have no idea how stripped down what's included with PTXprint is.
Also... layouts and naming schemes for low-level things like this have changed since I was last modifying language.dat manually, and I see you're not supposed to do that anymore, at least on this linux machine.
So... exact and appropriate help is tricky, but yes, if you are working in a language that has TeX hypenation support, while it might be a bit of a fiddle to enable it, it should be quite possible to use that, and since a fair number of the open-source hypenation engines trace their ancestry back to TeX and it's friend patgen (which makes the files that get read into iniTeX to build your tex instalation), you ought to be able to convert a dictionary if you have one.
Once you have a TeX installation that knows about the language, it should just be a case of adding
\uselanguage{esperanto} % or whatever
To your ptxprint-mods.tex file.
Beware... PTXprint uses XeTeX not XeLaTeX, luaTeX/laTeX/conTeXt or any other TeX flavours. A lot of the questions and answers you'll find on google for TeX-related searches are not going to be especially relevant. Being XeTeX, you need utf8 hyphenation patterns.
机器翻译自 English