private bool CheckForParaCapitalizationError(ITextToken tok,
TextTokenSubstring ttsFirstLetter, List<TextTokenSubstring> result)
{
if (m_foundParagraphText)
return false;
m_foundParagraphText = true;
// The first character of the paragraph is lowercase.
// Look it up in the capitalized styles dictionary to determine if it should be uppercase.
StyleCapInfo styleCapInfo;
if (m_allCapitalizedStyles.TryGetValue(m_paragraphStyle, out styleCapInfo))
{
ttsFirstLetter.InventoryText = m_paragraphStyle;
ttsFirstLetter.Message = CapitalizationCheck.GetErrorMessage(m_checksDataSource,
styleCapInfo.m_capCheck, m_paragraphStyle);
result.Add(ttsFirstLetter);
return true;
}
return false;
}