Is it possible to update entries in the CC-CEDICT database?

Support forum for our fast, user-friendly offline Chinese language study apps for Google Android devices:

Hanping Chinese Dictionary (Lite & Pro)
Hanping Cantonese Dictionary
Hanping Chinese Camera
Hanping Chinese Popup
Post Reply
xiaoshiyilang
Posts: 1
Joined: 23 Dec 2012, 10:45

Is it possible to update entries in the CC-CEDICT database?

Post by xiaoshiyilang »

Hello everyone ! I'm a newcomer here. I've had a long search with Google for the way to modify/import/update the dictionary database for my Hanping Chinese Dictionary Pro. I know that this app uses CC-CEDICT as its database for translating from Chinese to English, but I'm wondering how I would do to update those entries stored in "/sdcard/Android/data/com.embermitre.dictroid/zh/dicts/cccedict.dsd". For example: I try translating this word "Nihao" and then receive a result in English as "Hello", but I want to add other LANGUAGE to the only ENGLISH here, for example Vietnamese, so how can I do to extract this file and try to modify them with any text editor then compile it ? Thanks in advance.

hanping
Site Admin
Posts: 465
Joined: 18 Mar 2010, 08:52

Is it possible to update entries in the CC-CEDICT database?

Post by hanping »

Hi - unfortunately there is no easy way to do this. If you wanted to hack a solution, well the database is an SQLite database so you could use something like SQLiteSpy to manually edit it. However, keep backups, because when the database is automatically updated (approximately every 6 months) your changes will be overwritten!

fcantusaldivar
Posts: 1
Joined: 18 Apr 2013, 01:44

Re: Is it possible to update entries in the CC-CEDICT databa

Post by fcantusaldivar »

Hi embermitre,

I wanted to ask you, did you create the sqlite db by yourself or you obtained it from other source?

I have downloaded the cc-cedict (raw format) and I would like to make something like what xiaoshiyilang said but if the sqlite is proprietary of yours I wouldn't like to use it. instead I would create my own to suit my needs.

Cheers!

hanping
Site Admin
Posts: 465
Joined: 18 Mar 2010, 08:52

Re: Is it possible to update entries in the CC-CEDICT databa

Post by hanping »

Hi, yes the database is proprietary and took quite a lot of work to build from the raw CC-CEDICT data file, so it wouldn't be right to just copy it.

I wish you good luck with building something using the raw CC-CEDICT data file. We are all very lucky to have such a data source to build Chinese language-learning software from.

gbraad
Posts: 1
Joined: 02 May 2013, 16:06

Re: Is it possible to update entries in the CC-CEDICT databa

Post by gbraad »

embermitre wrote:Hi, yes the database is proprietary and took quite a lot of work to build from the raw CC-CEDICT data file, so it wouldn't be right to just copy it.
No matter how you change the format of cedict, it's content will remain CC-licensed. http://www.mdbg.net/chindict/chindict.php?page=cedict

Share Alike — If you alter, transform, or build upon this work, you may distribute the resulting work only under the same or similar license to this one.
I wish you good luck with building something using the raw CC-CEDICT data file. We are all very lucky to have such a data source to build Chinese language-learning software from.
Have a look at cjklib and how this generates their database (uses cedict as source). Currently using this library for a plugin I develop for my favourite editor. http://cjklib.org/
F/OSS & IT Consultant in Beijing

hanping
Site Admin
Posts: 465
Joined: 18 Mar 2010, 08:52

Re: Is it possible to update entries in the CC-CEDICT databa

Post by hanping »

Thanks very much for that @gbraad . I will look into this. The phrase "build upon" is very ambiguous. I always felt that with CC-CEDICT this was regarding the dictionary content (i.e. headwords and definitions) rather than the way it is stored.

I will get back later with an update once I have found out more.

But, yes, maybe cjklib would be more useful to @fcantusaldivar anyway.

Post Reply