ConvertUsfmVersificationHandler doesn't merge verses correctly
维护者通常 1 天内回复
@Enkidu93 已经在做这个了。
开始于 2026年9月24日。
评估
这个 Issue 还没有评估数据。
描述
The English versification has the following verse mapping for Psalm 51 which merges two verses into one:
PSA 51:0 = PSA 51:1
PSA 51:0 = PSA 51:2
PSA 51:1-19 = PSA 51:3-21
When converting Psalm 51 from Original to English Versification, the following USFM is generated:
\id PSA
\c 51
\s1 Create in Me a Clean Heart, O God
\r (2 Samuel 12:1–12)
\p
\v 0 For the choirmaster. A Psalm of David.
\v 0 When Nathan the prophet came to him after his adultery with Bathsheba.
\b
\q1
\v 1 Have mercy on me,\f + \fr 51:3 \ft Or \fqa Be gracious to me\f* O God,
\q2 according to Your loving devotion;
\q1 according to Your great compassion,
\q2 blot out my transgressions.
...
A test which recreates this scenario:
[Test]
public void GetUsfm_MergedVerses()
{
// Original vs. English
// PSA 51:1-3 = PSA 51:0-1
string usfm =
@"\id PSA
\c 51
\s1 Create in Me a Clean Heart, O God
\r (2 Samuel 12:1–12)
\p
\v 1 For the choirmaster. A Psalm of David.
\v 2 When Nathan the prophet came to him after his adultery with Bathsheba.
\b
\q1
\v 3 Have mercy on me,\f + \fr 51:3 \ft Or \fqa Be gracious to me\f* O God,
\q2 according to Your loving devotion;
\q1 according to Your great compassion,
\q2 blot out my transgressions.
";
string target = UpdateUsfm(usfm, sourceVersification: ScrVers.Original, targetVersification: ScrVers.English);
string result =
@"\id PSA
\c 51
\s1 Create in Me a Clean Heart, O God
\r (2 Samuel 12:1–12)
\p
\v 0 For the choirmaster. A Psalm of David. When Nathan the prophet came to him after his adultery with Bathsheba.
\b
\q1 \v 1 Have mercy on me,\f + \fr 51:1 \ft Or \fqa Be gracious to me\f* O God,
\q2 according to Your loving devotion;
\q1 according to Your great compassion,
\q2 blot out my transgressions.
";
AssertUsfmEquals(target, result);
}
- 主要语言
- C#
- 星标
- 29
- 派生
- 17
- 平均合并
- 4 天 15 小时
- 30 天内合并 PR
- 8
环境准备
我们还没有检查这个项目的环境配置文件。先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
sillsdev/machine 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 45/100
sillsdev/machine#524 · 2 条评论 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 48/100
维护者通常 1 天内回复
-
Environment matchers pay for captures they never read; key the traversal on what the caller consumes未关闭
难度 5/5 一周以上 新手友好度 45/100
sillsdev/machine#515 · 1 条评论 ·
维护者通常 1 天内回复
-
enhancement
难度 5/5 一周以上 新手友好度 35/100
维护者通常 1 天内回复
-
HermitCrab: Word.ExpandAlternatives discards Unify's success flag and can null the realizational FS未关闭
难度 5/5 一周以上 新手友好度 38/100
维护者通常 1 天内回复
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 82/100
NethermindEth/nethermind#14012 ·
维护者通常 1 天内回复
-
dependencies Status: Triage
难度 2/5 1-3 小时 新手友好度 68/100
json-schema-org/website#2518 ·
维护者通常 1 天内回复
-
agentic-workflows
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
builtbybel/Flyoobe#498 ·
-
难度 2/5 1-3 小时 新手友好度 62/100
builtbybel/CrapFixer#112 ·