Skip to content

A library to get info about bible books. It supports Standard & Thompson abbreviations, OSIS & Paratext codes, max chapters, alternative names, and localized names.

License

Notifications You must be signed in to change notification settings

MarkIvanDev/BibleBooks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BibleBooks

A library to get info about bible books.

It supports Standard & Thompson abbreviations, OSIS & Paratext codes, max chapters, alternative names, and localized names.

Features

Supported bible book info:

  • Book name
  • Alternative book name
  • OSIS code
  • Paratext code
  • Standard abbreviation
  • Thompson abbreviation
  • Max chapter

Supported Locales

  • English
  • Filipino

Usage

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));
}

Support

If you like my work and want to support me, buying me a coffee would be awesome! Thanks for your support!

Buy Me A Coffee


Mark Ivan BastoGitHub @MarkIvanDevTwitter @Rivolvan_Speaks

About

A library to get info about bible books. It supports Standard & Thompson abbreviations, OSIS & Paratext codes, max chapters, alternative names, and localized names.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published