Skip to content

Conversation

@Enkidu93
Copy link
Collaborator

@Enkidu93 Enkidu93 commented Oct 6, 2025

Fixes #348


This change is Reviewable

@Enkidu93 Enkidu93 requested a review from ddaspit October 6, 2025 20:39
@codecov-commenter
Copy link

codecov-commenter commented Oct 6, 2025

Codecov Report

❌ Patch coverage is 78.26087% with 10 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (master@6f7d447). Learn more about missing BASE report.

Files with missing lines Patch % Lines
...Analysis/ParatextProjectQuoteConventionDetector.cs 44.44% 10 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff            @@
##             master     #349   +/-   ##
=========================================
  Coverage          ?   72.38%           
=========================================
  Files             ?      417           
  Lines             ?    35632           
  Branches          ?     4928           
=========================================
  Hits              ?    25793           
  Misses            ?     8744           
  Partials          ?     1095           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Contributor

@ddaspit ddaspit left a comment

Choose a reason for hiding this comment

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

@ddaspit reviewed 8 of 8 files at r1, all commit messages.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @Enkidu93)


src/SIL.Machine/PunctuationAnalysis/ParatextProjectQuoteConventionDetector.cs line 33 at r1 (raw file):

        public QuoteConventionAnalysis GetQuoteConventionAnalysis(
            QuoteConventionDetector handler = null,
            Dictionary<string, List<int>> includeChapters = null

It would be better if this were a read-only interface, if possible, i.e. IReadOnlyDictionary.


src/SIL.Machine/PunctuationAnalysis/UsfmStructureExtractor.cs line 26 at r1 (raw file):

        {
            _nextTextSegmentBuilder.AddPrecedingMarker(UsfmMarkerType.Chapter);
            _nextTextSegmentBuilder.SetChapter(int.Parse(number));

It might be safer to get the chapter number from state.VerseRef.

Copy link
Collaborator Author

@Enkidu93 Enkidu93 left a comment

Choose a reason for hiding this comment

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

Reviewable status: 4 of 8 files reviewed, 2 unresolved discussions (waiting on @ddaspit)


src/SIL.Machine/PunctuationAnalysis/ParatextProjectQuoteConventionDetector.cs line 33 at r1 (raw file):

Previously, ddaspit (Damien Daspit) wrote…

It would be better if this were a read-only interface, if possible, i.e. IReadOnlyDictionary.

Done.


src/SIL.Machine/PunctuationAnalysis/UsfmStructureExtractor.cs line 26 at r1 (raw file):

Previously, ddaspit (Damien Daspit) wrote…

It might be safer to get the chapter number from state.VerseRef.

Done. Put in a change to machine.py for consistency.

Copy link
Contributor

@ddaspit ddaspit left a comment

Choose a reason for hiding this comment

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

:lgtm:

@ddaspit reviewed 4 of 4 files at r2, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @Enkidu93)

@Enkidu93 Enkidu93 force-pushed the filter_quote_convention_analysis_by_books branch from d1f8aba to f68f9d8 Compare October 8, 2025 13:54
@Enkidu93 Enkidu93 merged commit 333171a into master Oct 9, 2025
3 of 4 checks passed
@Enkidu93 Enkidu93 deleted the filter_quote_convention_analysis_by_books branch October 9, 2025 14:11
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.

Port book/chapter-level quote convention detection

4 participants