C# 클래스 SILUBS.ScriptureChecks.CapitalizationProcessor

Check capitalization for styles and sentences.
파일 보기 프로젝트 열기: sillsdev/FieldWorks 1 사용 예제들

공개 메소드들

메소드 설명
CapitalizationProcessor ( IChecksDataSource checksDataSource, StyleCapInfo>.Dictionary allCapitalizedStyles ) : System

Initializes a new instance of the ProcessSentenceFinalPunct class.

ProcessToken ( ITextToken tok, List result ) : void

Processes the Scripture token.

비공개 메소드들

메소드 설명
CheckForCharStyleCapilizationError ( ITextToken tok, TextTokenSubstring ttsFirstLetter, List result ) : bool

Creates a checking error if character style requires an initial uppercase letter, but the tssFirstLetter is lowercase.

CheckForParaCapitalizationError ( ITextToken tok, TextTokenSubstring ttsFirstLetter, List result ) : bool

Creates a checking error if paragraph style requires an initial uppercase letter, but the tssFirstLetter is lowercase.

GetLengthOfChar ( ITextToken tok, int iBaseCharacter ) : int

Gets the length of the character including any associated diacritics that follow the base character.

GetSubstring ( ITextToken tok, int iChar ) : TextTokenSubstring

Gets the substring for the character starting at position iChar.

IsSentenceFinalPunctuation ( char ch ) : bool

Determines whether the specified character is sentence final punctuation.

RecordCharacterStyle ( ITextToken tok ) : void

Records the character style.

RecordParagraphStyle ( ITextToken tok ) : void

Records the paragraph style.

RemoveAbbreviations ( ITextToken tok ) : string

Removes the abbreviations from a Scripture token.

메소드 상세

CapitalizationProcessor() 공개 메소드

Initializes a new instance of the ProcessSentenceFinalPunct class.
public CapitalizationProcessor ( IChecksDataSource checksDataSource, StyleCapInfo>.Dictionary allCapitalizedStyles ) : System
checksDataSource IChecksDataSource The source of data for Scripture checking.
allCapitalizedStyles StyleCapInfo>.Dictionary Dictionary keyed by the style name containing the /// type of style (character/paragraph) and a value indicating why it should begin with /// a capital.
리턴 System

ProcessToken() 공개 메소드

Processes the Scripture token.
public ProcessToken ( ITextToken tok, List result ) : void
tok ITextToken The token.
result List The result.
리턴 void