SILUBS.ScriptureChecks.CapitalizationProcessor.CheckForParaCapitalizationError C# (CSharp) Method

CheckForParaCapitalizationError() private method

Creates a checking error if paragraph style requires an initial uppercase letter, but the tssFirstLetter is lowercase.
private CheckForParaCapitalizationError ( ITextToken tok, TextTokenSubstring ttsFirstLetter, List result ) : bool
tok ITextToken The Scripture token.
ttsFirstLetter SILUBS.SharedScrUtils.TextTokenSubstring The token substring of the first word-forming character /// in the given token.
result List The error results.
return bool
		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;
		}