A library to get info about bible books.
It supports Standard & Thompson abbreviations, OSIS & Paratext codes, max chapters, alternative names, and localized names.
- Book name
- Alternative book name
- OSIS code
- Paratext code
- Standard abbreviation
- Thompson abbreviation
- Max chapter
- English
- Filipino
You can use the BibleBooksHelper
static class to retrieve the book's info.
using BibleBooks;
var books = (BibleBook[])Enum.GetValues(typeof(BibleBook));
foreach (var book in books) {
// Standard abbreviation
Console.WriteLine(BibleBooksHelper.GetStandardAbbreviation(book));
// Thompson abbreviation
Console.WriteLine(BibleBooksHelper.GetThompsonAbbreviation(book));
// OSIS code
Console.WriteLine(BibleBooksHelper.GetOsisCode(book));
// Paratext code
Console.WriteLine(BibleBooksHelper.GetParatextCode(book));
// Max chapter
Console.WriteLine(BibleBooksHelper.GetMaxChapter(book));
// Alternative book names
Console.WriteLine(string.Join(",", BibleBooksHelper.GetAlternativeNames(book)));
// Book name - default locale
Console.WriteLine(BibleBooksHelper.GetName(book));
// Book name - English (en) locale
Console.WriteLine(BibleBooksHelper.GetName(book, CultureInfos.En));
// Book name - Filipino (fil) locale
Console.WriteLine(BibleBooksHelper.GetName(book, CultureInfos.Fil));
}
If you like my work and want to support me, buying me a coffee would be awesome! Thanks for your support!
Mark Ivan Basto • GitHub @MarkIvanDev • Twitter @Rivolvan_Speaks