Author Topic: DictionaryForMIDs for iPhone - via xmlvm  (Read 3042 times)

0 Members and 1 Guest are viewing this topic.

jn0101

  • Developer
  • *****
  • Posts: 85
    • View Profile
DictionaryForMIDs for iPhone - via xmlvm
« on: 05. May 2010, 09:14:19 »
Guys,

I have contact with a Korean Esperanto speaker that made an iPhone dictionary solution which he is considering open sourcing.
He got really enthusiastic about the 26 language pairs from http://lernu.net that are on their way, and I suggested he could adapt his solution to use the DfM engine (and thus have access to all the pairs that DfM publishes).

Ive used http://xmlvm.org before to test convert code from Java to Objective-C and I think it wouldnt be too had to convert the DfM engine to be usable from iPhone. Eventually the whole DfM Android user interface could be converted, but that would probably take a lot more work.

Do you have some sample code (or test code) lying around that shows how to initialize and use the DfM engine from an external app?

Jacob

Gert

  • DFM J2ME/Mobile Developer and Project Leader
  • Administrator
  • *****
  • Posts: 858
    • View Profile
    • DictionaryForMIDs
Re: DictionaryForMIDs for iPhone - via xmlvm
« Reply #1 on: 05. May 2010, 18:54:13 »
Achim will be the best person to answer to this post, I assume that the Android implementation will be a good sample for using the DfM translation layer ('DfM engine').

Here is my bit of information: http://dictionarymid.sourceforge.net/development.html
There you find a description of the translation layer and its interface. Well, that description still may need some additions (for example the initialization that you mention is not yet included). I can provide such information if someone will include the DfM translation layer in an iPhone implementation.

And of course we can provide support via this forum.

Best regards,
Gert

axin

  • Developer
  • *****
  • Posts: 126
    • View Profile
Re: DictionaryForMIDs for iPhone - via xmlvm
« Reply #2 on: 06. May 2010, 09:07:48 »
Having DfM on the iPhone would be great!

Here is my bit of information: http://dictionarymid.sourceforge.net/development.html

That link provided most information for using the DfM translation layer. Of course, you can also refer to the Android implementation (e.g. hmi_android.DictionaryForMIDs.onCreate():329, hmi_android.thread.LoadDictionaryThread.run(), hmi_android.DictionaryForMIDs.startTranslation(), ...) and post all the questions here ;-)

BTW, I've been reading some articles that Apple prohibits applications that are not originally written for the iPhone, e.g. on zdnet. Not sure how this might affect xmlvm though...

Achim

Gert

  • DFM J2ME/Mobile Developer and Project Leader
  • Administrator
  • *****
  • Posts: 858
    • View Profile
    • DictionaryForMIDs
Re: DictionaryForMIDs for iPhone - via xmlvm
« Reply #3 on: 13. May 2010, 20:42:47 »
Already any news on the iPhone-topic ?

I just added one section in http://dictionarymid.sourceforge.net/development.html on Initialization in order to complete the information there.

Quote
That link provided most information for using the DfM translation layer. Of course, you can also refer to the Android implementation (e.g. hmi_android.DictionaryForMIDs.onCreate():329, hmi_android.thread.LoadDictionaryThread.run(), hmi_android.DictionaryForMIDs.startTranslation(), ...)
Well, probably looking at that Android code as a sample is the easiest way.

Quote
and post all the questions here ;-)
And that will solve any remaining questions :)

Greetings,
Gert