Filter quote convention analysis by books/chapter#349
Conversation
Codecov Report❌ Patch coverage is
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. 🚀 New features to boost your workflow:
|
ddaspit
left a comment
There was a problem hiding this comment.
@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.
Enkidu93
left a comment
There was a problem hiding this comment.
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.
ddaspit
left a comment
There was a problem hiding this comment.
@ddaspit reviewed 4 of 4 files at r2, all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @Enkidu93)
d1f8aba to
f68f9d8
Compare
Fixes #348
This change is