0 票
72 次瀏覽

我們擁有一份相當龐大的手工製作的連字號(hyphenation)數據清單,透過 > Fonts+Scripts > Hyphenation > Import List... 從底層的 PT 專案匯入到 PTXPrint 中。

我找到了這裡的一個檔案,看起來就是那次匯入的結果:

"D:\[path]\PT9\[project]\shared\ptxprint\hyphen-[project].tex"

這個 .tex 檔案使用 UTF-8 編碼,我只看到形式為 U+002D 的「標準」連字號。現在我想使用正則表達式(regex)來減少那些「可能但難看」的連字選項: 

我會關閉 PTXPrint,製作一份備份副本,透過移除某些連字號來應用我的更改,然後再次運行 PTXPrint,並嘗試「Print」(即「Make PDF」)。這樣做聽起來合理嗎,還是這樣會毀掉我的 PTXPrint 專案?如果是後者,是否有更好的方法來調整連字號?

注意:我不需要關於正則表達式的幫助,謝謝。這裡的問題僅關於 PTXPrint 的內部運作機制。


簡而言之(TL/DR):
我們將 PT 專案視為許多可能出版物的「來源」,正如 PTXPrint 線上樣本庫所展示的那樣。因此,在 Paratext 內部,我們仔細地手動維護連字號主清單,標記所有 合法的選項,包括那些不太美觀的選項。

對於目前的出版物,我們針對成年讀者群體,並擁有特定的版面設計、頁面尺寸和字體大小,這賦予我們「更多的自由度」和靈活性。因此,我們可以過濾掉一些允許但非理想的連字選項。例如,我想移除所有會在列印行尾留下僅一個字符(如「孤兒字」)的選項,以及類似的情況(行尾孤立的字符)。

機器翻譯自 English
PTXprint 由 (934 點) 提出 | 72 次瀏覽
補充說明以提供快速更新:由於截止日期臨近,我直接按照上述描述嘗試了。

我沒有收到任何錯誤訊息或崩潰,而且我可以看到行尾那些難看的單字孤兒字已經消失了。如果有任何負面副作用,我目前尚未發現。

當然,這是有代價的:我必須重新檢查整個出版物,並重新調整「Adjustments」。但我知道如果我更改了連字選項,就會發生這種情況。到目前為止,這是值得的,頁面看起來更好了。
機器翻譯自 English

1 個回答

+1 票
你絕對可以安全地做你想做的事。你很可能會在開始動手之前保留該檔案的備份。最壞的情況是你搞砸了連字號,而你隨時可以在 ptxprint 內部禁用該檔案的使用。

通常情況下,ptxprint 非常依賴配置區域中的檔案數據。如果你以其他方式編輯這些檔案,使得 ptxprint 對結果感到滿意,那麼這就是一種讓 ptxprint 按你希望的方式運作的完全合理的方法。
機器翻譯自 English
由 (658 點) 提出

相關問題

+1 票
1 個回答 258 次瀏覽
The Interlinearizer automatically breaks words with hyphens in them and I cannot figure out how to join the hyphenated ... New Guinea [Email Removed].pgmailto:[Email Removed].pg
SIL LSS PNG 411 提出 已提問 10月 31, 2017
0 票
1 個回答 159 次瀏覽
Mailto: <ptxprint_support@<your.org's.address>> Traceback (most recent call last): File "ptxprint\gtkview.py", line 1565 ... name 'accumulate' is not defined PTXprint Version 2.5.5
mdjojoseparto 102 提出 已提問 8月 5, 2024
0 票
1 個回答 78 次瀏覽
We have traditionally NOT allowed lines to break in-word hyphens. But for this Jonah book we want to experiment with ... code snippet be tweaked for a narrower scope or something?
KimB 673 提出 已提問 5月 30
+1 票
4 個回答 768 次瀏覽
Removing words from hyphenatedWords.txt that no longer exist in the project I am trying to prepare the hyphenatedWords. ... the Wordlist database and hopefully make it run faster.
Kent Spielmann 1.8k 提出 已提問 7月 22, 2020
0 票
0 個回答 179 次瀏覽
If data in your project uses a mix of composed and decomposed characters (likely due to using different keyboard ... and click OK. See also: Introduction to project conversion
[Expert]
anon421222
735 提出
已提問 2月 23, 2017
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
May the God who gives endurance and encouragement give you the same attitude of mind toward each other that Christ Jesus had.
Romans 15:5
3,058 個問題
6,019 個回答
5,687 則評論
2,034 位使用者