0
49 次浏览
我需要将一个 USX 文件转换为 USFM。我看到 Paratext 有反向操作的选项,但没看到从 USX 到 USFM 的选项。我需要这样做,因为 Proskomma(用于 Scripture App Builder 构建 PWA)拒绝了圣经中的 12 卷书,原因是它们不符合标准格式。我希望将它们转换为 USFM 后,Proskomma 处理起来会更轻松。
机器翻译自 English
Paratext (109 分) 发布 | 49 次浏览

2 个回答

+2
最佳答案

Paratext 可以使用 Project > Manage books > Import book(s) 将 USX 文件导入到现有项目中。这将把 USX 转换为 USFM 并保存在项目中。

机器翻译自 English
[Expert]
(16.7k 分) 发布

已选中 发布
太棒了!我之前没意识到转换是在后台进行的。现在我有了漂亮的 USFM 文件。非常感谢!
机器翻译自 English
0

I think usfmtc will do that for you. (https://github.com/usfm-bible/usfmtc, or pip install usfmtc)

I just tested it with a script like the below, and it seems to work. I'm guessing that it will be better than Proskomma, but it's still going to assume your USX file is exactly what the USFM standarizations committee considers "correct" USX.

import usfmtc

input_file = "input.usx"   # Change to your USX file path
output_file = "output.sfm" # Change to your desired SFM output path

doc = usfmtc.readFile(input_file)
doc.canonicalise()
doc.saveAs(output_file, outformat="usfm")

(1.9k 分) 发布

相关问题

+1
6 个回答 821 次浏览
有没有人知道可以将 USFM 格式转换为 USX(或其他任何 xml 变体)的命令行工具? 我想写一个脚本来从不同项目中获取几个不同的 .sfm 文件并批量转换它们 使用内置的 Tools->Advanced->Export Project ... usfm2usfx.exe 工具,但无法使其工作,但如果人们说那是最佳选择,我可以尝试弄清楚哪里出了问题
mnjames 1.9k 发布 提问于 八月 30, 2018
0
4 个回答 620 次浏览
We have a historical NT (from 1542) with extensive comments in footnotes to help modern readres to handle it. Is ... in USFM files, too? Any help would be appreciated, anon982572
Seppo Sipilä 250 发布 提问于 六月 7, 2016
0
6 个回答 509 次浏览
我想向我们的委员会展示所有包含希伯来语单词 chesed 的经文,以帮助他们思考:(1) 该词在每个上下文中的用法,以及 (2) 该词在不同上下文中的整体用法 我可以轻松地在源语言搜索工具中搜索 chesed,并得到一个很好的列表 ... language)而不是希伯来语输出文本 有没有一种直接的方法可以创建一个源语言参考列表,然后将其转换为项目参考列表?
viverechristus 296 发布 提问于 九月 23, 2021
0
1 个回答 429 次浏览
我想将项目导出为 HTML,以便与他人分享草稿 我不想导出为 PDF,因为 PDF 在智能手机和其他小屏幕设备上使用起来很不方便 我可以通过打开 Paratext,点击项目菜单按钮,然后选择 高级 (Advanced),再选择 将项目导出为 ... 标记是可见的,例如 \v 1 和 \s 等标记 我该如何在导出的 HTML 中隐藏这些 USFM 标记?
bit 495 发布 提问于 四月 14, 2022
0
2 个回答 367 次浏览
Hello, I am writing as a representative of a small task team assigned to review proposals for what becomes a ... necessary information with you. Thank you. jmkla [Email Removed]
[Expert]
jmkla
290 发布
提问于 十月 2, 2015
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
All the believers were one in heart and mind. No one claimed that any of their possessions was their own, but they shared everything they had.
Acts 4:32
3,047 个问题
6,007 个回答
5,672 条评论
2,027 位用户