Nice work, I'll give this a try.
Thanks.
I just create a dict app. It can use any dictionaries from http://stardict.sourceforge.net/Dictionaries.php
The new website for this project is http://www.teesoft.info. There is updated installation instructions.
The install step is:
1. install this jStarDictM.jar on TF card. Please always find the newer version. Currently I had realsed v0.2.0.
2.edit .system\java\DownloadApps\<MIDletxxxx>\registry.txt
(You can find what's MIDletxxxx is in .system\java\CardRegistry). You need change the Domain to Trusted Third Party to let this tool have file access permission.
3. create a folder called dict in your sd card root. Get the dicts you want to use from http://stardict.sourceforge.net/Dictionaries.php and unzip to the folder. Each dict should have a folder with its default name and in that folder there will be three files. An .ifo , an .idx and a .dict.dz file.
4. unzip the .dict.dz file int the same folder suing 7zip and make the name correct if need. For examle if your dz file named abc.dict.dz then the unzipped file should be abc.dict.
(This step can be ignore for very small dict, but for big dict there are performance issue on unzipping the file at running. I will try to find some to resolve it in later version.)
5. In application list ,long click the jStarDict icon, select manage/permisions, you should change the user data read and user data write to Ask once per application.
6. start jStarDict app, unswer yes to permissions questions.
The app will discover dict folder sd root and will load first 2 dicts by default, you can choose to load or not load some dicts using Manage Dict menu item. This app support bookmarks. And like some other dict app, this app will search for the word you are inputing, and there is a option to set how long to delay to start search after you input some char. The default value is -1 that mean no delay, it will start search when any change you make to the search text.
This should work for many j2me enabled mobile phone, but I only have a a1200 and I have changed to the modified fireware so I don't know whether this will work on a offical a1200 fireware. If you some try it on other phone, please give the result here.
I also put the signed jad file in the attachment. It's said you can install the app using the jad file to get the read and write permisions. But it failed on my a1200.
Thanks
If you have any questions, please send to wind.liyong at gmail.com
Nice work, I'll give this a try.
Thanks.
Grant.
I tried the jstardict on my A1200. I managed to go through all instructions, and all seems to work well. The application starts and identifies dictionaries.
I can even type a seach term. That is however where things break down.
I downloaded two different dictionaries - stardict-BritannicaConcise and stardict-merrianwebster. In both I have the same problem:
The returned text seems to be a random part of the dictionary.
Thus, if I type "computer", I get 5 results:
compunction, compute, computer, comrade, com
However the explanation is
' unspecified <a man overboard> and before number collectives and some numbers <a dozen>....'
Another strange thing is that when I click on the results, the explanation changes, even if I click on the same result again and again.
Any suggestions?
to ghostwheel
>Thus, if I type "computer", I get 5 results:
>compunction, compute, computer, comrade, com
Yes. This is what it designer to. You can click the first and last item to scroll the result. You click the first item will scroll the items to previous ones and click the last word will scroll to next ones. Thus you can browse all words by this way.
And for the second question, if you click on the same word and the not the first one and the last , the result list will not change and the explains will not change too. But maybe there are some bugs.
This is my first j2me app. I will continue improve it.
And I will:
1. Increase the load speed
2. Fix bugs
And thank you for your feedback.
Thanks for the quick reply!
I am really excited that an app for stardict is available!
Anyway, the problem is not the 5 results returned - they look good. The problem is the text that is shown - when I look up computer, the
text shown under 'Explanation' does not seem to correspond to computer. I think the lookup function doesn't work correctly.
After playing with the app a bit, it seems that the text displayd (' unspecified <a man overboard> and before number collectives and some numbers <a dozen>....'), corresponds to text from the entry for the letter 'a'.
Maybe you can upload a small test dictionary, and I can report what text is shown when I click on various items....
Thank you. I have try your two dicts and had find the issues. It's the problem of dict.dz is a special gzip file, my code to unzip it failed in some case. Please use 7zip to unzip it yourself to resolve this issue.Originally Posted by ghostwheel
You can get 7zip here http://www.7-zip.org/.
And please take care of the file unziped. If you dict file is abc.dict.dz please unzip it to abc.dict. In some case it not unzip to this name by default. And you don't need to remove the dict.dz file. I will use .dict file first.
Thank you! That worked.
This is really nice, because there are so many stardict files available!
A few small comments:
1. It seems jStarDict does not forget old directories that have been deleted.
2. I would prefer if the text of the result was not underlined - it would be easier to read. Currently the text is editable and underlined. Actually, it seems that the fact that the text is editable allows one to copy a word to use it for another lookup, which is really usefull.
3. let us say that I see 5 results: a b C d e, and currently c is displayed. If I click on e, then 5 new results are displayed: c d e f G, and result G is highlighted in blue and displayed in detail. In order to display e, I have to click on e again. I would expect that if currently the results are
a b C d e, and I click on e, I'd see c d E f g.. (which means that E should be highlighted in blue and displayed)
Hi ghostwheel
I have uploaded a newer version. This should have fix the focuse issue you list as 3.
And for the editable one, the text showed in the search page will be unedit able and you can click OK button to open a new form of the edit ones. In that form you may find more then one explaination if it finds more then one dicts have this words defined.
For the deleted dicts, you can goto .system\java\DownloadApps\<MIDletxxxx>\Files to delete jStarDictMdict#Config#List.db and jStarDictMdict#Config#List.db and jStarDictMdict#Config#List.idx to force reload dicts.
I will implement the functions to deal with the deleted dicts in feature versions.
Thanks
Originally Posted by ghostwheel
Hi, I have a problem with installing version 0.20 on A780. I get installation error: Package Invalid. Does any one else have this problem?
MareckiĀ®
Motorola A780
me too!