Skip to content

Releases: yellis/Gematria

1.1

20 Jan 10:22
Compare
Choose a tag to compare
  • Adds GematriaOptions class to encapsulate any different style changes made in the Calculator.ConvertToGematriaNumericString call
  • Deprecates (but continues to support) the old call that does not include GematriaOptions

1.0.2

23 Apr 19:59
Compare
Choose a tag to compare
  • Add Strict Mode as an option when running Calculator.GetNumericGematriaValue(). When turned on the calculator will throw a FormatException whenever the numbers at the end of the string that are under 100 (ק) are not included in descending numeric order, and do not appear on the exceptions list.
    • See #1 for more detail.
    • A peek at the unit test for this might also make this more easy to comprehend.
  • You can set your global preference using Calculator.ForceNumericStrictMode (defaults to false) and you can set your preference for individual calls using the isStrictMode param in the function call.
  • This is available in nuget 1.0.2.

1.0.0

23 Apr 19:57
Compare
Choose a tag to compare

Initial release of full functionality.

This library exposes the following methods, all available through the static Calculator class:

  • GetGematriaValue
    • Calculates the gematria value for all Hebrew letters in the given string.
    • Ignores all characters that are not Hebrew letters.
  • GetNumericGematriaValue
    • Calculates the gematria value for a string that is intended to represent a number (example: a year in the Hebrew calendar or page in a Hebrew book).
    • This function expects that the given string will contain only one word, and will throw an error if more than one word is included (this is because a string of Hebrew characters representing a number will never consist of multiple words).
    • Ignores non-Hebrew characters and punctuation in the given word.
  • ConvertToGematriaNumericString
    • Convert a number into its Gematria Numeric Representation

See ReadMe for more info.