A quick Google search on hebrew remove nikkud
gave an answer.
On Github there's a JavaScript with a live preview code. If it's little text you could use the JavaScript either online or download and use it on your pc (save as .js
).
The Hebrew charcodes are all between 1425 and 1479 and the nikkud are between 0591 and 05C7.
Python implementation (tested):
import unicodedata
# nikkud-test.txt is the file you save your text in.
f= open('nikkud-test.txt','r', encoding='utf-8')
content = f.read()
normalized=unicodedata.normalize('NFKD', content)
no_nikkud=''.join([c for c in normalized if not unicodedata.combining(c)])
no_nikkud
f.close()
f = open('no-nikkud-test.txt','w',encoding='utf-8')
fw = f.write(no_nikkud)
f.close()
This works very fast.
UPDATED: How to use this script?
- Download Python 3.x.x from the python.org
- Save your nikkud text to
nikkud-test.txt
in whatever directory - From the start menu start your
cmd
shell/command prompt/terminal. - Move to directory where you saved your file by typing
cd
followed by the directory - type
python
or open aniPython
console. - copy + paste script
no-nikkud-test.txt
will show up in the same directory