From dd4b7ab700bb35bfa6129d553909a0df5b24c32f Mon Sep 17 00:00:00 2001 From: Damien Daspit Date: Fri, 21 Jun 2024 17:42:59 -0700 Subject: [PATCH] Remove obsolete handling of \d marker --- .../Corpora/ScriptureRefUsfmParserHandlerBase.cs | 2 +- .../Corpora/TestData/usfm/Tes/41MATTes.SFM | 11 +++++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/src/SIL.Machine/Corpora/ScriptureRefUsfmParserHandlerBase.cs b/src/SIL.Machine/Corpora/ScriptureRefUsfmParserHandlerBase.cs index 661d7fdd6..da66b34fc 100644 --- a/src/SIL.Machine/Corpora/ScriptureRefUsfmParserHandlerBase.cs +++ b/src/SIL.Machine/Corpora/ScriptureRefUsfmParserHandlerBase.cs @@ -84,7 +84,7 @@ IReadOnlyList attributes if (_curVerseRef.IsDefault) UpdateVerseRef(state.VerseRef, marker); - if (!state.IsVerseText || marker == "d") + if (!state.IsVerseText) { StartParentElement(marker); StartNonVerseText(state); diff --git a/tests/SIL.Machine.Tests/Corpora/TestData/usfm/Tes/41MATTes.SFM b/tests/SIL.Machine.Tests/Corpora/TestData/usfm/Tes/41MATTes.SFM index 672b93daa..a12d0679b 100644 --- a/tests/SIL.Machine.Tests/Corpora/TestData/usfm/Tes/41MATTes.SFM +++ b/tests/SIL.Machine.Tests/Corpora/TestData/usfm/Tes/41MATTes.SFM @@ -53,12 +53,11 @@ \tr \tc1-2 \v 10 \tc3-4 \qt-s |Jesus\*Chapter 2 verse 10\qt-e\* \v 11-12 -\restore restore information \c 3 \cl PSALM 3 \s1 Section 1 \mt1 Major Title 1 -\d \va (1)\va* Description +\d \va (1)\va* Non-verse descriptive title \q1 \v 1 \va 2\va*\vp 1 (2)\vp* Chapter 3 verse 1. \q1 3.1 part 2 @@ -67,3 +66,11 @@ \q1 3.1 part 4 \c 4 \v 1 +\c 5 +\d +\v 1 Verse descriptive title +\c 6 +\b +\q1 +\s +\restore restore information