嗨 Loren,
是的,PTXprint 可以在 Linux 上運行,並且具有命令列選項,應該能讓你的想法相對容易實現。只需在終端機中運行 PTXprint 並加上 -h 參數即可顯示所有選項。 如果你查看 C:\Program Files\PTXprint\ptxprint\AboutPTXprint.txt 檔案,你會發現裡面有很多關於如何直接從命令列(即無頭模式)運行 PTXprint 的範例。
例如,
"C:\Program Files\PTXprint\PTXprint.exe" -b ROM -P XYZ 將直接使用 Default 設定,從 XYZ 專案中生成 ROMANS(羅馬書)的 PDF(由於使用了 -P 參數直接觸發「列印」,因此不會出現圖形介面)。
請注意,你可能需要先為該專案開啟 PTXprint 並設定字體、版面配置等。雖然對於拉丁文/羅馬文字可能直接就能運作,但我不確定。
如果你試圖在沒有標準 Paratext 檔案結構的情況下運行它,你只需要提供 -p(小寫)參數,指向一個相當於 "C:\My Paratext N Projects" 的資料夾。它會在每個子資料夾中查找 USFM 檔案,並將該資料夾加入「專案」清單。所以我在桌面上有一個圖示,運行此命令: "C:\Program Files\PTXprint\PTXprint.exe" -p C:\Users\mark\Downloads 這會啟動 PTXprint,僅在我的 Downloads 資料夾中查找專案。
我們已經考慮過提供一個功能稍有限制的 PTXprint 線上版本(可選選項較少),MH 可能會提供關於如何實施的具體細節。
已經有人做了類似的事情,但可用的文本數量有限。 請查看: paper.bible 它有一個易於使用的網頁介面。 我非常喜歡他們的 宣傳影片 以及介面設計的簡潔性。
Hi Loren,
Yes, PTXprint runs on Linux and has command-line options that should make your idea relatively easy to pull off. Just run PTXprint in a terminal with the -h to show all the options. If you look in the C:\Program Files\PTXprint\ptxprint\AboutPTXprint.txt file you will see that there are a whole bunch of examples of how to run PTXprint directly from the command-line (i.e. headless).
So for example,
"C:\Program Files\PTXprint\PTXprint.exe" -b ROM -P XYZ will directly create a PDF of ROMANS from the XYZ project using the Default configuration (and no GUI will appear, as -P was used to directly hit "Print" for you).
Note that you probably need to first open PTXprint for that project and set up a font and layout etc. Although for Latin/Roman texts it might just work, I don't know.
If you're trying to run it without the normal Paratext file structure, all you need to do is give it the -p (lowercase) to point to a folder which is equivalent to "C:\My Paratext N Projects". It looks in each subfolder for USFM files and adds that folder to the list of "Projects". So I have an icon on my desktop which runs this command: "C:\Program Files\PTXprint\PTXprint.exe" -p C:\Users\mark\Downloads which fires up PTXprint looking only for projects in my Downloads folder.
We have already toyed with the idea of providing a slightly limited online version of PTXprint (fewer options to choose from) and MH might chip in with specifics about how to go about that.
There are others who have already done something similar, but with a limited number of texts available. Check out: paper.bible which has an easy-to-use web interface. I love their promo video , and the UI simplicity.
機器翻譯自 English 顯示原文