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 经文基本检查(ChapterVerse、Capitalization、Marker 等)。
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