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

Topics - heikok

#1
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
#2
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
#3
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
#4
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
#5
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.