I have made a (half complete) English-Thai-English version of the Longman Dictionary of Contemporary English (LDOCE) defining dictionary and I would like to make it easy to install on flash disks, so that Thais can use it to learn English and English speakers can use it to learn Thai. The idea would be that, like a virtual memory page fault, you would start out with all the words 'on disk' and none your own memory but each day would learn 5 new words... add them to your mnemosyne regimen, anyway.

The words, definitions and example sentences are in an sql database, so I can write out an xml file for mnemosyne from that. Apparently I've started this project before because I found an example that seems to work, with entries like...

-------------------------------------------------------------------------

<?xml version="1.0" encoding="UTF-8"?>
<mnemosyne core_version="1" >
<category active="1">
<name>&lt;LDOCE&gt;</name>
</category>
<item id="_0">
<cat>&lt;LDOCE&gt;</cat>
<Q>a (Det)&lt;br/&gt;&lt;center&gt;&lt;/center&gt;</Q>
<A>&lt;sound src="sounds/LDOCE/a/a.mp3"&gt;
 (Det)&lt;br/&gt;&lt;center&gt;&lt;/center&gt;</A>
</item>
<item id="_0.tr.1">
<cat>&lt;LDOCE&gt;</cat>
<Q> (Det)&lt;br/&gt;&lt;center&gt;&lt;/center&gt;</Q>
<A>a (Det)&lt;br/&gt;&lt;center&gt;&lt;/center&gt;
&lt;sound src="sounds/LDOCE/a/a.mp3"&gt;</A>
</item>
<item id="_1">
<cat>&lt;LDOCE&gt;</cat>
<Q>ability (N)&lt;br/&gt;&lt;center&gt;I have the ability to write English sentences.&lt;/center&gt;</Q>
<A>&lt;sound src="sounds/LDOCE/a/ability.mp3"&gt;
?????????? (N)&lt;br/&gt;&lt;center&gt;??????????????? ????????????????????? ??&lt;/center&gt;</A>
</item>
<item id="_1.tr.1">
<cat>&lt;LDOCE&gt;</cat>
<Q>?????????? (N)&lt;br/&gt;&lt;center&gt;??????????????? ?????????????????? ?????&lt;/center&gt;</Q> <A>ability (N)&lt;br/&gt;&lt;center&gt;I have the ability to write English sentences.&lt;/center&gt;
&lt;sound src="sounds/LDOCE/a/ability.mp3"&gt;</A>
</item>

--------------------------------------------------------------------

This works, kind of. But it shows both the English-Thai and then the Thai-English cards one after the other.

I'd like to be able to choose which way to go, and I'd like to add sound in both direction, so if the Q is ability the A would be ?????????? and that's would you'd hear when you hit Ctrl-r. Similarly, If the Q were ?????????? the A would be ability and that's what you'd hear.

The idea would that you would choose which category you wanted... say <LDOCE th-en> or <LDOCE en-th>. And in future we might add <LDOCE en-cn> and <LDOCE cn-en> other other categories.

Another consideration is source code control... since many people will have individual copies of the dictionary I'll need some way of being able to incorporate changes into a 'master' copy of the dictionary and a means of people synchronizing their individual copies with that master. That would be especially useful for adding new languages, where someone might just start an <LDOCE en-xx> and an <LDOCE xx-en> from scratch.

I suppose I could use mercurial for that, although I don't know much about mercurial or any distributed source code control system. I think the drill involves creating a 'merge tool' for updating the master.

If anyone has suggestions on how I should best go about this I'd appreciate hearing them.

Thanks.
--
"This message may have been intercepted and read by U.S. government agencies including the FBI, CIA, and NSA and/or the present government of Thailand without notice or warrant or knowledge of sender or recipient."

John Francis Lee
246/3 Thanon Kaew Wai
Mueang Chiangrai 57000
Thailand

--
"This message may have been intercepted and read by U.S. government agencies 
including the FBI, CIA, and NSA and/or the present government of Thailand without notice 
or warrant or knowledge of sender or recipient."

John Francis Lee
246/3 Thanon Kaew Wai
Mueang Chiangrai 57000
Thailand

--
You received this message because you are subscribed to the Google Groups 
"mnemosyne-proj-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/mnemosyne-proj-users?hl=en.

Reply via email to