View topic - Kanji Benkyou
- Posts: 287
- Joined: Wed 10.11.2006 9:23 pm
It would be nice to have a way to choose a 'word file' like JLPT 3 kanji or Basho's poems to display in addition to checking off what you know. But that would be a huge amount of work and I am afraid only one person (Zen-san) could do that.
- Site Admin
- Posts: 2806
- Joined: Fri 01.21.2005 9:39 am
- Location: Florida
the current Kanji Benkyou box does a single Query to the database that automagically picks a random kanji from the first 300 kanji in the table. simple, quick, no problem.
a per-user configuration would have to:
* query user configuration.
* if not configured, fallback to the old way.
* if configured,
** find all of the kanji in the list.
** find all of the kanji the user 'knows' either for that list, or in total.
** remove the known kanji from the list of possibilities.
** pick a random one from the pruned list.
** fetch that one from the database and display.
i'm only slightly worried that all of the querying and making the pruned list might be a bit to much to do on every page load. so maybe a little cache code that caches the pruned list per-user until the next time a kanji is marked as 'learned'.
maybe the kanji lists can be generated from the DB every so often and turned into loadable PHP code (should be faster than a DB query each time).
probably possible with a bit of thinking and testing. the Kanji Benkyou stuff isn't really part of Fusion, but it would still take adding a field to the user-profile for the list selection which i've avoided because tweaking the tables will make any upgrade to newer code quite prolematic. but, we've already had to tweak one table for the posting problem, and there are now *so* many changes we've made to the Fusion PHP code that it doesn't look likely that we'll ever get around to trying to upgrade. maybe we're now running TJP-Fusion (ewww...).
in summary, let me think about it some more.
- Posts: 1200
- Joined: Sun 05.29.2005 10:16 pm
I dunno if you can do it with fusion, but maybe with Dhmtl or java.
Have the database download folder into the browser cache and set the window to query the cached folder instead of the main database.
- Posts: 3088
- Joined: Sun 10.09.2005 1:12 am
- Native language: 英語
Who is online
Users browsing this forum: No registered users and 2 guests