-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
16 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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` | ||
|
@@ -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 (מספר הכרחי): | ||
|
@@ -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. |