Skip to content
/ tdk2dict Public

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

License

Notifications You must be signed in to change notification settings

abdnh/tdk2dict

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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 for use in programs like GoldenDict.

Usage

usage: tdk2dict.py [-h] [--name NAME] [--out FILE] [--start START] [--end END] FILE

Converts 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 process

optional 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.

TODO

Currently definitions, example sentences, and properties are imported. Maybe there are other useful info to import?

References