Spaces:
Runtime error
Runtime error
nos
commited on
Upload 3 files
Browse files- notarikon.py +40 -0
- spell.py +114 -0
- temuraeh.py +59 -0
notarikon.py
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import json
|
| 2 |
+
# Implementando el m茅todo de Notarikon para texto hebreo.
|
| 3 |
+
# Notarikon es una t茅cnica que toma la primera (y a veces la 煤ltima) letra de cada palabra para formar una nueva palabra o frase.
|
| 4 |
+
|
| 5 |
+
def notarikon(text, mode='first'):
|
| 6 |
+
"""
|
| 7 |
+
Genera un Notarikon de un texto hebreo. Por defecto, toma la primera letra de cada palabra.
|
| 8 |
+
Si se especifica otro modo, puede adaptarse para tomar letras seg煤n necesidades espec铆ficas.
|
| 9 |
+
|
| 10 |
+
Args:
|
| 11 |
+
text (str): Texto hebreo del cual generar el Notarikon.
|
| 12 |
+
mode (str): Modo de generaci贸n del Notarikon ('first' para la primera letra, 'last' para la 煤ltima, etc.)
|
| 13 |
+
|
| 14 |
+
Returns:
|
| 15 |
+
str: El Notarikon generado del texto.
|
| 16 |
+
"""
|
| 17 |
+
words = text.split() # Divide el texto en palabras
|
| 18 |
+
if mode == 'first':
|
| 19 |
+
# Toma la primera letra de cada palabra
|
| 20 |
+
notarikon_result = ''.join(word[0] for word in words if word)
|
| 21 |
+
elif mode == 'last':
|
| 22 |
+
# Toma la 煤ltima letra de cada palabra
|
| 23 |
+
notarikon_result = ''.join(word[-1] for word in words if word)
|
| 24 |
+
else:
|
| 25 |
+
# Por defecto, regresa el texto sin cambios si el modo no es reconocido
|
| 26 |
+
notarikon_result = text
|
| 27 |
+
|
| 28 |
+
return notarikon_result
|
| 29 |
+
|
| 30 |
+
# Ejemplo de uso
|
| 31 |
+
#genesis = open("genesis.json","rb").read()
|
| 32 |
+
genesis = json.loads(open("genesis.json","r").read())["text"][0]
|
| 33 |
+
|
| 34 |
+
##example_text = "讘专讗砖讬转 讘专讗 讗诇讛讬诐 讗转 讛砖诪讬诐 讜讗转 讛讗专抓" # "En el principio Dios cre贸 los cielos y la tierra."
|
| 35 |
+
for txt in genesis:
|
| 36 |
+
|
| 37 |
+
notarikon_result_first = notarikon(txt, mode='first')
|
| 38 |
+
notarikon_result_last = notarikon(txt, mode='last')
|
| 39 |
+
|
| 40 |
+
print(notarikon_result_first, notarikon_result_last)
|
spell.py
ADDED
|
@@ -0,0 +1,114 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import datetime
|
| 2 |
+
|
| 3 |
+
# Tabla de los nombres de los 谩ngeles por estaci贸n zodiacal
|
| 4 |
+
angels_by_zodiac_station = {
|
| 5 |
+
"Aries": ["sha'aphon", "behemoth", "bekemesheb/bekemekesheb", "qotzien"],
|
| 6 |
+
"Tauro": ["dierenavor", "heniethebol", "siemegedel", "morepheker"],
|
| 7 |
+
"Geminis": ["sheneron", "phelehedien", "volereked", "akeneseb"],
|
| 8 |
+
"Cancer": ["Qedoqoredi", "Qoheleren", "Phereshetial", "Memenial"],
|
| 9 |
+
"Leo": ["Bephopher", "Lieshebeker", "Shehenen", "shehelekek"],
|
| 10 |
+
"Virgo": ["Siemosial", "Sebodeh", "Siegel", "Teremothiteh"],
|
| 11 |
+
"Libra": ["A'ariegol", "Mereton", "Qa'aberi", "Legoshmelek"],
|
| 12 |
+
"Escorpio": ["Therepiethz", "Phetza'an", "Shemophethen", "Thokesed"],
|
| 13 |
+
"Sagitario": ["Aketen", "Kephron", "Oliphiel", "Yosel"],
|
| 14 |
+
"Capricornio": ["Ameni", "Bieker", "Depheri", "Menenial"],
|
| 15 |
+
"Acuario": ["Meta'am", "Theberien", "Shethoqoeh", "Danial"],
|
| 16 |
+
"Piscis": ["Sha'aphenen", "Aniesien", "Sethered", "Qohemehogov"]
|
| 17 |
+
}
|
| 18 |
+
|
| 19 |
+
# Tabla de los nombres de los 谩ngeles por mes y estaci贸n
|
| 20 |
+
angels_by_month_station = {
|
| 21 |
+
"Nisan": ["Asegesenek", "Mesokenek", "Deriegemon", "Shethenovesenov"],
|
| 22 |
+
"Ayer": ["Phemetor", "Qotenebial", "Ma'agol", "Goberethial"],
|
| 23 |
+
"Sivan": ["Senediem", "Tzoveh", "Tziyer", "Qoseqomial"],
|
| 24 |
+
"Tamuz": ["Zemieda", "Phimheor", "A'aphierepheleh", "Ma'ava'aqobebov"],
|
| 25 |
+
"Ab": ["Kedoremot", "Hetheledemi", "Qonezerema'a", "Hehemekel"],
|
| 26 |
+
"Elul": ["Phelietepheter", "Thesedegeb", "Nephesa'ar", "Qomoval"],
|
| 27 |
+
"Thisri": ["Derek", "Mezeredeter", "Neqocheda", "Asepheres"],
|
| 28 |
+
"Marheshavan": ["Beqosh", "Pheladen", "Sherenar", "Kebod"],
|
| 29 |
+
"Kislev": ["Phelestos", "Kether", "Henek", "Phonetos Lobenos"],
|
| 30 |
+
"Tebeth": ["Naphenietz", "Sekeberiem", "Senekeros", "Bekerba'al"],
|
| 31 |
+
"Shevet": ["Pholekemon", "Qeronega", "Shelomieth", "Yavorer"],
|
| 32 |
+
"Adar": ["Koneled", "Ba'aren", "Sebiebekera'a", "Qoromeqore"]
|
| 33 |
+
}
|
| 34 |
+
|
| 35 |
+
# Tabla de los nombres de los 谩ngeles por d铆a y estaci贸n
|
| 36 |
+
angels_by_day_station = {
|
| 37 |
+
1: ["Phiegenochen", "Tenekien", "Kophethenien", "Makeleched"],
|
| 38 |
+
2: ["Tga'sher", "Menechethor", "Qoleneheren", "Shegedon"],
|
| 39 |
+
3: ["Sheriyachetz", "Qohebereneden", "Pherezen", "Hegelomoth"],
|
| 40 |
+
4: ["Pheniov Lavor", "Miyeshor", "Degiem", "Betheroqa"],
|
| 41 |
+
5: ["Kedemenor", "Avoreberien", "Qovephethem", "Bariebererov"],
|
| 42 |
+
6: ["Qola'azeran", "Deremthok", "Akethenor", "Arieh"]
|
| 43 |
+
}
|
| 44 |
+
|
| 45 |
+
# Tabla de los nombres de los 谩ngeles por signo de luna
|
| 46 |
+
angels_by_moon_sign = {
|
| 47 |
+
"Leberenieth": ["shaitan", "therezien", "sheneremi", "Gabrial"],
|
| 48 |
+
"Seletheleb": ["Yieshieshieh", "Abererehon", "Sheheqonek", "Bal Menael"],
|
| 49 |
+
"Yieshegeron": ["Phelayiem", "Ketherenial", "Rebenial", ""],
|
| 50 |
+
"Sheherieph": ["Biyom", "Bieth", "Rothep", "Danial"]
|
| 51 |
+
}
|
| 52 |
+
|
| 53 |
+
# Tabla de los nombres de los 谩ngeles que ministran la luna por signo zodiacal
|
| 54 |
+
moon_ministers_by_zodiac = {
|
| 55 |
+
"Aries": ["Zerem", "Behemi", "Pheloneh", "Qonosh"],
|
| 56 |
+
"Tauro": ["Deketon", "Mezekerien", "Thederenael", "Amiena"],
|
| 57 |
+
"Geminis": ["Shegeron", "Biehereron", "Yielebek", "Ashegerien"],
|
| 58 |
+
"Cancer": ["Mekerechiem", "Qoheder", "Keresivon", "Mehiemeten"],
|
| 59 |
+
"Leo": ["Letzoneber", "Shegeher", "A'avoqor", "Ayiethebien"],
|
| 60 |
+
"Virgo": ["A'anem Qenek", "Yiehedieh", "Kenedeni", "Shegeton"],
|
| 61 |
+
"Libra": ["Tzedequiel", "Sheqothiek", "Theshegekon", "Shecheqon"],
|
| 62 |
+
"Escorpio": ["Rehecho", "Menedeber", "Kotheben", "Bedod Besher"],
|
| 63 |
+
"Sagitario": ["Tzoqor", "Reberon", "Abenor", "Keniepena"],
|
| 64 |
+
"Capricornio": ["Meshegeriem", "Yieshieshieh", "Shebiebiek", "Shegerelovi"],
|
| 65 |
+
"Acuario": ["Maasheniem", "Aberedon", "Mesepher", "A'anethera"],
|
| 66 |
+
"Piscis": ["Sha'aphenen", "Aniesien", "Sethered", "Qohemehogov"]
|
| 67 |
+
}
|
| 68 |
+
|
| 69 |
+
# Tabla de los nombres de los 谩ngeles por estaci贸n de la Tierra
|
| 70 |
+
angels_by_earth_station = {
|
| 71 |
+
1: ["Memegien", "Yibesheh", "Thebel", "Hezeh Dovem"],
|
| 72 |
+
2: ["Mechemed Lov", "Bel Ached", "Aseberon", "Qohelorek"],
|
| 73 |
+
3: ["Mazeniem", "Amoniem", "Amoniem", "Mepheni Shesher"],
|
| 74 |
+
4: ["Yihelederek", "Mephenial", "Mephenial", ""]
|
| 75 |
+
}
|
| 76 |
+
|
| 77 |
+
# Tabla de los nombres de los 谩ngeles por estaci贸n de los Malechims
|
| 78 |
+
angels_by_malechim_station = {
|
| 79 |
+
1: ["Akeberon", "Amereneh", "Mazeniem", "Meneshor"],
|
| 80 |
+
2: ["Qoherok", "Aberiek", "Siegor", "Pheniemor"],
|
| 81 |
+
3: ["Aberieth", "Gezorophed", "Zerezor", "Themekor"],
|
| 82 |
+
4: ["Beriekoch", "Kephor", "Avor", ""]
|
| 83 |
+
}
|
| 84 |
+
|
| 85 |
+
# Obtener la fecha actual
|
| 86 |
+
current_date = datetime.datetime.now()
|
| 87 |
+
|
| 88 |
+
# Obtener el mes actual
|
| 89 |
+
current_month = current_date.month
|
| 90 |
+
|
| 91 |
+
# Obtener el d铆a actual
|
| 92 |
+
current_day = current_date.day
|
| 93 |
+
|
| 94 |
+
# Obtener el signo zodiacal correspondiente al mes actual
|
| 95 |
+
zodiac_sign = angels_by_month_station[list(angels_by_month_station.keys())[current_month - 1]][3]
|
| 96 |
+
|
| 97 |
+
# Obtener el 谩ngel correspondiente para cada tabla seg煤n la fecha actual
|
| 98 |
+
angel_day = angels_by_day_station[current_day][int(zodiac_sign[-1]) - 1]
|
| 99 |
+
angel_month = angels_by_month_station[list(angels_by_month_station.keys())[current_month - 1]][int(zodiac_sign[-1]) - 1]
|
| 100 |
+
angel_zodiac = angels_by_zodiac_station[zodiac_sign][int(zodiac_sign[-1]) - 1]
|
| 101 |
+
angel_moon_sign = angels_by_moon_sign["Leberenieth"][int(zodiac_sign[-1]) - 1]
|
| 102 |
+
angel_moon_minister = moon_ministers_by_zodiac[zodiac_sign][int(zodiac_sign[-1]) - 1]
|
| 103 |
+
angel_earth_station = angels_by_earth_station[list(angels_by_earth_station.keys())[current_month - 1]][int(zodiac_sign[-1]) - 1]
|
| 104 |
+
angel_malechim_station = angels_by_malechim_station[list(angels_by_malechim_station.keys())[current_month - 1]][int(zodiac_sign[-1]) - 1]
|
| 105 |
+
|
| 106 |
+
# Imprimir los resultados
|
| 107 |
+
print("脕ngel correspondiente al d铆a actual y al signo zodiacal:", angel_day)
|
| 108 |
+
print("脕ngel correspondiente al mes actual y al signo zodiacal:", angel_month)
|
| 109 |
+
print("脕ngel correspondiente al signo zodiacal:", angel_zodiac)
|
| 110 |
+
print("脕ngel correspondiente al signo de la luna:", angel_moon_sign)
|
| 111 |
+
print("脕ngel que ministra el signo zodiacal:", angel_moon_minister)
|
| 112 |
+
print("脕ngel correspondiente a la estaci贸n de la Tierra:", angel_earth_station)
|
| 113 |
+
print("脕ngel correspondiente a la estaci贸n de los Malechims:", angel_malechim_station)
|
| 114 |
+
|
temuraeh.py
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import json
|
| 2 |
+
# Implementemos la funci贸n de temurah con el alfabeto completo y probemos la conversi贸n de "Baphomet" a "Sofia"
|
| 3 |
+
# en hebreo usando temurah.
|
| 4 |
+
# Nota: La representaci贸n exacta de "Baphomet" y "Sofia" en hebreo puede variar debido a interpretaciones,
|
| 5 |
+
# pero aqu铆 usaremos transliteraciones aproximadas para ilustrar c贸mo podr铆a hacerse.
|
| 6 |
+
|
| 7 |
+
def temurah(text, hebrew_alphabet='讗讘讙讚讛讜讝讞讟讬讻诇诪谞住注驻爪拽专砖转', reverse=False):
|
| 8 |
+
"""
|
| 9 |
+
Aplica la temurah a un texto hebreo utilizando todo el alfabeto hebreo.
|
| 10 |
+
El esquema de ejemplo simplemente invierte el orden del alfabeto.
|
| 11 |
+
"""
|
| 12 |
+
# Invertir el alfabeto si se solicita
|
| 13 |
+
if reverse:
|
| 14 |
+
hebrew_alphabet = hebrew_alphabet[::-1]
|
| 15 |
+
|
| 16 |
+
# Generar el alfabeto invertido
|
| 17 |
+
inverted_alphabet = hebrew_alphabet[::-1]
|
| 18 |
+
|
| 19 |
+
# Crear el diccionario de mapeo para temurah
|
| 20 |
+
temurah_mapping = {orig: inv for orig, inv in zip(hebrew_alphabet, inverted_alphabet)}
|
| 21 |
+
|
| 22 |
+
# Aplicar temurah al texto
|
| 23 |
+
temurah_text = ''.join(temurah_mapping.get(char, char) for char in text)
|
| 24 |
+
|
| 25 |
+
return temurah_text
|
| 26 |
+
|
| 27 |
+
# Definir el alfabeto hebreo
|
| 28 |
+
hebrew_alphabet = '讗讘讙讚讛讜讝讞讟讬讻诇诪谞住注驻爪拽专砖转'
|
| 29 |
+
|
| 30 |
+
# Texto de ejemplo: "Baphomet" y "Sofia" en hebreo
|
| 31 |
+
# Es importante notar que la transliteraci贸n directa de nombres propios o t茅rminos espec铆ficos entre idiomas
|
| 32 |
+
# puede no ser directa o puede requerir ajustes basados en la fon茅tica o el uso hist贸rico.
|
| 33 |
+
|
| 34 |
+
# Por simplificaci贸n, supongamos transliteraciones hipot茅ticas para "Baphomet" a "Sofia":
|
| 35 |
+
# Estas transliteraciones son ejemplos y pueden no reflejar transliteraciones precisas.
|
| 36 |
+
baphomet_hebrew = '讘驻讜诪转' # Esta es una transliteraci贸n hipot茅tica para "Baphomet"
|
| 37 |
+
sofia_hebrew = '住讜驻讬讗' # Esta es una transliteraci贸n hipot茅tica para "Sofia"
|
| 38 |
+
|
| 39 |
+
|
| 40 |
+
jesus ="讬砖讜注"
|
| 41 |
+
christ = ""
|
| 42 |
+
|
| 43 |
+
print(temurah(jesus,hebrew_alphabet))
|
| 44 |
+
# Aplicar temurah al texto hipot茅tico de "Baphomet"
|
| 45 |
+
temurah_baphomet = temurah(baphomet_hebrew, hebrew_alphabet)
|
| 46 |
+
|
| 47 |
+
# Mostrar resultados
|
| 48 |
+
|
| 49 |
+
print(temurah_baphomet+"\n"+sofia_hebrew)
|
| 50 |
+
|
| 51 |
+
|
| 52 |
+
|
| 53 |
+
|
| 54 |
+
genesis = json.loads(open("genesis.json","r").read())["text"][0]
|
| 55 |
+
|
| 56 |
+
##example_text = "讘专讗砖讬转 讘专讗 讗诇讛讬诐 讗转 讛砖诪讬诐 讜讗转 讛讗专抓" # "En el principio Dios cre贸 los cielos y la tierra."
|
| 57 |
+
#for txt in genesis:
|
| 58 |
+
# print(temurah(txt,hebrew_alphabet))
|
| 59 |
+
|