你好 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 参数直接触发“打印”,因此不会出现 GUI 界面)。
请注意,你可能需要先为该项目打开 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 它有一个易于使用的 Web 界面。 我很喜欢他们的 宣传视频 以及 UI 的简洁性。
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