No description
  • PHP 59.6%
  • JavaScript 40.4%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2020-09-02 18:13:21 +02:00
Liste-mots-formatés modification du programme pour traiter le pinyin dans les traductions 2019-03-24 12:47:47 +01:00
Programmes ajout de programmes pour générer les fichiers pour EasyOCR 2020-09-02 18:13:21 +02:00
Programmes1 modification du programme pour traiter le pinyin dans les traductions 2019-03-24 12:47:47 +01:00
.gitignore premier commit 2019-02-10 20:33:06 +01:00
README.md README 2019-03-24 13:04:33 +01:00

Cedict project

Cedict is a free Chinese-English dictionary project. The base is used by many projects, on desktop, web and mobile platforms.

I wrote some programs (nodejs/javascript) to transform the text-based format in formats more suitable to my projects; there exists a php prgram to convert the original format into a xml format.

My programs format the dictionary into a json and .csv format.

I process the parts written in numbered pinyin to accentued pinyin; here is an example, with the original line and the CVS formatted one:

 K金 K金 [K jin1] /see 開金|开金[kai1 jin1]/

 K金	K金	k jīn	see 開金|开金[kāi jīn]

Here is an excerpt of the json formatted file, with the same part as above:

{
    "hanzi": "K金",
    "traditional": "K金",
    "pinyin": "k jīn",
    "translations": [
      "see 開金|开金[kāi jīn]"
    ]
}