C# Class SILUBS.SharedScrUtils.VersificationTable

Manipulate information for standard chatper/verse schemes
Mostrar archivo Open project: sillsdev/FieldWorks Class Usage Examples

Public Methods

Method Description
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.

Private Methods

Method Description
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

Method Details

ChangeVersification() public method

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

Get() public static method

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

GetFileNameForVersification() public static method

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

Initialize() public static method

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
return void

LastBook() public method

public LastBook ( ) : int
return int

LastChapter() public method

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

LastVerse() public method

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