Whisht Wind


« 十二月 2009
星期日星期一星期二星期三星期四星期五星期六
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
  
       
今天

Subscribe

Add to My YahooSubscribe in RojoSubscribe in NewsGator OnlineThis blog's XML feed
Subscribe with BloglinesAdd to Google

Search this blog

Blog Roll

Downloads

Other Links

Popular Tags

addons android archive autoloading autopager china chinese cisco dhcp dict earthquake firefox flock fonts foxbeans hgweb j2me java javame jstardict jstardictm language mercurial milax moon mozilla mtu nb-xul netbeans openoffice opensolaris pack palette recommended solaris stardict tar.gz tar.gz2 vpn vpnclient windows wine xul zip 嫦娥 郑萍如 面板

Weblog menu

Feeds

Recent Entries

Today's referrers

今日点击: 866

Locations of visitors to this page

20061007 星期六 2006年10月07日

jStarDict:j2me dictionary applications which will support all stardict dictionaries

I created a j2me dict app for my A1200. It can use any stardict dictationary files. I had upload it to motorola fans and you can also find it here. It works for my a1200 and others have report is works for a780 too. 
   
Here is the install step:


1. install this jStarDictM.jar into tf card. Please always find the newer version. Currently I had realsed v0.2.1.

2.edit .system\java\DownloadApps\\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 stardict.sourceforge.n...naries.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. 

Technorati Tags: , , , , , , ,

( 2006年10月07日, 11:39:56 上午 CST ) [Listen] Permalink 评论 [10]

Share and enjoy:  Bookmark it with Blinklist Submit to Bloglines Bookmark it with Blogmarks Track with co.mments Bookmark it with Del.icio.us Submit it to Digg Submit it to Fark Bookmark it with Furl Bookmark it with Ma.gnolia Bookmark it with Maple Bookmark it at NewsVine Bookmark it at reddit.com Bookmark it at Simpy.com Bookmark it with Spurl Submit it to slashdot Track with TailRank See who links to it via Technorati Bookmark it with wists

评论:

Excellent work. Have you think about putting your program into stardict project. It would be conenience for ppl who would like stardict and want have one on their mobile. The editing box on the dictionary are worth to improve to kinda on-the-fly editing instead of entering a spcial editing screen. Anyway, it is an excellent work. well done. btw, your chinese manual suppose much clear than your english version.

发表于 weekendli 在 2006年11月08日, 07:13 上午 CST #

Looks promising, still needs some work on the interface and functionality. Did you consider releasing the sources so people can help you adapting the app to their mobiles? Your app does not seem to work on Nokia S60 3rd edition mobile phones (E61). It loads, but finds no dictionaries in the dict folder, which is on the mini sd card. I could have a look if i had the source lm

发表于 limemonkey 在 2006年11月23日, 06:20 下午 CST #

Yes, weekendli. I will find some time to release it to java.net. Will give you a mail after I do that. Thanks

发表于 Wind Li 在 2006年11月23日, 07:22 下午 CST #

Great! I'm interest in create midlet that can read/write file in A1200 too. I use NetBeans + Motorola SDK 6.1. and create midlet with JSR75. but after install and hack a permission. my midlet doesn't ask read and write permission like your midlet. My midlet is a only simple show listroots. can you tell me what i done wrong. thank.

发表于 eakrin 在 2007年01月27日, 10:41 上午 CST #

Hi eakrin Please follow the install steps 1 and 5. You need modify registry.txt and the permisions model.

发表于 192.18.200.37 在 2007年01月29日, 10:52 上午 CST #

Thanks so much for releasing the source. I've been looking to get access to StarDict dictionaries on my Sony Clie, and so I've ported your code to SuperWaba. I believe there is a small bug in the main loop of dictIndex.saveToIndexOfIndexFile() such that you omit writing an item when you flush the buffer on exceeding bufLen. Also, I have implemented DictZipInputStream.skip(). Please let me know if you are interested in any of my changes. Thanks again for the brilliant work!

发表于 Asterix 在 2007年02月14日, 10:57 下午 CST #

Thanks Asterix. You can commit your code to https://jstardict.dev.java.net/. You may need create an account on java.net. You can also access me directly through my email Wind.Lee at Sun.COM.

发表于 Wind Li 在 2007年02月15日, 10:06 上午 CST #

That's great. It works great on my A1200 with 3 dictionary enabled. However, if I enable 2 more dictionary, it takes forever for jstardict to process the last 2 dicts. ben

发表于 ben 在 2007年05月16日, 11:38 下午 CST #

Hi Ben It will try to unzip the dict and create an index when enable a new dict. So you can try to disable all the other dicts before you enable a new dict. After restart the application you can enable the other dicts again. If this still not resolve your problem, let me know, I will create a new pc application to prepare the dict before send to the phone.

发表于 Wind Li 在 2007年05月22日, 07:56 上午 CST #

i used jstardict (v0.2.1) on my w700 (sony ericssons). i followed all the steps (except removing java read/write permission, 'cause my phone has different firm - and i still not figure how), miraculously, it works perfectly and fast. i can choose only 2 dictionaries to use at one time. however, i can choose others if i want. the problem is, jstardict doesn't show me the result of the search, it just shows me the same word i enter (ex: look up for "table", jstardict shows the exact word "table" again, no explaination or equivalent words in the target language)....helps, please...thanks so much. In the nutshell, your jstardict rocks..

发表于 thang 在 2008年02月15日, 10:53 下午 CST #

发表一条评论:
  • HTML语法: 禁用