0
203 次浏览

命令行帮助说明如下

-b BOOKS, --books BOOKS
                        Reference list to print (as in Choose Books)

在 GitHub 代码中,我还找到了如下文档说明

-b BOOKS, --books BOOKS
                        Space separated bookid list to set

这两处说明都暗示我只需输入书的缩写即可。但如果我执行
python ptxprint -b JAS 1PE -P
我会得到
res=0
而如果执行
python ptxprint -b JAS 1PE 2PE -P
我会得到
ptxprint: error: unrecognized arguments: 2PE

  1. 正确的语法是什么?
  2. res=0 是什么意思?(我在尝试在一台新的 Linux 机器上安装 ptxprint 时也看到了这个提示。)
机器翻译自 English
PTXprint (1.9k 分) 发布 | 203 次浏览

1 个回答

0

我猜测,如果您想处理多卷书,需要将书列表放在引号中:

python ptxprint -b "JAS 1PE 2PE" -P

res=0 表示程序成功完成且没有错误(任何非 0 的数字,如 res=1 或 res=2,都表示某些操作失败)。

机器翻译自 English
(3.2k 分) 发布
已重新显示

谢谢。加上引号确实解决了问题。

机器翻译自 English

相关问题

0
5 个回答 332 次浏览
我想为项目中的每一卷书生成单独的 PDF 我的想法是使用命令行工具,例如这样: "C:\Program Files\PTXprint\ptxprint.exe" -b ROM -c SingleSpaceDraft -P XYZ (我可以为每个文件单独运行该命 ... 测书籍的选择包含在配置中,但我不确定 是否可以使用单个配置来生成像这样单卷书的 PDF?
Jim_Smith 131 发布 提问于 四月 10, 2023
0
2 个回答 322 次浏览
A team I support has been publishing selected Psalms and other chapters to their Scripture app as the chapters are approved ... might be useful to other teams in other regions too.
anon469793 155 发布 提问于 十一月 11, 2019
0
1 个回答 232 次浏览
I know there are a lot of features everyone would like. I am not asking for a new one (just yet) but wondering if ... was reading it on a machine with the Paratext project on it.)
Kent Spielmann 1.8k 发布 提问于 十二月 21, 2018
0
2 个回答 227 次浏览
我协助运营 ScriptureEarth.org 我们一直在设想一种可能性,即提供一个选项,让人们可以请求生成 PDF,并自行选择页面尺寸 字体和行距,也许还可以选择字体 双栏或单栏 我们的服务器是基于 Linux 的 看起来,如果 ... 们希望让人们能够选择他们需要的参数,而不是发布十几种不同的格式 这听起来合理吗? --Loren Hawthorne
LorenHawthorne 173 发布 提问于 八月 5, 2024
PTXprint
0
3 个回答 376 次浏览
我正在准备将《路加福音》和《使徒行传》印制成小册子,但我不知道如何在《使徒行传》开头之前插入一个中间扉页。
Jamie 102 发布 提问于 八月 6, 2024
PTXprint
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
Finally, all of you, be like-minded, be sympathetic, love one another, be compassionate and humble.
1 Peter 3:8
3,048 个问题
6,007 个回答
5,672 条评论
2,028 位用户