• Welcome to DictionaryForMids Forum.
 
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 - heikok

#1
Problems / Re: JSR75 and zip-file problems
19. October 2009, 08:23:54
Gert,

a)
it is not possible to have a .jar file above a certain size on some (all?) Nokia S40 devices. Copying as a .zip file to the device works, but when trying to rename it on the device to a .jar file fails.

b)
I haven't used the JarCreator at all. And I will test it on a real device instead of the emulator.

Heiko
#2
Problems / JSR75 and zip-file problems
11. October 2009, 18:00:33
Hi,

I just upgraded my dictionary from 3.3 beta to 3.4 and started to play around with the file-connection system:

a) Some mobiles (i.e. Nokia) don't allow jar-files to be larger than 500kB. They don't allow them to appear on the device, so I cannot use them as file-input. Having a zip files > 500kB is no problem. The FileConnection api should test for files with .zip ending, too, and handle them the same as .jar files. (Maybe it should just test, if the file is a directory, then use JSR75InputStream, and for everything else just use the ZipInputStream? But I have never worked with JSR75 before, so I don't know if a directory test exists.)

b) The zip-input-stream seems to have a bug. My dictionary is > 3MB uncompressed. When using a .jar file-connection with a uncompressed jar file (jar -cf0), it works well. When using a compressed .jar file (jar -cf), the file is only 1MB, but Suns WTK2.5.2 throws a ArrayIndexOutOfBounds exception (without further information). So I guess it's a problem in the decompression-code.

The dictionary (still with the 3.3beta code) can be downloaded at: http://www.heinzelnisse.info/Downloads/get_it/HeinzelnisseForMIDs/

Best regards,

Heiko
#3
Problems / Re: Compilation problems in trunk
30. July 2009, 21:39:52
Gert,

I just recompiled the latest svn trunk from dfm and installed it on my mobile. I tried a few words with color switched on - no problems found. Seems like the color-problem is solved for the N79.

Thanks,

Heiko
#4
I used now the DictionaryUpdatePartialIndex solution, and it works great. Dictionary is back to normal size, and dictionary generation time drops again from 3 minutes to 5 seconds.

Thanks,

Heiko
#5
Problems / Re: Compilation problems in trunk
19. July 2009, 15:53:20
Concerning the problem of the colored items on a N79.

I installed now the the empty-package of 3.3.0 with my dictionary. With just one color per line, I haven't seen any problem. When I have 3 colors (with language1NumberOfContentDeclarations=2 and language1Content01FontColour: 128,0,0
language1Content02FontColour: 128,128,0)
, this works as long as I only have one translation line. Starting with two lines, I only see white boxes and the application crashes. I tried to switch on logging, but besides the lines 'Log initialized' nothing is written when the app. crashes.

Since it is a real crash (menu buttons no longer working, program switching to the dictionary no longer working), I believe something is wrong with the j2me implementation on the device. The WTK2.5.2 works without problems. Since On Device Debugging is quite hard, I leave it currently as it is.

As long as I run it without colors, everything runs fine.

Best regards,

Heiko
#6
I have set up a dictionary with contentNotes, i.e.

language1Content01DisplayText: contentGrammaticalCategory
language1Content02DisplayText: contentNotes

i.e.
aufbleiben [01v] [02im Sinne von nicht ins Bett gehen]  holde seg oppe [01v]

This works as expected if I search for 'aufbleiben', but I get that line, too if I search for e.g. 'gehen'. I don't want  the words in the contentNotes to be searchable. How can I disable that?

Best regards,

Heiko
#7
Problems / Norwegian UI translation
14. July 2009, 21:11:30
Please find attached the norwegian UI translation. I hope I managed the correct format.

Best wishes,
Heiko
#8
Problems / Re: Compilation problems in trunk
14. July 2009, 20:27:50
Gert,

I just made my first svn commit: NormationNor.java and build.xml (no obfuscation for NormationNor)
in addition I fixed the SettingsStore package in JavaME/src/de/kugihan/dictionaryformids/hmi_java_me/mainform/WordHistory.java and JavaME/src/de/kugihan/dictionaryformids/hmi_java_me/mainform/MainForm.java

I still had one problem under build:
JavaME/files_for_packaging/executeable_distribution/README is requested, but doesn't exist here. I added a link from from DictionaryForMids and it finally worked, but I'm not sure if that are the correct files?

Best wishes,

Heiko
#9
Problems / Re: Compilation problems in trunk
13. July 2009, 08:41:46
Gert,

I think the NormationNor file is finished, so you can add it, but nonetheless svn-write support might be nice. I plan to add a norwegian translation. My sourceforge-id is heikok.

I am not using any Bitmap-fonts, and when I use the jar from 3_3_0_empty, the colour-fonts work well. It is just my built from trunk which generates such problems. I found a change in the background-box drawing code from March 2009, but I'm not sure if 3_3_0_empty was build before or after that - svn isn't very helpful currently since it was recently moved from cvs?

Best regards,

Heiko
#10
Problems / Compilation problems in trunk
12. July 2009, 23:45:38
Hi,

while adding a norwegian-german dictionary, I just tried to play a bit around with the Dictionary4Mid sources. I've been using trunk from svn and ran into some problems:


  • DictionaryGeneration.java uses a no longer existing interface in the ContentParser:
    contentParserObj.determineItemsFromContent(contentString, indexLanguage, false) should be
    contentParserObj.determineItemsFromContent(new TextOfLanguage(contentString, indexLanguage), false, true)

  • de/kugihan/dictionaryformids/hmi_java_me/SettingsStore.java has package general (and several other files look for it there)

  • I added a norwegian normation, please find it attached

  • The current trunk version has problems displaying coloured fonts on the Nokia N79. I only get empty white boxes (one per translation) and DictionaryForMid crashes. After a restart and then switching off colours, the program is running nicely. For my current version, I disabled all FormItems except MainFormItemsSimple.java and it seems to be stable.

Best wishes,

Heiko
#11
I'm developing the norwegian-german dictionary at http://www.heinzelnisse.info

I got several request to develop a offline-version for mobiles, which I gave up after some smaller tries. Some time ago I found dictionaryformid and I am impressed about its features and flexibility.

So finally there exists a DictionaryForMid version at http://www.heinzelnisse.info/wiki/HandyVersion, containing approximately 40.000 norwegian-german translations.

Best regards,

Heiko

PS: I couldn't find a better place for announcements, I hope it's okay to write it here.