Spaces:
Runtime error
Runtime error
| import json | |
| # Implementemos la funci贸n de temurah con el alfabeto completo y probemos la conversi贸n de "Baphomet" a "Sofia" | |
| # en hebreo usando temurah. | |
| # Nota: La representaci贸n exacta de "Baphomet" y "Sofia" en hebreo puede variar debido a interpretaciones, | |
| # pero aqu铆 usaremos transliteraciones aproximadas para ilustrar c贸mo podr铆a hacerse. | |
| def temurah(text, hebrew_alphabet='讗讘讙讚讛讜讝讞讟讬讻诇诪谞住注驻爪拽专砖转', reverse=False): | |
| """ | |
| Aplica la temurah a un texto hebreo utilizando todo el alfabeto hebreo. | |
| El esquema de ejemplo simplemente invierte el orden del alfabeto. | |
| """ | |
| # Invertir el alfabeto si se solicita | |
| if reverse: | |
| hebrew_alphabet = hebrew_alphabet[::-1] | |
| # Generar el alfabeto invertido | |
| inverted_alphabet = hebrew_alphabet[::-1] | |
| # Crear el diccionario de mapeo para temurah | |
| temurah_mapping = {orig: inv for orig, inv in zip(hebrew_alphabet, inverted_alphabet)} | |
| # Aplicar temurah al texto | |
| temurah_text = ''.join(temurah_mapping.get(char, char) for char in text) | |
| return temurah_text | |
| # Definir el alfabeto hebreo | |
| hebrew_alphabet = '讗讘讙讚讛讜讝讞讟讬讻诇诪谞住注驻爪拽专砖转' | |
| # Texto de ejemplo: "Baphomet" y "Sofia" en hebreo | |
| # Es importante notar que la transliteraci贸n directa de nombres propios o t茅rminos espec铆ficos entre idiomas | |
| # puede no ser directa o puede requerir ajustes basados en la fon茅tica o el uso hist贸rico. | |
| # Por simplificaci贸n, supongamos transliteraciones hipot茅ticas para "Baphomet" a "Sofia": | |
| # Estas transliteraciones son ejemplos y pueden no reflejar transliteraciones precisas. | |
| baphomet_hebrew = '讘驻讜诪转' # Esta es una transliteraci贸n hipot茅tica para "Baphomet" | |
| sofia_hebrew = '住讜驻讬讗' # Esta es una transliteraci贸n hipot茅tica para "Sofia" | |
| jesus ="讬砖讜注" | |
| christ = "" | |
| print(temurah(jesus,hebrew_alphabet)) | |
| # Aplicar temurah al texto hipot茅tico de "Baphomet" | |
| temurah_baphomet = temurah(baphomet_hebrew, hebrew_alphabet) | |
| # Mostrar resultados | |
| print(temurah_baphomet+"\n"+sofia_hebrew) | |
| genesis = json.loads(open("genesis.json","r").read())["text"][0] | |
| ##example_text = "讘专讗砖讬转 讘专讗 讗诇讛讬诐 讗转 讛砖诪讬诐 讜讗转 讛讗专抓" # "En el principio Dios cre贸 los cielos y la tierra." | |
| #for txt in genesis: | |
| # print(temurah(txt,hebrew_alphabet)) | |