/// ------------------------------------------------------------------------------------ /// <summary> /// Initializes the VersificationTable class for tests. /// </summary> /// ------------------------------------------------------------------------------------ public static void InitializeVersificationTable() { string vrsPath = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location); File.WriteAllBytes(Path.Combine(vrsPath, VersificationTable.GetFileNameForVersification(ScrVers.English)), Properties.Resources.eng); File.WriteAllBytes(Path.Combine(vrsPath, VersificationTable.GetFileNameForVersification(ScrVers.Septuagint)), Properties.Resources.lxx); File.WriteAllBytes(Path.Combine(vrsPath, VersificationTable.GetFileNameForVersification(ScrVers.Original)), Properties.Resources.org); VersificationTable.Initialize(vrsPath); }
/// ------------------------------------------------------------------------------------ /// <summary> /// Read the versification files into static tables /// </summary> /// <param name="vrsFolder">Path to the folder containing the .vrs files</param> /// <param name="fSupportDeuterocanon">set to <c>true</c> to support deuterocanonical /// books, otherwise <c>false</c>.</param> /// ------------------------------------------------------------------------------------ public static void InitializeVersification(string vrsFolder, bool fSupportDeuterocanon) { VersificationTable.Initialize(vrsFolder); SupportDeuterocanon = fSupportDeuterocanon; }