Skip to content

Commit d39b9c5

Browse files
committed
Add an overload to take a chapter-by-id dict for convenience in Serval
1 parent 0830d97 commit d39b9c5

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/SIL.Machine/PunctuationAnalysis/ParatextProjectQuoteConventionDetector.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,17 @@ protected ParatextProjectQuoteConventionDetector(ParatextProjectSettingsParserBa
2222
_settings = settingsParser.Parse();
2323
}
2424

25+
public QuoteConventionAnalysis GetQuoteConventionAnalysis(
26+
QuoteConventionDetector handler = null,
27+
Dictionary<string, List<int>> includeChapters = null
28+
)
29+
{
30+
return GetQuoteConventionAnalysis(
31+
handler,
32+
includeChapters.ToDictionary(kvp => Canon.BookIdToNumber(kvp.Key), kvp => kvp.Value)
33+
);
34+
}
35+
2536
public QuoteConventionAnalysis GetQuoteConventionAnalysis(
2637
QuoteConventionDetector handler = null,
2738
Dictionary<int, List<int>> includeChapters = null

0 commit comments

Comments
 (0)