Hi!
In FAQ section: http://dictionarymid.sourceforge.net/faq.html#FAQ_3_1 (http://dictionarymid.sourceforge.net/faq.html#FAQ_3_1)
it is said:
"Starting with version 3.1.0 DictionaryForMIDs supports 'Loadable Dictionaries', that is dictionaries can be stored as a normal files on the cell phone / PDA". However, I couldn't find this version to be downloadable anywhere.
I wanted to try all those steps listed in http://dictionarymid.sourceforge.net/faqLoadableDictionaries.html (http://dictionarymid.sourceforge.net/faqLoadableDictionaries.html), and check if it is working on my phone (Nokia 6103, which has 128KB jar limit >:().
Oh, that's great if you want to test the 'Loadable Dictionaries' !
DictionaryForMIDs 3.1 is delayed, mainly because of problems with SonyEricsson cell phones. Still, hope that we can do a test release of 3.1 'soon' (whatever that means ...). Just stay tuned ;)
Best greetings,
Gert
I just created a first test version of 3.1: you can download it at
http://www.kugihan.de/dict/download/test_versions/DictionaryForMIDs.jad (http://www.kugihan.de/dict/download/test_versions/DictionaryForMIDs.jad)
http://www.kugihan.de/dict/download/test_versions/DictionaryForMIDs.jar (http://www.kugihan.de/dict/download/test_versions/DictionaryForMIDs.jar)
This is a 'DictionaryForMIDs_empty' version (even if the file names do not contain the 'empty').
Would be great if you could do a test on your 6103 !
Gert
Thank you for the test version. However, jar you have provided is bigger than 128KB (to be exact it is 333KB), and I couldn't install it on my phone (it has jar limit 128KB). The last stable "empty" version (don't remember which exactly) was less than 128KB, so I managed to install it successfully, but it didn't have loadable dictionary support.
Oh, understand !!
I placed a new version at
http://www.kugihan.de/dict/download/test_versions/jsr75/DictionaryForMIDs.jad (http://www.kugihan.de/dict/download/test_versions/jsr75/DictionaryForMIDs.jad)
http://www.kugihan.de/dict/download/test_versions/jsr75/DictionaryForMIDs.jar (http://www.kugihan.de/dict/download/test_versions/jsr75/DictionaryForMIDs.jar)
That version is still 171 kB, but I guess it should run on your 6103 (in the past the JAR file limits that were documented by Nokia usually could be exceeded quite a bit).
Actually, a pure JSR75-version (aka 'loadable dictionary'-version) would be even smaller, but I first have to write a few scripts. Please just try the 171 kB-version above.
Thanks for testing !
Gert
Nope, still get "file size is too big"... >:(
Hmmm, ok, I work on a smaller version !
Thanks for testing !!
Gert
I just quickly removed some a few files from the JAR-File and updated the download-files. It is now a 122 kB file. You can try again.
Thanks for being a patient tester !
Gert
Thank you ;)
I successfully managed to load the 122KB version to my phone. I followed instructions at http://dictionarymid.sourceforge.net/faqLoadableDictionaries.html (http://dictionarymid.sourceforge.net/faqLoadableDictionaries.html). I used dictionary from DictionaryForMIDs_2.4.0_EngSpa_freedict. When I entered the path where dictionary folder was residing (it was "file:///C:/Galerija"), and reloaded application in my phone, I received a confirmation warning if I wanted to let the program access the path "C:/Galerija/dictionary", so I had chosen "Yes". Looks like everything is good, except when I try to translate a word, I get error message "Thrown java.lang.NullPointerException / null". Did it successfully execute at your phone/emulator? Or is it my phone problem?
Sorry, I forgot to document the following: you must pick a dictionary with version 2.5.0 or higher ! The older versions do have a different file format. Sorry again, I need to update this description on the web page.
I did do a test of the version that you downloaded with the emulator that is included in Sun's WTK - and it worked. I am pretty sure it should work on your Nokia also !
Actually, I do have a Series 40 Nokia around also, but I did not yet have time to test.
Gert
I just tested it on the Nokia Series 40 emulator: it works !
You will also get a NullPointerException when the dictionary was not found (well, agreed, a good message to the user should show up here instead of a NullPointerException ...).
And of course the version of the dictionary should be checked to ensure that it is >= 2.5.0.
On your Nokia you may have to give a path like "file:///C:/predefgallery" instead, could you try that also ? I don't know Nokia's Series 40 well enough on that point.
Besides, I just received the source code for a 'directory chooser' - if that is getting integrated in the DictionaryForMIDs source code, this will help a lot !
Greetings,
Gert
OK, i'll try it later. Dictionary I am interested in is Eng-Spa, but I do not see it available to download (any version >= 2.5.0). Where do I find it? Is there any possibility to migrate(convert) it to version 2.5.0 by myself?
Well, we still search for someone who will write some scripts that will make available the dictionaries on the latest version of DictionaryForMIDs !
For migrating the Eng-Spa dictionary, you will have to get the 'inputdictionaryfile' (you can get it from me, tell me if you are interested), run it through DictionaryGeneration, then JarCreator. Everything as described on the homepage under "Setting up a New Dictionary".
Besides, there is the DTS English-Spanish dictionary which is on version 3.
Gert
with DST dictionary, the problem again is size - my phone does not have enough memory for it, dictionary folder is 3MB in size, and I can manage to get max 2.5MB :(
What is this "inputdictionaryfile"? I would be very interested to get it, if it is no trouble for you.
I sent the files to you by email. There are two inputdictionayfiles, because the dictionary is merged from an English->Spanish and an Spanish->English dictionary.
You find the necessary instructions under "Setting up a New Dictionary". You can skip most of step 1 "Configuring the properties of the file DictionaryForMIDs.properties" because we already have this file. However, in order to get the two dictionaries merged into one, you need to run DictionaryGeneration 2 times. There is an instruction under the property languageXHasSeparateDictionaryFile ("For documentation, see here.").
Happy dictionary creation !!
Gert
P.S.: For questions on setting up the dictonary, just post them somewhere here in the forum (I suggest you create a new thread on this)
Here is how it works for me:
- I did put the dictionary-folder under "Aufnahmen" (in English this would be "Recordings"): see NokiaGalleryAufnahmen.png and NokiaGallerydictionary.png
- Then I entered the path: see NokiaGalleryPath.png; note that the path has to be entered with the 'predef'-prefex (that's a speciality from Nokia)
- Then I restarted: see NokiaAfterRestart.png
You can tell that it works from the title line which says "English > German".
Gert
I do exactly as you pictured, but it is not working. I even do not see "English > German" label (I would expect to see "English" > "Spanish" as I use English-Spanish dictionary folder you have sent me by mail). Looks like I do something wrong. I'll try some other dictionaries and see if this a problem of this particular English-Spanish dictionary, or is it with DictionaryForMIDs itself(either .jar, or my settings). I'll post my findings here.
I tried everything again - and it worked!!! I guess that was my mistake somewhere :)
The only problem is irritating confirmations of accessing my file system. But I guess the problem will be solved soon. Thank you.
Good to read that it finally works !
The clumsy thing is that the pathname currently needs to be manually entered. One wrong character and it won't work. Fortunately we already received the source code for a 'directory chooser' (works similar to a file explorer), if that is getting integrated, you can comfortably choose the right path.
Concerning these annoying confirmation messages: see http://dictionarymid.sourceforge.net/jsr75.html (http://dictionarymid.sourceforge.net/jsr75.html), section "Certification": in order to avoid the confirmation messages, a certificate is needed.
Gert
I just implemented an improvement: when the dictionary could not be successfully loaded after startup, then in the application title the message "No dictionary loaded" is displayed. Also the NullPointerException (when a translation is done without loaded dictionary) is fixed.
I will update the test version (from the hyperlink that I did post previously) "soon".
Gert
Quote from: Gert on 03. March 2007, 16:26:45
DictionaryForMIDs 3.1 is delayed, mainly because of problems with SonyEricsson cell phones. Still, hope that we can do a test release of 3.1 'soon' (whatever that means ...). Just stay tuned ;)
Thanks, so the problem with SE phone will be solved!