Writings Photos Code Contact Resume Me
Coding and hacking

You are here

Katoob 0.5.9 is out

Submitted by msameer on Thu, 10/01/2008 - 11:59pm

This is a recommended update.

tarball, md5sum and gpg signed md5sum file

* Enchant is now used for spell checking instead of aspell
* The iso-codes package can be used to display friendly names for the spell checker dictionaries.
* The recent menu is displays the name of the file not the full path.
* Opening a non-existing recent file triggers an error.
* Better quality Arabic translation (Thanks Khaled Hosny).
* Maemo support.
* libcurl is now used for the network.
* Cairo is not used anymore to draw the extended toolbar extra icons.
* Make the buttons in the dialogs HIG compliant
* Pressing Escape will close the spell checking dialog
* We now use the gtk printing capabilities for printing.
* Syntax highlighting now depends on gtksourceview2 and it's been rewritten.
* We now save the documents every minute and recover any files when we start.
* We also autosave if we crash.

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.

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.

mbox splitter

Submitted by msameer on Sun, 22/07/2007 - 10:56pm

Just because I can't run sa-learn on my 15,000+ messages spam folder. It'll crash due to some hardware problems.
I thought that splitting the mailbox into smaller files will allow me to feed it to sa-learn.
I'm not sure something similar doesn't exist but I wrote mine anyway ;-)

The only problem is it consumes a lot of CPU and RAM, it was killed/crashed multiple times but it worked and allowed me to feed my spam mailbox to spamassassin!

Here it is in case someone needs it: split_mailbox.py. Needs python 2.5

katoob 0.5.8

Submitted by msameer on Sun, 29/04/2007 - 7:52pm

* Implemented a multipress input method.
* Reorganized the input menu.
* A couple of bug fixes.
* Added a window to show the multipress and emulator mappings.

Available from the usual location!

katoob 0.5.7 is out...

Submitted by msameer on Tue, 03/04/2007 - 5:23pm

ChangeLog: A bug that could crash the application when OK or Apply is clicked in the preferences dialog under UTF-8 locales was fixed. A lot of small features and enhancements were made as well as some code cleanups. GtkSourceView is now used instead of gtksourceviewmm.

Tarball, md5sum and GPG signed md5sum

Of scratchbox, stupidity and empty cpu transparency list!

Submitted by msameer on Tue, 20/03/2007 - 11:41am

OK. Here we go:

To select a devkit when you are setting up a scratchbox target via sb-menu, the target MUST NOT BE in the list for it to be selected (Pressing Enter should remove it from the list for it to be active!!!).

And I had to spend days wondering why is the cpu-transparency list empty even though the cputransp devkit is there in the devkits selection menu!

/me is really pissed off.

So yesterday.

Submitted by msameer on Wed, 14/03/2007 - 12:00am

* A month since I've been here in Finland and started working for Nokia
* I've got my creditcard PIN code in the morning (From the nordea bank suckers). At last they accepted my application but they decided to send the card to the wrong branch. 7 minutes on the phone to convince them to send it to another branch. It takes them also 2-3 days to send it to another branch!
* My debian.org account has been created and NOW I'm at last an official Debian Developer (Technically, this happened on the 14th. An hour ago ;-))