0
333 次瀏覽

大家好。有沒有辦法變更 PTXprint 預期找到 USFM 格式聖經檔案的檔案位置?

背景說明:我們使用的是 Bibledit,而不是 Paratext。我需要列印一些草稿,看起來 PTXprint 的列印選項更強大,所以我在 Mac(運行 OS 10.14 Mojave)上的 VirtualBox 虛擬機器中的 Windows 10 上安裝了它。剛第一次啟動 PTXprint 時,它告訴我 Paratext 未安裝,然後詢問檔案位置。我嘗試將 PTXprint 指向一個連結資料夾,以便它存取 Mac,但不起作用。最後我選擇了 Windows 端的某個資料夾(我不再記得是哪一個)並繼續操作。

我有從 Bibledit 匯出的 USFM 檔案,可以放在任何需要的資料夾中。此外,從以前安裝 Paratext 的日子起,我在 Windows 虛擬機器的 C: 磁碟上有一個名為「My Paratext Projects」的資料夾。我在其中建立了一個子資料夾,用於我正在處理的聖經,並將約翰福音的 USFM 檔案(副檔名為 .sfm)放在其中。我希望讓 PTXprint「看到」該資料夾。然而,在 PTXprint 2.1.15 中,我找不到任何變更其搜尋檔案之資料夾的方法。而且……既然我讀到 PTXprint 也會使用專案所使用的樣式表(stylesheet),我是否需要在同一位置放置一份副本?非常感謝您提供的任何幫助!

編輯:在我發布此貼文後,我在論壇中找到了這個相關討論串:「使用 Paratext 7 或其他來源作為 USFM」。

我嘗試進入 Windows 10 的命令提示字元並輸入 ptxprint -p。但是不起作用。我想我需要變更目錄(資料夾)或做些什麼,但我不知道。

編輯 2:我終於知道如何變更目錄了,然後發現我需要使用 ptxprint -p none,而不仅仅是 ptxprint -p。它起作用了!現在我將看看能否讓 PTXprint 與我擁有的檔案一起工作。

機器翻譯自 English
PTXprint (104 點) 提出
已重新顯示 | 333 次瀏覽

4 個回答

0

使用 ptxprint -p 存取您的檔案有兩種方法。首先,您需要將經文檔案的集合結構化得像 ParatextProjects 目錄一樣。這只是意味著每個集合都儲存在一個共同根目錄下的目錄中(該目錄的名稱是您想要引用的專案名稱/代碼)。這個根目錄被視為「專案」目錄。您可以執行 ptxprint -p path/to/projects/dir,ptxprint 將優先使用該目錄,而不是從其配置或 ParaTExt 中查找的預設值。

您也可以設定環境變數 PTXPRINT_PROJECTSDIR=path/to/projects/dir,從而免去使用 ptxprint -p 的麻煩。請注意 -p 需要一個後續參數。

如果您執行 ptxprint -p none,這會神奇地告訴 ptxprint 忘記所有關於專案目錄位置的知识,並詢問您。如果 ptxprint 完全不知道(例如您沒有安裝 ParaTExt),也會發生這種情況,這就是您遇到的情況。然後它會記住該位置,以便在後續沒有 -p 或環境變數的 ptxprint 運行中使用。

順帶一提,我每天都多次使用 paratext -p

機器翻譯自 English
(656 點) 提出
已重新顯示

嗨,Martin,

我在使用這個時遇到了問題。1) 如果我使用我的專案目錄(其中包含一個專案)建立命令列,我會得到一個「script error」。2) 如果我使用 -p none 啟動 PTXPrint,然後我被要求選擇專案目錄,之後我能夠選擇我的專案。在那之後,我得到了一堆錯誤,例如:
我的 sfm 檔案名稱如下:GEN.sfm, EXO.sfm 等。

Traceback (most recent call last):
File “ptxprint\gtkview.py”, line 2346, in onProjectChange
File “ptxprint\gtkview.py”, line 2376, in updateProjectSettings
File “ptxprint\view.py”, line 434, in updateProjectSettings
File “ptxprint\ptsettings.py”, line 16, in init
File “ptxprint\ptsettings.py”, line 30, in parse
File “ptxprint\ptsettings.py”, line 127, in inferValues
KeyError: ‘FileNameBookNameForm’

機器翻譯自 English
0

對於 Windows 使用者,我在之前關於此問題的貼文中放置了一些基本的操作說明。

機器翻譯自 English
(3.2k 點) 提出
0

@Ross_Webb 看起來您可能選擇了一個特定的專案資料夾,而它要求的是上一層級(包含一個或多個專案s)的資料夾。當您選擇「Projects」資料夾(相當於選擇「My Paratext 9 Projects」資料夾)時,它會自動在其中搜尋以查看有哪些可用的專案,然後列出它們供您選擇其中一個。

機器翻譯自 English
(3.2k 點) 提出

嗨,Mark,

不,事實上我確實有一個專案目錄,其中包含一個專案。當我提供專案目錄後,PTXPrint 確實啟動了,但當我選擇唯一的專案時,我得到了錯誤。

Ross

機器翻譯自 English
0

I have just confirmed that if you have never previously run PTXprint through the UI to create at least a Default config, then the command-line doesn’t seem to work. I’m not sure if there are plans to change this, or whether that is part of the intentional design.

However, if you’ve created a config (by opening the UI, and printing something once) then the command-line option seems to produce a PDF successfully. Here’s what I used:

C:\Users\Mark>"C:\Program Files\PTXprint\PTXprint.exe" -p "C:/Users/Mark/Downloads/" -P BISLAMA

There are several annoying things going on here:
a) The path to the ptxprint.exe file seems to need Windows \ slashes, whereas the -p path to the data location expects / Linux slashes
b) The terminal doesn’t show any confirmation that something is happening, and you don’t really know if it was successful or not. [We need to find a way of restoring terminal output when NOT running in the UI.]
c) Because of b) you can’t even see what the command-line options are when you use -h

(3.2k 點) 提出

嗨,Mark,

嗯,無論斜槓方向如何,我都無法讓您的命令列字串(使用變更後的目錄)起作用。我之前已經使用 UI 列印過,所以這不是問題。

這是使用命令列 -p none 時我取得的最大成功

我選擇目錄…
image

UI 打開並提供 BISLAMA 專案…
image

我點擊 BISLAMA…
image

Mark,我不會再為這件事麻煩你了。我試圖讓它為一位同事運行。他後來在讓它運行方面比我取得了更大的成功,所以我的配置中一定有什麼特別之處。

感謝您的幫助,
Ross

機器翻譯自 English

相關問題

0
1 個回答 85 次瀏覽
我聽說了很久,PTXprint 不需要安裝 Paratext 也能運作 但使用 PTXprint 而不依賴 Paratext 的流程並不明顯 當我詢問 PTXprint AI 支援代理時,它幻覺出各種不存在的功能,例如:當提示選擇 ... 含一些圖片),除了建立一個虛構的 Paratext 專案外,有沒有辦法用 PTXprint 來列印它? 謝謝,Jeff
jeffh 1.4k 提出 已提問 1月 6
0
2 個回答 54 次瀏覽
我一定是把腳註標記的預設位置設為放在選取文字範圍的開頭了。 我該怎麼改回來,讓它跑到選取文字的結尾呢? 而且現在我在被引用項目的開頭和結尾都有標記,我該怎麼調整? 有沒有比手動移動它們更簡單的方法?
PeterK 119 提出 已提問 5月 5, 2025
0
2 個回答 454 次瀏覽
We have a situation where a new PT8 user has somehow managed to point the new PT8 to use (the old) My ... some deep/hidden Paratext 8 settings folder in AppData. But where ?
Mark P 3.2k 提出 已提問 3月 6, 2017
+1
0 個回答 29 次瀏覽
在引用章節和節數時,請僅使用逗號 (,) 來分隔頁面頁眉中的章節號碼和節數號碼。 範例:Mc 1,39(馬可福音第 1 章第 39 節)
Petrus Khoa 103 提出 已提問 7月 26, 2025
0
1 個回答 190 次瀏覽
We have a user that makes use of a custom project location, but is now seeing a message saying that it "can't ... registry setting for this, but cannot find any information on it.
MSEAIT_LT 478 提出 已提問 7月 25, 2018
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
I appeal to you, brothers and sisters, in the name of our Lord Jesus Christ, that all of you agree with one another in what you say and that there be no divisions among you, but that you be perfectly united in mind and thought.
1 Corinthians 1:10
3,045 個問題
6,005 個回答
5,671 則評論
2,026 位使用者