Skip to content

Commit

Permalink
Merge pull request #98 from dehilsterlexis/VISUALTEXT-FILES-083
Browse files Browse the repository at this point in the history
VISUALTEXT-FILES-083 Added ability to call Python scripts on text
  • Loading branch information
David de Hilster authored Dec 9, 2023
2 parents 376ad90 + a60965f commit fa014ae
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions python/DeAccent.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Deacent words in the current text

import sys

from unidecode import unidecode

file_path = sys.argv[1]

with open(file_path, encoding='utf8') as f:
file_text = f.read()

text_without_accents = unidecode(file_text)

print(text_without_accents)

0 comments on commit fa014ae

Please sign in to comment.