0 票
265 次瀏覽
有沒有辦法在不開啟 Paratext 且無需人工干預的情況下更新專案資料?我隱約記得有一個 API 可以這樣做,但找不到相關資訊。

背景:我正在協助一個專案,他們希望建立一個持續整合(CI)系統,自動檢查 PT 資料的更新,並在發現更新時自動建置應用程式、網頁和列印文件的新版本。
機器翻譯自 English
Paratext 由 (1.9k 點) 提出 | 265 次瀏覽

1 個回答

0 票

Paratext Lite 有一組命令列參數,其中一個允許自動執行 Send/Receive(傳送/接收)。

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

機器翻譯自 English
由 [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 提出 已提問 5月 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月 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 提出 已提問 12月 21, 2018
0 票
1 個回答 162 次瀏覽
Paratext Lite 的命令行參數 這不適用於 Android (僅限桌面版) 這僅供 Paratext Lite 的高階管理員使用 可用於自動化腳本的一部分 Paratext Lite 擁有一組廣泛的 ... https://snapcraft.io/paratextlite (命令行選項也適用於非 Linux 桌面平台,例如 macos )
[Moderator]
hindlemail
2.4k 提出
已提問 8月 19
0 票
2 個回答 248 次瀏覽
我協助營運 ScriptureEarth.org 我們夢想著能建立一個選項,讓使用者可以要求生成 PDF,並自行選擇頁面大小 字體與行距,或許還能選擇字體 雙欄或單欄排版 我們的伺服器是基於 Linux 的 看起來,如果我們能將 ... 希望能夠讓使用者選擇他們需要的參數,而不是發布十幾種不同的格式 這聽起來合理嗎? --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.
Don’t you know that you yourselves are God’s temple and that God’s Spirit dwells in your midst?
1 Corinthians 3:16
3,051 個問題
6,010 個回答
5,676 則評論
2,030 位使用者