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 - bahathir

#1
Problems / Re: Bitmap Font Setup
17. January 2008, 10:21:31
Thank you for your advices. and  I'll try it in few days, I am quite busy right now. BTW, I am not a programmer, and sorry that I cannot help in coding.
#2
Problems / Re: Bitmap Font Setup
17. January 2008, 03:57:59
FYI. the dictionary in my DfM IS from your DfM v3.0.3. The best thing about DfM (3.2.0), you only need to put your dictionary/ directory into the blank DfM and it will use it. Is is possible the 3.0.3's bitmap font (font.bmf) can be used in the latest DfM? If yes it would be great, because of the size.

TQ.
#3
Problems / Re: Bitmap Font Setup
16. January 2008, 10:15:20
Ok, I just realized that, even though DfM thrown errors, but it still can display the result without any problem. Here I attached 2 screenshots which shows the before and after the bitmap font usage :). Without bitmap font, V3xx shows partially  Japanese characters. Notice that Hiragana and Katakana are missing. I wish I can install/reflash my V3xx with Japanese font.

On my system, fontgenerator created some PNG files. You may reduce the size by 10% of the files using optipng.

I would like to see an implementation like TTF/vector fonts, and might be even more efficient or smaller.
#4
Problems / Bitmap Font Setup
15. January 2008, 09:11:10
Thank you for your comments and pointers. I just started using DfM, and it seem lots of new things around the development. FYI, I'll try my best to help/support this community, if I have time and chances.

QuoteOn the Kanji fonts: Thanks to Sean (and Sebastian) DfM supports bitmap fonts. We just need to find someone who is setting up the bitmap font for EDICT then you will have Kanji on your Motorola. Maybe you would like ... bitmap fonts are documented at http://dictionarymid.sourceforge.net/bitmapfont.html

Ok, I just tried the bitmap fonts,  the setting option for 'Bitmat Font' is there,  but not working. RAZR V3xx complaints
Thrown de.kugihan.dictionaryformids.general.g: Incorrect bitmap font size setting: 24 / Incorrect bitmap font size setting: 24

2) I have to rename the  generated files from fontgenerator.jar because the names are based on  MS DOS with backslash \ for directories. Yes, I am running the tools in GNU/Linux with Sun JRE 1.5.x . I hope someone can look into it, for multi OS compability.

FYI, I am using Cyberbits.ttf font to generate size 24 font. I tried 12 and 10 but not working.

TQ.
#5
Hello world. This is my first post.

I found this site/apps yesterday, and downloaded couple of dictionaries (EDICT and WordNET) from the link at download page. But it failed to run on my Motorola RAZR V3xx. It gave 'Application Error' and based on modifications in this thread discussions, I managed to run it.

Today, I managed to upgrade the dictionary 'core' part to the latest v 3.2 pre and it works PERFECTLY.

Here is the way how I did it. Note: I did it all in GNU/Linux Slackware.

1) Extract the original dictionary .jar file into a directory using unzip

$ mkdir work
$ cd work
$ unzip /path/to/dictionary.jar

2) Now replace the 'core' by OVERWRITE files from the empty v3.2-pre .jar

$ unzip /path/to/DFM/latest/empty/DictionaryForMIDs.jar


2a) You may edit META-INF/MANIFEST.MF to reflect your dictionary

3) Make .jar file a bit smaller, by optimizing PNG files using optipng. You may skip this part.

$ find . -iname \*.png | while read f; do optipng $f; done


4) Finally, zip files and sub/directories to a new jar.

$ zip -9rD /path/to/new/dictionary.jar .

5) Now, we are done, and transfer it to your mobile phone.

I also would like to share the screenshots from the phone.



Here I would like to share the modified dictionaries which works in my RAZR V3xx, based on this message.

http://bahathir.googlepages.com/DictionaryForMIDs_3.2-pre_WordNET.jar
http://bahathir.googlepages.com/DictionaryForMIDs_3.2-pre_EDICT.jar


BTW, my phone cannot manage to show all  Kanji/Japanese characters in EDICT because, my phone only have Simplified Chinese Character font/language pack.

TQ.