Created attachment 34529 [details]
Proposed layout for Swahili in Arabic script
I have been trying to come up with a way of writing Swahili (East Africa - Kenya, Tanzania and other countries) in the traditional Arabic script that was (and in some cases still is) used along the coast. This would be particularly useful in the transcribing of Swahili manuscripts that are written in the Arabic script.
The post and pdf download at http://kevindonnelly.org.uk/2010/03/swahili-in-arabic-script-a-howto/ sets out the details of something that works for OpenOffice.org. In short, I adapt the Buckwalter keyboard layout for Arabic, and add that adaptation as a new layout, sw. The details are in the download in that post, and I attach the sw layout (/usr/share/X11/xkb/symbols/sw) to this bugreport.
Looking over the notes at http://www.freedesktop.org/wiki/Software/XKeyboardConfig/Rules, I see now that a country has to be chosen, rather than a language, so presumably either Kenya or Tanzania would be the candidates here, though I am unclear as to which one to choose.
I am posting here in order to ask:
(1) Is my approach the "proper" way to achieve th goal of writing Swahili in Arabic script?
(2) Is there any possibility that this layout (or some version thereof) could be made an "official" part of the xkb system?
There are still some problems with my approach, which may be due to my lack of expertise in this area:
(a) The default fonts (Liberation and DejaVu) seem not to properly action the ligatures for medial and final Arabic letters like ain or noon.
(b) Related to this, the default display on a webpage leaves much to be desired see http://kevindonnelly.org.uk/2010/03/swahili-in-arabic-script-on-wordpress/ for examples.
I would be very grateful for any comments or advice on how to improve what I have done so far.
I'm afraid there is not enough information.
Could you please have a look here http://www.freedesktop.org/wiki/Software/XKeyboardConfig/Rules
Most important: the layouts are organized on per-country basis. And I need some code for base.xml.in
(In reply to comment #1)
> I'm afraid there is not enough information.
OK - what other information do you need (apart from the below) that is missing? I thought the pdf on the URL gave a lot of info on the layout, so do you mean other information apart from that?
> Could you please have a look here
Yes, I read that. I think I've provided everything that the "Layouts, Variants" section asks for, but by all means tell me if I'm missing something.
> Most important: the layouts are organized on per-country basis.
That's what I said above - Swahili is an official language in both Tanzania or Kenya, though (as I said) the language is widely used in several other countries in East Africa. Can we define a Swahili in Arabic script entry for (say) Tanzania and then include that by reference for Kenya? So you would have symbols/tz, with the Roman keyboard being the default, and the Arabic one added as a variant. There is no tz layout at the minute.
> And I need some code for base.xml.in
That was in the pdf, but I'll give it again here:
<description>Swahili in Arabic script</description>
As I said in the pdf, for Kubuntu this gets added to evdev.xml, but I think that serves the same purpose as base.xml.in.
Hope this helps - thanks for your input!
(In reply to comment #2)
> > And I need some code for base.xml.in
> <description>Swahili in Arabic script</description>
Just realised that probably needs to be changed if you're using Tanzania:
<description>Swahili in Arabic script</description>
Yes, that's what I was looking for! Well, I had to fix it - but anyway, not it is in git. Feel free to attach the patch for other countries using SWA.
(In reply to comment #4)
> Yes, that's what I was looking for! Well, I had to fix it - but anyway, not it
> is in git. Feel free to attach the patch for other countries using SWA.
> Thank you!
Cool - thank you for your help!
Would you be interested in creating aliases for Kenya and other countries?
Created attachment 34542 [details]
xkb symbols file for Kenya - Swahili in Arabic script
(In reply to comment #6)
> Would you be interested in creating aliases for Kenya and other countries?
Yes - sorry. I remembered that last night.
I hae attached a symbols file for Kenya (or do you just reference the Tanzania one?). The stanza for base.xml.in would be:
And ke needs to be added to Makefile.am.
Although Swahili is spoken in Uganda (where it is an official language), Burundi, Rwanda, DR Congo, and parts of Somalia and Mozambique, I don't think it is necessary to add layouts for those countries, since the vast bulk of possible users will be in Kenya and Tanzania.
Thank you for your help, Sergey.
Wait a sec. Why do you have full new layout for Kenia? Can't we use 'include "tz(swa)"' instead??
(In reply to comment #9)
> Wait a sec. Why do you have full new layout for Kenia? Can't we use 'include
> "tz(swa)"' instead??
Oh, fine - I didn't know you could do that. That was what you meant by an alias, then? Sure, reference tz(sw) instead.
Done. Please check in git.
(In reply to comment #11)
> Done. Please check in git.
Terrific! Thanks very much for adding this. (And you've now taught me how to do aliases!)