0
248 次瀏覽
Is there a way to update project data without turning on Paratext and doing it with human intervention? I faintly remember there being an API which allowed this, but I can't find information about it.

Background: I'm helping a project which would like to create a continuous integration system to automatically check for updates to the PT data, and build new versions of apps and webpages and print documents when such updates are found.
Paratext (1.9k 點) 提出 | 248 次瀏覽

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 點) 提出
Thank you very much! I've just tested it, and so far this looks like exactly what I was looking for... even easier than I expected.

相關問題

0
1 個回答 222 次瀏覽
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 提出 已提問 5月 7, 2015
0
2 個回答 309 次瀏覽
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月 11, 2019
0
1 個回答 221 次瀏覽
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 提出 已提問 12月 21, 2018
0
1 個回答 66 次瀏覽
Paratext Lite 的命令行參數 這不適用於 Android (僅限桌面版) 這僅供 Paratext Lite 的高階管理員使用 可用於自動化腳本的一部分 Paratext Lite 擁有一組廣泛的 ... https://snapcraft.io/paratextlite (命令行選項也適用於非 Linux 桌面平台,例如 macos )
[Moderator]
hindlemail
2.4k 提出
已提問 8月 19
0
2 個回答 219 次瀏覽
I help operate ScriptureEarth.org. We are dreaming about the possibility of setting up an option for people to request ... . Does this sound at all reasonable? --Loren Hawthorne
LorenHawthorne 173 提出 已提問 8月 5, 2024
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
Just as a body, though one, has many parts, but all its many parts form one body, so it is with Christ.
1 Corinthians 12:12
3,045 個問題
6,003 個回答
5,671 則評論
2,026 位使用者