Skip to content

Conversation

@jtmaxwell3
Copy link
Collaborator

@jtmaxwell3 jtmaxwell3 commented Jan 1, 2026

This fixes https://jira.sil.org/browse/LT-22303. UpdateParagraphTextForPhrase adds a "§" to each text if ParagraphParser would not recognize it as a valid segment. Ideally, we would use ParagraphParser to determine this, but it doesn't indicate whether the last segment is valid. So we mimic its behavior in EndsWithEOS.


This change is Reviewable

@jtmaxwell3 jtmaxwell3 marked this pull request as draft January 2, 2026 22:30
@jtmaxwell3 jtmaxwell3 marked this pull request as ready for review January 9, 2026 20:02
@jtmaxwell3
Copy link
Collaborator Author

I replaced EndsWithEOS with ParagraphParser.EndsWithEOS, which should do a better job of determining whether a text ends with EOS.

Copy link
Contributor

@jasonleenaylor jasonleenaylor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

@jasonleenaylor reviewed 3 files and all commit messages, and made 1 comment.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @jtmaxwell3).

@jtmaxwell3 jtmaxwell3 merged commit 3ecd19d into release/9.3 Jan 9, 2026
5 checks passed
@jtmaxwell3 jtmaxwell3 deleted the LT-22303 branch January 9, 2026 20:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants