0 票
264 次浏览
有没有办法在不打开 Paratext 且无需人工干预的情况下更新项目数据?我隐约记得有一个允许这样做的 API,但我找不到相关信息。

背景:我正在协助一个项目,他们希望创建一个持续集成系统,以自动检查 PT 数据的更新,并在发现此类更新时构建应用程序、网页和打印文档的新版本。
机器翻译自 English
Paratext 中 由 (1.9k 分) 发布 | 264 次浏览

1 个回答

0 票

Paratext Lite has a set of command line arguments, one of which allows automated Send/Receives.

paratextlite --help

Usage:
  ParatextLite [command] [options]

Options:
  --projectsPath <projectsPath>    specify paratext projects path.
  -d, --debug                      debugging: enable logging to terminal + dev tools.
  --addTimings                     debugging: if debugging enabled, add api timings to output.
  --disableHost                    debugging: Start backend and wait. (listens at http://localhost:8888/)
  --useBundle <useBundle>          debugging: specify bundle.js
  --websocketPort <websocketPort>  Override websocket port used internally. Default : 9999
  --webserverPort <webserverPort>  Override webserver port used internally. Default : 8888
  --disableErrorReports            Disable automatic error reports
  --rdwrtp8                        (obsolete) 'rdwrtp8 -r|-w project book chapter|0 fileName (-x)'
                                    -x : use usx.
                                    -r : save from paratext to specified fileName
                                    -w : update paratext with content from specified fileName
  --version                        Show version information
  -?, -h, --help                   Show help and usage information

Commands:
  reset                  revert to default settings.
  sendreceive            send receive project and exit.
  export, read, save     Save paratext project content to file.
  import, update, write  Update a paratext project with the contents of specified file.
  exportlayout           Save a named layout to file.
  importlayout           Add or Update a named layout from file.
  regcode                Read/Update current reg code.
  listprojects           list avaliable projects

paratextlite sendreceive --help

Description:
  send receive project and exit.

Usage:
  ParatextLite sendreceive [options]

Options:
  -p, --projects <projects> (REQUIRED)  projects to use. Specify one or more. []
  --projectsPath <projectsPath>         specify paratext projects path.
  --allProjects                         Use all valid registered projects that the registered user can S/R. If specified, --projects
                                        is ignored. [default: False]
  -?, -h, --help                        Show help and usage information

由 [Moderator]
(2.4k 分) 发布
非常感谢!我刚刚测试了一下,到目前为止,这看起来正是我在找的东西……甚至比我预期的还要简单。
机器翻译自 English

相关问题

0 票
1 个回答 248 次浏览
PrintDraft uses xetex (which in turn uses ptx2pdf macros) to do the printing to pdf in Paratext. Presumably, PT ... be able to run nice looking drafts straight from PrintDraft.
mnjames 1.9k 发布 提问于 五月 7, 2015
0 票
2 个回答 402 次浏览
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 个回答 240 次浏览
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 票
1 个回答 162 次浏览
Paratext Lite 的命令行参数 此功能不适用于 Android (仅限桌面版) 此功能仅供高级管理员使用 Paratext Lite 可作为自动化脚本的一部分使用 Paratext Lite 拥有一 ... https://snapcraft.io/paratextlite (命令行选项也适用于非 Linux 桌面平台,例如 macos )
[Moderator]
hindlemail
2.4k 发布
提问于 八月 19
0 票
2 个回答 248 次浏览
我协助运营 ScriptureEarth.org 我们一直在设想一种可能性,即提供一个选项,让人们可以请求生成 PDF,并自行选择页面尺寸 字体和行距,也许还可以选择字体 双栏或单栏 我们的服务器是基于 Linux 的 看起来,如果 ... 们希望让人们能够选择他们需要的参数,而不是发布十几种不同的格式 这听起来合理吗? --Loren Hawthorne
LorenHawthorne 173 发布 提问于 八月 5, 2024
PTXprint 中
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
Live in harmony with one another. Do not be proud, but be willing to associate with people of low position. Do not be conceited.
Romans 12:16
3,051 个问题
6,010 个回答
5,676 条评论
2,030 位用户