-
Hello, I found a collection Persian dictionaries that are based on movie subtitles and other cool themes. But apparently they are a completely distinct json format that cannot be opened in any app. https://github.com/VahidN/EnglishToPersianDictionaries/blob/master/README.md https://github.com/VahidN/EnglishToPersianDictionaries/blob/master/Dictionaries/subtitles/B.json Do you have any idea on how to convert or open them ? It is not clear on what platform they should be used. Dikt doesn't open them. Best Regards. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 9 replies
-
Put this script in a file named Then Then you can convert pyglossary subtitles.txt subtitles-dikt.json --write-format DiktJson |
Beta Was this translation helpful? Give feedback.
Put this script in a file named
json-to-tabfile.py
https://gist.github.com/ilius/8327ae548222eb7285b83dc16ab07cde
Then
cd
to the directory that contains your json files.Then run:
python json-to-tabfile.py . subtitles.txt
(
.
means the current directory)Then you can convert
subtitles.txt
to Dikt format using PyGlossary: