https://github.com/abdnh/tdk2dict
A Python script to convert dictionary data in JSON format downloaded from ogun/guncel-turkce-sozluk or https://sozluk.gov.tr/ to the DICT format
https://github.com/abdnh/tdk2dict
dict dictionary goldendict goldendict-dictionaries turkish turkish-dictionary turkish-language
Last synced: 3 months ago
JSON representation
A Python script to convert dictionary data in JSON format downloaded from ogun/guncel-turkce-sozluk or https://sozluk.gov.tr/ to the DICT format
- Host: GitHub
- URL: https://github.com/abdnh/tdk2dict
- Owner: abdnh
- License: cc0-1.0
- Created: 2022-04-19T23:46:29.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-04-20T00:36:56.000Z (over 3 years ago)
- Last Synced: 2025-07-07T02:06:31.799Z (3 months ago)
- Topics: dict, dictionary, goldendict, goldendict-dictionaries, turkish, turkish-dictionary, turkish-language
- Language: Python
- Homepage:
- Size: 33.2 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
A Python script to convert dictionary data in JSON format downloaded from [ogun/guncel-turkce-sozluk](https://github.com/ogun/guncel-turkce-sozluk) or https://sozluk.gov.tr/ to the [DICT format](https://en.wikipedia.org/wiki/DICT#Dict_file_format)
for use in programs like [GoldenDict](http://www.goldendict.org/).## Usage
```
usage: tdk2dict.py [-h] [--name NAME] [--out FILE] [--start START] [--end END] FILEConverts a JSON file taken from sozluk.gov.tr or ogun/guncel-turkce-sozluk and outputs two files in the DICT format.
positional arguments:
FILE the JSON file to processoptional arguments:
-h, --help show this help message and exit
--name NAME specify the name of the dictionary
--out FILE specify name of the produced .index and .dict files
--start START start importing from the entry with the specified index
--end END stop importing before the entry with the specified index
```## Download
If you want all the dictionary data, you can just download pre-generated files from the [releases page](https://github.com/abdnh/tdk2dict/releases/).
## TODO
Currently definitions, example sentences, and properties are imported. Maybe there are other useful info to import?
## References
- Tested with the JSON file obtained from here: https://github.com/ogun/guncel-turkce-sozluk/blob/master/sozluk/gts.json.tar.gz
- Man page of the `dictfmt` command used to produce the DICT files: https://linux.die.net/man/1/dictfmt
- About the DICT format: https://en.wikipedia.org/wiki/DICT#Dict_file_format