Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Loading Chinese data into PostgreSQL fails #16

Closed
malcolmt opened this Issue Aug 19, 2010 · 3 comments

Comments

Projects
None yet
2 participants
Owner

malcolmt commented Aug 19, 2010

Running the migrations runs into problems with 0003_* in the minerva app. There's a duplicate key problem somewhere in the zho data.

Owner

malcolmt commented Sep 27, 2010

This is trickier than it looked at first sight. Some of the characters (words) appear multiple times in the Chinese file -- up to four times, in some cases (光, 行 and 顶 ). There are different meanings each time, so the lesson is introducing more advanced meanings.

We probably need to change our models to accommodate multiple meanings for a single foreign word.

Collaborator

matthewstevens commented Oct 30, 2010

We can not even differentiate by level. 光 occurs 3 times in level 2, and 顶 occurs 2 times in level 2 and 3. 光 can have meanings: "light", "nothing left", and "only; merely" and 顶 can mean "top" and "carry one the head" in level 2. They are simple enough that joining them together would be possible.

Owner

malcolmt commented Oct 31, 2010

Permit multiple entries for a particular foreign word.

Closed by 54ff9fa. After discussion with Matt, we decided not to enforce any
uniqueness constraint here. This required retrofitting a couple of
migrations, but since the code doesn't work for databases that enforce
unique constraints prior to this commit, this won't break any existing
installs.

This issue was closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment