
Offers functions for converting Hebrew strings to Gematria values, integers to Hebrew numerals, and Talmudic page numbers to string representations. Includes multiplatform and export options for native and JavaScript libraries.
This library provides a set of Kotlin functions for working with Hebrew numerals (Gematria) and Talmudic page references (Daf Gemara). It's designed to be easy to use and integrate into your projects, offering convenient extensions for String and Int types.
You can import the library directly from Maven Central.
Add the following to your build.gradle.kts:
repositories {
mavenCentral()
}
dependencies {
implementation("io.github.kdroidfilter:hebrewnumerals:0.2.4")
}val hebrewYear = "ΧͺΧ©Χ€Φ΄Χ"
val gematriaValue = hebrewYear.toGematria()
println(gematriaValue) // Outputs: 784val dafNumber = 5
val dafGemara = dafNumber.toDafGemara()
println(dafGemara) // Outputs: "Χ."
val dafNumber2 = 6
val dafGemara2 = dafNumber2.toDafGemara()
println(dafGemara2) // Outputs: "Χ:"val year = 5784
val hebrewYear = year.toHebrewNumeral()
println(hebrewYear) // Outputs: "Χ'ΧͺΧ©Χ€"Χ"
// Without Geresh symbols
val hebrewYearNoSymbols = year.toHebrewNumeral(includeGeresh = false)
println(hebrewYearNoSymbols) // Outputs: "ΧΧͺΧ©Χ€Χ"val dafNumber = 5
val englishDaf = dafNumber.toEnglishDafGemara()
println(englishDaf) // Outputs: "4a"
val dafNumber2 = 6
val englishDaf2 = dafNumber2.toEnglishDafGemara()
println(englishDaf2) // Outputs: "4b"This library is built with Kotlin Multiplatform, allowing it to be used across different platforms:
Converts a Hebrew string to its corresponding numerical value (Gematria).
Converts an integer representing a Daf Gemara (Talmudic page) to its corresponding string representation.
Converts an integer to its corresponding Hebrew numeral representation (Gematria).
Converts an integer representing a Daf Gemara to its English representation with "a" (Aleph) and "b" (Bet).
The library can be easily exported for use in various environments:
This library provides a set of Kotlin functions for working with Hebrew numerals (Gematria) and Talmudic page references (Daf Gemara). It's designed to be easy to use and integrate into your projects, offering convenient extensions for String and Int types.
You can import the library directly from Maven Central.
Add the following to your build.gradle.kts:
repositories {
mavenCentral()
}
dependencies {
implementation("io.github.kdroidfilter:hebrewnumerals:0.2.4")
}val hebrewYear = "ΧͺΧ©Χ€Φ΄Χ"
val gematriaValue = hebrewYear.toGematria()
println(gematriaValue) // Outputs: 784val dafNumber = 5
val dafGemara = dafNumber.toDafGemara()
println(dafGemara) // Outputs: "Χ."
val dafNumber2 = 6
val dafGemara2 = dafNumber2.toDafGemara()
println(dafGemara2) // Outputs: "Χ:"val year = 5784
val hebrewYear = year.toHebrewNumeral()
println(hebrewYear) // Outputs: "Χ'ΧͺΧ©Χ€"Χ"
// Without Geresh symbols
val hebrewYearNoSymbols = year.toHebrewNumeral(includeGeresh = false)
println(hebrewYearNoSymbols) // Outputs: "ΧΧͺΧ©Χ€Χ"val dafNumber = 5
val englishDaf = dafNumber.toEnglishDafGemara()
println(englishDaf) // Outputs: "4a"
val dafNumber2 = 6
val englishDaf2 = dafNumber2.toEnglishDafGemara()
println(englishDaf2) // Outputs: "4b"This library is built with Kotlin Multiplatform, allowing it to be used across different platforms:
Converts a Hebrew string to its corresponding numerical value (Gematria).
Converts an integer representing a Daf Gemara (Talmudic page) to its corresponding string representation.
Converts an integer to its corresponding Hebrew numeral representation (Gematria).
Converts an integer representing a Daf Gemara to its English representation with "a" (Aleph) and "b" (Bet).
The library can be easily exported for use in various environments: