Skip to content

Commit

Permalink
Add nuget to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
yellis committed Feb 11, 2014
1 parent 8b56371 commit e889d20
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
4 changes: 2 additions & 2 deletions EllisWeb.Gematria.Tests/Calculator_Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,8 @@ public void ConvertToGematriaNumericString_ThreeDigit_NoSeparators_ReturnsCorrec
[Test]
public void ConvertToGematriaNumericString_ThreeDigit_WithSeparators_ReturnsCorrectString()
{
int input = 245;
string expected = "רמ\"ה";
int input = 613;
string expected = "תרי\"ג";
string output = Calculator.ConvertToGematriaNumericString(input);
Assert.AreEqual(expected, output);
}
Expand Down
16 changes: 14 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ A .net class library for calculating the Gematria / Gematriya value of strings o
You can learn more about Gematria in one of these sites ([1](http://en.wikipedia.org/wiki/Gematria), [2](http://www.i18nguy.com/unicode/hebrew-numbers.html))

The library is available for installation [via nuget package](https://www.nuget.org/packages/Gematria/):

PM> Install-Package Gematria

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

* `GetGematriaValue`
Expand All @@ -20,6 +24,13 @@ This library exposes the following methods, all available through the static `Ca
* `ConvertToGematriaNumericString`
* Convert a number into its Gematria Numeric Representation

Sample Usage:

Calculator.GetNumericGematriaValue("התשעד"); // returns 5774
Calculator.GetNumericGematriaValue("ה'תשע"ד"); // returns 5774
Calculator.ConvertToGematriaNumericString(613); // returns תרי"ג
Calculator.ConvertToGematriaNumericString(613, false); // returns תריג

As explained in the links above, there are different systems that can be used for translating Hebrew letters into numeric equivalents. The Gematria library allows use of the following four methods:

1. Absolute Value (מספר הכרחי):
Expand All @@ -36,5 +47,6 @@ As explained in the links above, there are different systems that can be used fo
* Calculated the value of each letter using the absolute system, truncating all zeros
* Leads to a sequence of values in order of letters: 1-9, 1-9, 1-9

All code is (c) Ellis Web Development, Ltd (http://ellisweb.net) and is released under the MIT License (http://opensource.org/licenses/MIT)
For more information, please contact Yaakov Ellis ([email protected])
All code is (c) [Ellis Web Development, Ltd](http://ellisweb.net) and is released under the [MIT License](http://opensource.org/licenses/MIT).

For more information, please contact me at [@yaakov](http://twitter.com/yaakov). Pull Requests and Issues are welcome.

0 comments on commit e889d20

Please sign in to comment.