C# 클래스 SILUBS.SharedScrUtils.VersificationTable

Manipulate information for standard chatper/verse schemes
파일 보기 프로젝트 열기: sillsdev/FieldWorks 1 사용 예제들

공개 메소드들

메소드 설명
ChangeVersification ( IVerseReference vref ) : void

Change the passed VerseRef to be this versification.

Get ( ScrVers vers ) : VersificationTable

Get the versification table for this versification

GetFileNameForVersification ( ScrVers vers ) : string

Gets the name of this requested versification file.

Initialize ( string vrsFolder ) : void

This method should be called once before an application accesses anything that requires versification info. TODO: Paratext needs to call this with ScrTextCollection.SettingsDirectory.

LastBook ( ) : int
LastChapter ( int bookNum ) : int

Last chapter number in this book.

LastVerse ( int bookNum, int chapterNum ) : int

Last verse number in this book/chapter.

비공개 메소드들

메소드 설명
FileName ( ScrVers vers ) : string
ParseChapterVerseLine ( string fileName, VersificationTable versification, string line ) : void
ParseMappingLine ( string fileName, VersificationTable versification, string line ) : void
ReadVersificationFile ( string fileName, VersificationTable versification ) : void

Read versification file and "add" its entries. At the moment we only do this once. Eventually we will call this twice. Once for the standard versification, once for custom entries in versification.vrs file for this project.

VersificationTable ( ScrVers vers ) : System

메소드 상세

ChangeVersification() 공개 메소드

Change the passed VerseRef to be this versification.
public ChangeVersification ( IVerseReference vref ) : void
vref IVerseReference
리턴 void

Get() 공개 정적인 메소드

Get the versification table for this versification
public static Get ( ScrVers vers ) : VersificationTable
vers ScrVers
리턴 VersificationTable

GetFileNameForVersification() 공개 정적인 메소드

Gets the name of this requested versification file.
public static GetFileNameForVersification ( ScrVers vers ) : string
vers ScrVers Versification scheme
리턴 string

Initialize() 공개 정적인 메소드

This method should be called once before an application accesses anything that requires versification info. TODO: Paratext needs to call this with ScrTextCollection.SettingsDirectory.
public static Initialize ( string vrsFolder ) : void
vrsFolder string Path to the folder containing the .vrs files
리턴 void

LastBook() 공개 메소드

public LastBook ( ) : int
리턴 int

LastChapter() 공개 메소드

Last chapter number in this book.
public LastChapter ( int bookNum ) : int
bookNum int
리턴 int

LastVerse() 공개 메소드

Last verse number in this book/chapter.
public LastVerse ( int bookNum, int chapterNum ) : int
bookNum int
chapterNum int
리턴 int