Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - axin

#46
Problems / Re: Help on English Chinese
27. May 2011, 09:15:21
Hi mike,

is this an error message displayed in a dialog box, or is this an error message from the console/LogCat/DDMS?
Did you install the dictionary using the included, automatic install or did you manually download the dictionary to the sd card?

-Achim
#47
Hi Gert,

I tried the Latin-English version a few days ago on Android 2.2 (HTC Dream): It was working fine! The search for amor was quite fast but the search for am* took some time. Impressive though!

Right now I wanted to try the English-Chinese dictionary but only received the attached errors.

-Achim
#48
General discussions / released new version 0.13
20. December 2010, 11:54:04
New version 0.13 is now available on Android Market.

Changelog:

  • support for being queried by other apps (contact us if you are a developer)
  • menu-option to find hidden dict. for recent dictionaries
  • hide included dict. tab when not available
  • performance improvements
  • bugfixes, thanks for reporting!

Feel free to post bug reports in this board or reply here for general discussion of this release.

Achim
#49
Hi Gert,

your HTML5 approach and the results sound very promising! Keep us posted  :)

Achim
#50
Problems / Re: Still one problem!
19. December 2010, 14:50:17
Hi Priti,

if you have Eclipse and ADT, you should not need to run ant manually.

You can checkout the source from SVN and then create an Android Project from existing source.

First you need to checkout the following two branches:
https://dictionarymid.svn.sourceforge.net/svnroot/dictionarymid/trunk/DictionaryForMIDs
https://dictionarymid.svn.sourceforge.net/svnroot/dictionarymid/trunk/Android

Then you can create an new Android Project in Eclipse and specify the checkout of trunk/Android as existing source. You should then reference the checkout of trunk/DictionaryForMIDs in the build path in the project properties. Right-click on the Android Project then gives you the option to run as Android Application.

For more details (and slightly different approach), please have a look at this post:
http://dictionarymid.sourceforge.net/forum/index.php?topic=217.msg1062#msg1062

Feel free to ask if you have any questions, please include error messages if available.

Achim
#51
Please refer to this thread.
#52
Problems / Re: Problems during compilation
18. December 2010, 14:09:35
Hi Priti,

the file R.java can be generated by running ant. I strongly recommend using Eclipse with the ADT-Plugin though, as this will automatically handle ant for you.
You could try the following two links that explain setup of SDK and ADT:
http://developer.android.com/sdk/installing.html
http://developer.android.com/sdk/eclipse-adt.html
Feel free to ask me if you encounter any problems on the way.

If you don't want to use Eclipse, maybe this link may help you. As I'm using Eclipse and ADT, I don't have further information on setting this up with NetBeans.
http://developer.android.com/guide/developing/other-ide.html

-Achim
#53
Hi Gert,

I'm quite busy these days, so only a quick answer here. By the way, great idea to have a HTML5 version!

Quote from: Gert on 19. November 2010, 21:19:57
Well, how can I download the dictionaries from that Java tool ? Is there a database that can be queried for existing dictionaries ? Ideally, is there a Java interface (jar file) that can be used ? Maybe even with a nice API that could contain methods such as 'enumerateDictionaries' and 'downloadDictionary' ?

Right now we have a database with all information about the dictionaries. It includes data like

  • a unique id per dictionary
  • dictionary name
  • url to zip file
  • size of zip file
  • url to jar file (currently missing for most dictionaries)
  • size of jar file (currently missing for most dictionaries)
  • other meta information... (you can also add more columns to the database if needed)

As different platforms need a different format to display the data (e.g. JSON for Android, HTML for JavaME), you can create a class that extends ota/Data.php and register it in ota/DataFactory.java. If you need to do special queries, you can implement them in ota/DataLoader.php and call them in your class (e.g. to get a special entry only you can overwrite the load function and call something like DataLoader::getDictionary(7) to load the dictionary 7). If you want to see some examples, check ota/AndroidData.php and ota/JavaMeData.php

Querying of the system uses parameters in the url. There is only one that is fixed: p standing for a platform id (as registered in ota/DataFactory.php) tells the ota system what Data-class to load. For Android, I pass the version of the app because different versions require different formats. The link is than:
http://dictionarymid.sourceforge.net/ota.php?p=1&v=80
For JavaME:
http://dictionarymid.sourceforge.net/ota.php?p=2

Hope that helps for the moment. I'll still try to add a more complete documentation on the website... Feel free to ask me if you encounter any problems.

Achim
#54
Quote from: Gert on 18. November 2010, 22:23:10
Achim,

that was just another posting from one of those 'spam users' - I now banned that 'optimus'-Account.

Gert
Damn, I thought this one was for real...  :o

Great that you "caught" it!
#55
Hi optimus,

Quote from: optimus on 15. November 2010, 09:34:47
very useful i have HTC HD2 windows phone how can i install android in it my friend told me that we can install android in it and also make it multi boot windows mobile is that right? if yes then help me where can i  find it and with installation procedure.... thanks :)

I think you misunderstood this thread: It's about installing the Android Emulator/SDK on a Windows PC, not on a mobile phone.

Not sure about the others on this forum, but I have no idea how to get Android running on a Windows mobile phone. Having multi boot sounds like a great idea. Please report back here if you find any solutions!

-Achim
#56
Hi Jacob,

Quote from: jn0101 on 23. October 2010, 23:45:21
I'd like to publish a seperate version of DfM myself. For several reasons it wont work well if I ask you to do it in your name:

thanks for the heads-up. From my side you are welcome to do that (as long as you comply with GPL of course, publish the source, etc.), just one remark: I feel it would be great to keep a common code base as far as possible, so that we benefit from joint efforts in fixing bugs and adding new features.


Quote from: jn0101 on 23. October 2010, 23:45:21
1) The lernu! dictionaries are barely used. This is becaurse there is no app in the Android Market that pops up when searching for 'Esperanto' or 'lernu'.
I'd like to make a dedicated version of DfM with the Lernu! logo and presentation text in Esperanto and where I appear as the 'developer to contact' in Android Market, so I will get feedback directly for these specific dictionaries. I'll clearly state that the app is your work and link to your DfM version, of course.

Independent of your plans, how about using a shared e-mail address for the current DfM on the Market? This way you and all interested developers can provide support and get feedback? Maybe there is even a feature on sourceforge to coordinate that...


Quote from: jn0101 on 23. October 2010, 23:45:21
2) I am even thinking of making a paid version for 2-3 euro, to get compensated for (and thereby continuing to do) development/maintenance of the Lernu! dictionaries.
Again, I'll clearly state that you and Gert are the authors of the engine and that the 'tip' will go to me to maintain the Lernu! dictionaries and fix stuff that pops up.

I suggest you also make a 'DfM donation version' which is the same app but lets happy users easily donate you some money for your work.

I haven't done so until now as it wasn't necessary for me, DfM is a hobby, and I couldn't think of a fair way to compensate all involved parties.


Quote from: jn0101 on 23. October 2010, 23:45:21
3) The closed source 'Danish Esperanto' dict should be easily usable. This means that an app called 'Dansk-Esperanto ordbog' should be on the market, which should automatically download the  closed source 'Danish Esperanto' dict on the first run.

As mentioned earlier, I was working on this auto-installation of a default dictionary. It feels quite stable now, the only thing I'm not really sure of is how to deal with the situation of multiple installed DfM-apps. I uploaded a beta version with the da-eo dictionary set as default here:
http://dictionarymid.sourceforge.net/android/DfM_da-eo-0.13b.apk


Keep us posted,
Achim
#57
Hi Jacob,

I was not able to reproduce the crash you described. On my machine, your sample works fine using 2.2. Not sure what may cause the problem. You could try tracing, maybe this tells us which method goes crazy and crashes the emulator.

Quote from: jn0101 on 25. October 2010, 18:25:48
you have absolutely no logging in your code - how can you live like that?
The advanced debugging features in Eclipse are just great :)
With Android, for most bugs I prefer breakpoints to logging. But I can see why in your case logging makes sense.

Cheers,
Achim
#58
Hi Jacob,

it works fine here. Just a little slow, but that's a known problem...

Can you provide some more details about your setup? What emulator/target are you using? I just installed a 4MB dictionary (English-Czech??) on an emulator running Android 2.1. Does DDMS give you some output when the emulator crashes? Is there anything in the logs?

Cheers,
Achim
#59
General discussions / Re: released new version 0.10.2
22. September 2010, 14:36:03
Quote from: Carlton001 on 22. September 2010, 08:36:09
small bug .

I suspect the string
  <string name="file_size">%1$,.2f %2$s</string>
is somehow causing trouble.

I always get it when unit is kilobytes.
I never get it when unit is megabytes.

Which version are you using? This should be fixed with 0.12.1.
Or is this a spam bot copying Jacob's message from here?
#60
Hi all,

I just received an extensive bug report by mail (thanks very much!), testing it on the emulator shows the problem too.
As I'm not very into dictionary generation, maybe one of you sees what got mixed up here?

Regards,
Achim

QuoteAt first kudos for this offline-dictionary - it is the only free Dictionarysoftware that fits my needs on my Android-phone.
Tomorrow I'll drive to France and thus wanted to use the German<->French Dictionary-file, however when searching words in the German->French dictionary I got some strange errors:

The first one was an error that told me that the resource "sdcard\DictionaryForMIDs\dict\DfM_3.4.0_GerFra_FreeDict\IndexGernull.csv" was not available.
I looked for the file and it didnt exist, so I just created it and this error was gone.

The second error was a message that said "Warning: buffer size too small for file searchlistGer.csv".
I am certainly not a PC-Pro but I have some brain so I started to look into the file-structure to find out if I could fix this myself.
I did: the wordcount didnt match anymore and some other properties of the "DictionaryForMIDs.properties" were messed aswell.
To me it looks like the Dictionary was updated in April 2010 but the "DictionaryForMIDs.properties" however was not (it still shows the date Nov 09).
After I sorted the "DictionaryForMIDs.properties" and found out what the most of the values are responsible for I corrected the file and now it works like a charm.
As the file copy and paste was messing the E-mail I submitted it to pastebin so you can take a look at it: http://pastebin.com/KHhQm8LU
If possible check if this is the only Dictionary that is concerned of this "bug" or if others suffer from this aswell or check if the Android-App needs to be fixed to ignore these properties.