PTXprint 的使用者介面/預處理器是假設您正在處理少數語言而撰寫的,在那種情況下,PTX 的連字清單是僅有的可用資源。如果您正在處理主要語言(或者團隊中有人熟悉使用 patgen2 建立字典並將其導入 TeX),那麼解決方案是使用內建(或可建置)的 TeX 模式。
不同的 TeX 建置版本通常只包含可用資源的一個子集(為了改善載入時間/避免 1990 年代機器上的記憶體限制等),您可能需要對 TeX 安裝進行一些設定,當然,如果您使用的是 Windows ,我完全不知道 PTXprint 附帶的內容被精簡到了什麼程度。
此外……自从我上次手動修改 language.dat 以來,針對這些底層事項的佈局和命名方案已經改變了,而且我看到現在不建議這樣做了,至少在這台 Linux 機器上是這樣。
所以……提供精確且適當的幫助有點棘手,但是的,如果您正在處理一種具有 TeX 連字支援的語言,雖然啟用它可能需要一些調整,但應該完全可以使用該功能。而且,由於相當數量的開源連字引擎都源於 TeX 及其夥伴 patgen(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