Paratext Lite 的命令行參數。
- 這不適用於 Android。(僅限桌面版)
- 這僅供 Paratext Lite 的高階管理員使用。
- 可用於自動化腳本的一部分。
Paratext Lite 擁有一組廣泛的命令行參數。
最初,Paratext Lite 的選項是 Paratext 命令行參數的鏡像。(例如 --rdwrtp8 - 用於與 AdaptIt 同步),但隨著時間推移,增加了更多選項,最初是為了讓管理員能夠修復問題和實現自動化。後來,增加了對內部開發工作有用的功能。
以下是部分功能的概覽,如果對任何人有用,請參考。(通過在 paratextlite 命令行中提供 --help 標誌可以獲取更多信息):
非專案數據
reset 恢復為默認設置。在 Linux 上,還會關閉任何正在運行的 Paratext Lite 實例。
layout 命名的工作區佈局:導出、導入、快照當前工作區、啟用或刪除佈局、列出名稱。
regcode 讀取/更新/驗證當前註冊碼。
專案和資源管理
listprojects 列出可用的專案(本地或 S/R 伺服器上)
sendreceive 發送/接收專案並退出。
sendreceiveserver 獲取或設置使用的 Send/Receive 伺服器(生產環境或開發環境)。
resources 列出並安裝 DBL/Marble 資源。
shareresources 允許其他設備使用此機器作為來源安裝資源。
deleteproject 從此設備刪除指定的 Paratext 專案。警告:任何未發送/接收的更改將丟失。
搜索和修改專案數據。
export, read, save 將 paratext 專案內容保存到文件。
import, update, write 使用指定文件的內容更新 paratext 專案。
projectinfo 輸出指定專案的元數據
grep, search 使用正則表達式搜索 USFM 內容
changes, log 列出 Hg 更改(修訂版本、日期、作者)
diff 顯示自指定修訂版本以來的 USFM 更改
listusers 列出專案用戶
notes 列出或篩選專案註釋,並通過 ID 顯示單個註釋。
checks 為專案運行 Paratext 經文基本檢查(章節、大寫、標記等)。
biblicalterms 查詢專案的聖經術語和當地語言譯法。
wordlist 列出指定專案中使用的單詞,可選拼寫和範圍篩選。
markpointinhistory 提交專案更改(標記歷史點)。
如果命令行選項集中明顯缺少任何有用的功能,請告訴我們。
Paratext Lite 的 Linux 版本可以通過 snap 包安裝。https://snapcraft.io/paratextlite
(命令行選項也適用於非 Linux 桌面平台,例如 macos )
Paratext Lite's Cmd line arguments.
- This does not apply to Android. (Desktop only)
- This is intended for advanced admin use of Paratext Lite only.
- Could be used as part of automation scripts.
Paratext Lite has an extensive set of command line arguments.
Initially Paratext Lite options mirrored Paratext's command line arguments. (eg. --rdwrtp8 - which existed for syncing with AdaptIt), but over time more options were added, initially so admins could fix problems and automate things. Then functionality useful for internal development work was added.
Here is an overview of some of the capabilities, in case it is useful to anyone. (more information can be found by supplying the --help flag to paratextlite command line):
Non Project Data
reset Revert to default settings. On Linux, also closes any running Paratext Lite instances.
layout Named workspace layouts: export, import, snapshot live workspace, activate or delete a layout, list names.
regcode Read/Update/Verify current reg code.
Projects and resources management
listprojects List available projects (local or on S/R server)
sendreceive Send receive project and exit.
sendreceiveserver Get or set which Send/Receive server is used (Production or Development).
resources List and install DBL/Marble resources.
shareresources Allow other devices to install resources using this machine as a source.
deleteproject Delete specified Paratext projects from this device. Warning any changes not send/received will be lost.
Searching and modifying project data.
export, read, save Save paratext project content to file.
import, update, write Update a paratext project with the contents of specified file.
projectinfo Output metadata for specified projects
grep, search Search through USFM content with regex
changes, log List Hg changes (rev, date, author)
diff Show USFM changes since a specified revision
listusers List project users
notes List or filter project notes, and show a single note by ID.
checks Run Paratext scripture basic checks (ChapterVerse, Capitalization, Marker, etc.) for a project.
biblicalterms Lookup biblical terms and vernacular renderings for projects.
wordlist List words used in specified projects with optional spelling and scope filters.
markpointinhistory Commit project changes (mark point in history).
If there is anything obvious missing from the set of command line options that would be useful, please let us know.
The Linux version of Paratext Lite can be installed via a snap package. https://snapcraft.io/paratextlite
(Command line options also works on non Linux Desktop platforms like macos )
機器翻譯自 English