Skip to content

Commit

Permalink
Prestranslation versification mismatch (#471)
Browse files Browse the repository at this point in the history
* Use target refs
  • Loading branch information
Enkidu93 authored Sep 4, 2024
1 parent b91a235 commit 4382410
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ private static IEnumerable<Row> AlignPretranslateCorpus(Corpus corpus, ITextCorp
{
if (!row.IsTargetRangeStart && row.IsTargetInRange)
{
refs.AddRange(row.Refs);
refs.AddRange(row.TargetRefs);
if (row.SourceText.Length > 0)
{
if (srcSegBuffer.Length > 0)
Expand All @@ -422,7 +422,7 @@ private static IEnumerable<Row> AlignPretranslateCorpus(Corpus corpus, ITextCorp
}

textId = row.TextId;
refs.AddRange(row.Refs);
refs.AddRange(row.TargetRefs);
srcSegBuffer.Append(row.SourceText);
trgSegBuffer.Append(row.TargetText);
rowCount++;
Expand Down

0 comments on commit 4382410

Please sign in to comment.