Skip to content

Use json files from EnglishToPersianDictionaries #468

Answered by ilius
yumeo-ch asked this question in Q&A
Discussion options

You must be logged in to vote

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:

pyglossary subtitles.txt subtitles-dikt.json --write-format DiktJson

Replies: 1 comment 9 replies

Comment options

You must be logged in to vote
9 replies
@yumeo-ch
Comment options

@ilius
Comment options

@yumeo-ch
Comment options

@ilius
Comment options

@ilius
Comment options

Answer selected by yumeo-ch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants