Skip to content

When pretranslating a chapter with verse 0, text is placed in the wrong segment #749

@pmachapman

Description

@pmachapman

Given a source and target with this structure (the source is complete, while the target is blank):

\id LJE - My Test Project
\h
\mt
\c 1
\p \v 0
\s
\p \v 1 \v 2 \v 3 \v 4 \v 5 \v 6 \v 7

Retrieving the USFM (i.e. via https://qa.serval-api.org/api/v1/translation/engines/68b4d9fa832ad2dc64e124ba/corpora/68b4da00832ad2dc64e124c3/pretranslations/LJE/usfm?template=Source) results in the pre-translated text for verse 0 being placed in the preceding paragraph, i.e.:

\id LJE - Auxiliary Test Project
\rem This draft of LJE was generated using AI on 2025-09-07 22:18:52Z. It should be reviewed and edited carefully.
\rem Paragraph and embed markers were moved to the end of the verse. Style markers were removed.
\h The Message of Jeremiah
\mt The Message of Jeremiah
\c 1
\p These are the words of the letter which Jeremiah wrote to all the children of Judah, whom the king of Babylon intended to carry away into captivity to Babylon, concerning which Jehovah commanded him to speak to them.
\v 0
\s Watch out for the idols.
\p
\v 1 You have sinned against God, that's why Nebuchadnezzar, the king of Babylon, will take you to Babylon.

Not sure what we can do this, and it is a pretty edge case, so this is not a blocker for Serval 1.10.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

Status

👀 In review

Relationships

None yet

Development

No branches or pull requests

Issue actions