Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

Latest commit

 

History

History
15 lines (11 loc) · 492 Bytes

README.md

File metadata and controls

15 lines (11 loc) · 492 Bytes

scel2rime

A library to convert Sogou scel file to rime dictionary file.

Usage

from scel2rime import scel2rime

# scel_file_path: str
# output_rime_dict_path: str
# dict_name: str, should correspond to output_file_dict_path
#   i.e. output_rime_dict_path = '~/.config/ibus/rime/sogou.dict.yaml'
#        dict_name             = 'sogou'
# version: str, usually date. e.g. '2021-06-08'
scel2rime(scel_file_path, output_rime_dict_path, dict_name, version)