Pure Python utilities for Hebrew text processing. No dependencies, works offline.
# Transliterate Hebrew to Latin
hebrew-tools "שלום עולם"
# Output: shalom olam
# Calculate gematria
hebrew-tools -g "בראשית"
# Output: 913
# Remove nikud (vowel points)
echo "שָׁלוֹם" | hebrew-tools -n
# Output: שלום
# List letter names
hebrew-tools -l "אבג"
# Output: Alef, Bet, Gimel
# Format number as Hebrew letters
hebrew-tools -N 613
# Output: תרי"ג
| Command | Description | Example |
|---|---|---|
| --------- | ------------- | --------- |
hebrew-tools | All transformations | hebrew-tools "שלום" |
hebrew-tools -t | Transliterate only | hebrew-tools -t "תורה" → "torah" |
hebrew-tools -g | Gematria only | hebrew-tools -g "חי" → 18 |
hebrew-tools -n | Remove nikud | hebrew-tools -n "בְּרֵאשִׁית" → "בראשית" |
hebrew-tools -l | Letter names | hebrew-tools -l "אב" → [Alef, Bet] |
hebrew-tools -r | Reverse RTL | hebrew-tools -r "שלום" → "מולש" |
hebrew-tools -N | Number to letters | hebrew-tools -N 26 → "כו" |
original: שלום
has_hebrew: True
transliteration: shalom
no_nikud: שלום
gematria: 376
letter_names: [Shin, Lamed, Vav, Mem]
from scripts.hebrew_tools import transliterate, gematria, remove_nikud
# Transliterate
print(transliterate("תורה")) # "torah"
# Gematria
print(gematria("חי")) # 18
# Remove nikud
clean = remove_nikud("בְּרֵאשִׁית")
print(clean) # "בראשית"
共 1 个版本