0 票
66 次瀏覽

We have traditionally NOT allowed lines to break in-word hyphens. But for this Jonah book we want to experiment with this option. On the View/Edit > Changes.txt tab I added the code snippet from the very helpful buttons at the right--line 7 in the screenshot. This works great--thank you for these helpful snippet suggestions! However, in one paragraph I need to avoid an orphaned suffix string, so I added line 9 and then used "Expand paragraph by one line" in my PTX Print Layout window. 

image

The result of this configuration is below--same result : Line 7 overrides line 9. When I comment out line 7 the word piriʼooareha-ʼuuri is correctly moved as a unit to the next line; however... all end-of-line in-word hyphens are treated as non-breaking, which is not what I want. 

So then I noticed (duh!) that line 7 allows the line break by inserting a zero-width space after the hyphen. So I tried this for line 9:

at JON 1:8 '(piriʼooareha)-\u200B(ʼuuri?”)' > '\1\u2011\2'

But the suffix was still orphaned. This regex code is above my power-OWL paygrade.

image

So how do I override the "allow linebreaks after in-word hyphens" code for a single instance? Or could this code snippet be tweaked for a narrower scope or something?

PTXprint 由 (673 點) 提出 | 66 次瀏覽
非常感謝,Phil。我終於讓它運行了。我必須記住規則順序很重要。
機器翻譯自 English

1 個回答

+1 票
嘗試交換第 7 行和第 9 行的順序。將您想要保護的單詞更改為不可換行連字號,然後允許換行的規則就不會適用了。
機器翻譯自 English
由 [Expert]
(9.9k 點) 提出

相關問題

0 票
2 個回答 295 次瀏覽
我正在使用 Noto Nastaliq Urdu 字體準備文本。但我需要在 changes.txt 編輯畫面中使用羅馬字體,以便能讀取我的輸入。目前它只是顯示「豆腐塊」(方框)。我嘗試在 Font/Script 設定中使用羅馬字體,並將相應的樣式標記更改為烏爾都語字體,但當我嘗試列印時,PTXprint 卡住了。有什麼建議嗎?
mlucas53 148 提出 已提問 7月 22, 2024
0 票
2 個回答 352 次瀏覽
在我們處理的語言中,某些附綴和黏著詞素與詞幹之間以連字號分隔 此連字號在語言設定中被定義為詞中標點 現在,Paratext 的形態分析欄位有時會做出錯誤的猜測,因為它忽略了這類連字號 例如,它將 khøuwa-te 的形態猜測為 / ... 的形態分析猜測器不會將任何包含連字號的字串視為單一詞素? 如果沒有,我打算建議增加此功能 謝謝, rfkvg
Roland 245 提出 已提問 12月 1, 2021
0 票
3 個回答 429 次瀏覽
我在文字集(Text Collection)中顯示某項資源的文字時遇到了問題 您可以自行下載資源 ShuLatn(語言為阿拉伯語,代碼 shu-Latn),並將其加入文字集視窗 點擊文字清單中的藍色 ShuLatn 連結,右側展開的文字便不再顯示連字號 ... 存取這個專案(它位於 DBL 中),但如果解決方案需要對專案進行修改,我相信我們可以協調進行變更
jeffh 1.4k 提出 已提問 8月 10, 2020
0 票
2 個回答 195 次瀏覽
我需要放大 FRT 中的一些 \mt1 文字,但不希望放大 PDF 其餘部分的 \mt1 文字。 我該怎麼做? 謝謝,Mike
listentwice 1.2k 提出 已提問 1月 20, 2022
0 票
2 個回答 381 次瀏覽
我最近在玩裝飾符號,結果在「進階」頁面上某個時候出現了一個 ptxprint-premods.tex 檔案,那是我可以勾選(以套用)並點擊「編輯」按鈕,然後在「檢視+編輯」頁面中編輯的檔案之一 但是 changes.txt 檔案的勾選框和 ... 並從那裡手動編輯它,列印時變更似乎仍然會套用,但我無法再在 PTXprint 中編輯該檔案了 真是令人沮喪
jeffh 1.4k 提出 已提問 4月 8, 2024
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
They all joined together constantly in prayer, along with the women and Mary the mother of Jesus, and with his brothers.
Acts 1:14
3,058 個問題
6,019 個回答
5,681 則評論
2,034 位使用者