Writings Photos Code Contact Resume
This is my website. It's mainly dedicated to GNU/Linux, my writings, code, thoughts, news, ... You won't find any windows related materials here, So don't panic!

She's now dead. He was right.

Submitted by msameer on Fri, 28/12/2007 - 11:02am

Me: Benazir is running for the elections
Qsm: But Musharraf will stay anyway.
Me: You are probably right because you are Pakistani but how can it happen ?
Qsm: Musharraf will stay.

Now he's right although I didn't really believe him.

God bless her soul.

More packages for Chinook.

Submitted by msameer on Sun, 16/12/2007 - 2:47am

I was trying to package hunspell-ar for Chinook so I ended up packaging:
* hunspell (libhunspell and its development headers)
* enchant (hunspell and ispell providers but I'll disable ispell soon)
* hunspell-ar
* dictionaries-common and dictionaries-common-dev (hunspell-ar depends on them)

As for dictionaries-common and dictionaries-common-dev, they are different than the Debian ones. Yes I'm using the same source but I'm only providing the bits related to myspell. I didn't include the policy too.

uri = ftp://foolab.org/pub/apt
dist = chinook
components = spell

him-arabic is also available as well as a few Arabic fonts:

uri = ftp://foolab.org/pub/apt
dist = chinook
components = arabic

hildon input method and new languages...

Submitted by msameer on Fri, 14/12/2007 - 5:25pm

I noticed this because of my work on him-arabic.

If your plugin provides a language other than the 16 "known" languages, It will be displayed as " ()".

Ideally, The fix should be somewhere else but not all of the components are open so even if I can fix it, I won't be able to publish patches or packages.

It seems that the source provided with the SDK is a bit outdated so I had to grab the latest trunk: https://stage.maemo.org/svn/maemo/projects/haf/trunk/hildon-input-method/

And here's a patch. It'll return the language code if it fails to get the language description. (I know it's a bit hackish :|):

diff -Naur him.orig/src/hildon-im-languages.c him/src/hildon-im-languages.c
--- him.orig/src/hildon-im-languages.c  2007-12-14 19:09:29.000000000 +0200
+++ him/src/hildon-im-languages.c       2007-12-14 19:12:31.000000000 +0200
@@ -82,7 +82,18 @@
   if (translate_function)
-    return (*translate_function) (lang);
+    gchar *res = (*translate_function) (lang);
+    if (!res) {
+      return res;
+    }
+    else if (!strcmp(res, " ()")) {
+      g_free(res);
+      res = g_strdup(lang);
+      return res;
+    }
+    else {
+      return res;
+    }
   } else

Apply, build the packages and install hildon-input-method_1.99.33-2_armel.deb and libhildon-im-ui3_1.99.33-2_armel.deb

I hope it will be fixed otherwise I'll be providing packages soon. I know I promised to provide a lot of things (-:

Have a nice weekend.

Arabic Hildon Input Method

Submitted by msameer on Tue, 11/12/2007 - 11:53am

HIM Arabic plugin is on its way.

The code is available from my svn repository

svn co http://home.foolab.org/svn/projects/him-arabic/trunk/ him-arabic

* The code is UGLY. A lot of the functionality is still missing.
* No packages yet. I'll create them but my cold doesn't help much :-)
* The above screenshot is for scratchbox not for the actual device. I didn't try yet to run it on the device.
* You will also need an Arabic font. I packaged one here: ftp://foolab.org/pub/apt/pool/arabic/t/ttf-kacst/ttf-arabic-kacstbook_1.6.2+mry-1.0.1_all.deb

I know there's one provided by the browser team. It was me who did the packaging for it but I'll be providing multiple fonts soon so ttf-arabic is now a virtual package.


My Arabic related TODO list for maemo

Submitted by msameer on Tue, 04/12/2007 - 5:45pm

This is my Arabic related TODO list for maemo. It's my personal one not the Nokia employee one :-)

* katoob should be fully functional (I'm learning here). Actually I did more work today and I guess it's fine.
* Package and publish some Arabic fonts (I know there's one provided by the browser team).
* See what can be done regarding input (Low priority. Sorry to say that I don't like the HIM plugin interface).
* Check arabeyes.org apps. Is there anything useful and needs "porting" ?
* glibc/x11 Arabic locale ?
* Any suggestions ?

I'll not translate the UI for 3 reasons:
* I'm not of a translator.
* The license you agree to while downloading the OS image prevents me from doing that.
* Because we are using logical IDs in the code, we will f*** up the UI unless all of the strings are translated.

katoob under maemo.

Submitted by msameer on Mon, 03/12/2007 - 4:31pm

So the svn repository now contains what should be katoob 0.5.9 (Hopefully). Which can now run under maemo.
* It's not possible to input Arabic except by using the emulator or the multipress input ways (From the tools menu) and only using the hardware keyboard. Probably I'm not playing nice with gtk input methods in general.
* The right click menu doesn't work. I still need to investigate.
* Even if it does, the dict support is broken because the installed libcurl doesn't support the dict protocol (I probably need to provide custom packages).
* No spell checking yet. I should probably package or port enchant.
* The icon is not visible in either the menu or the task navigator.
* UNIX signal handlers don't work. If you shut down the device, you will lose all the unsaved documents. Seems it's not working in general also!
* The about box is broken. The only fix I can think of is a smaller icon.
* The print dialog is also messed up.
* Seems we are not playing nice with dbus. A new tab won't be opened if you try to launch the application again from the menu.
* Trying to click the input menu buttons won't work too.


You know you are a hopeless geek with hopeless geek friends when...

Submitted by msameer on Wed, 24/10/2007 - 8:09pm

You get a gpg encrypted facebook wall post like this. Only problem is he used a revoked gpg key to encrypt.

drupal and the N810

Submitted by msameer on Mon, 22/10/2007 - 1:04pm

Here it goes. Lighttpd, php, sqlite and drupal with sqlite support.

All compiled inside scratchbox using the beta Chinook SDK.


Nokia N810

Submitted by msameer on Fri, 19/10/2007 - 1:32pm

First post from the N810. Had to do a bit of hacking to get Arabic! can't say I'm completely happy with it in general yet.


Of Charles de gaulle again

Submitted by msameer on Thu, 27/09/2007 - 12:16pm

Now I remembered when I was lost in CDG airport. The only person I found to ask spoke french. I was asking her in English, she was replying in french. I didn't understand her and probably she didn't understand me. Yet I managed to find out what I wanted!!

** I hate that airport anyway