# CFDICT
This is the French counterpart of the Cedcit Chinese-English dictionary.
The dictionary is delivered in an xml format.
I tranformed the original file in a new xml, csv and json formated files, with my own and similar format across my projects.
I first tranform the original into a json format with the same structure as the original with a command line utility. I then applied my programs to get the formats I wanted.
Original XML format:
30702
0
〇
〇
ling2
Corresponding json:
{
"id": [
"30702"
],
"upd": [
"0"
],
"trad": [
"〇"
],
"simp": [
"〇"
],
"py": [
"ling2"
],
"trans": [
{
"fr": [
"0",
"zéro"
]
}
]
}
After passing threw my programs:
* CSV: one line
㱩 殰 dú avortement / mort-né CFdict
* xml: one record
〇
〇
líng
0
zéro
CFdict
* json: the beginning and the first record
"CFdict": [
{
"hanzi": "〇",
"traditional": "〇",
"pinyin": "líng",
"translations": [
"0",
"zéro"
],
"origin": "CFdict"
}, etc ....