SliTaz SliTaz Forum

You are not logged in.

#1 2012-11-04 13:57:04

arodulfo
Member
Registered: 2012-11-03
Posts: 71

Using Arabic fonts in SliTaz 4.0

Dear guys,

The application I am working on right now is targetted, among other countries, to Maroc.

It means it must show Arabic texts in the screen, properly drawn & from right to left.

Apart from adding extra locales to switch among when needed, what do you suggest for the end user experience to be as smooth as expected?

Thank you so much for being there.

Kind regards

Offline

#2 2012-11-04 21:58:44

lexeii
Administrator
Registered: 2012-03-21
Posts: 1,853

Re: Using Arabic fonts in SliTaz 4.0

Arabic L10N: locale + fonts + keyboard layout switcher + IM (input method)

I think there is no problem with web browsing. Do you see arabic RTL (right-to-left) textes in the Wikipedia page?

Arabic keyboard on Wikipedia.

It seems like we can write Arabic in the text editors like LeafPad and Geany (I copy-pasted sentence from Wikipedia).

Seems like XTerm can't work with RTL scripts; little copy-paste again:

[c]echo "أنا أحب القراءة"[/c]
XTerm will print it backwards (LTR).

About fonts. I have fonts with Arabic scripts:

[c]fc-list :lang=ar[/c]
Here are:

[*]Times New Roman

[*]FreeSerif

[*]DejaVu Sans

[*]DejaVu Sans Condensed

[*]DejaVu Sans Mono

Offline

#3 2014-04-26 17:04:39

Ceel
Administrator
Registered: 2011-04-02
Posts: 1,424

Re: Using Arabic fonts in SliTaz 4.0

Hello,

I resurrected this old post I found by searching on the forum about arabic language. Oatta, a new comer, would like to have arabic language and arabic keyboard on his SliTaz 4.0.

I tried to boot with [c]lang=ar[/c] and I saw that the Applications menu was after written in arabic language but that's all. Of course some texts must be changed in .desktop files and probably still otherwhere but I didn't find the way to have an arabic keyboard. Can someone help me on this?  and how to switch easily from arabic to AZERTY keyboard?

Thanks. Should be cool to have an arabic version of SliTaz, shouldn't it?

Offline

#4 2014-04-26 22:27:52

lexeii
Administrator
Registered: 2012-03-21
Posts: 1,853

Re: Using Arabic fonts in SliTaz 4.0

Hi Ceel,

Please take a look at this project: http://sourceforge.net/projects/arabic/

Seems like it contains a lot of useful info.

Can you adapt it to the SliTaz?

Offline

#5 2014-04-27 20:33:30

Ceel
Administrator
Registered: 2011-04-02
Posts: 1,424

Re: Using Arabic fonts in SliTaz 4.0

Thank you very much Aleksej.

I had a quick look to it. Really interesting, there are so many things I'd never find by myself.

Can you adapt it to the SliTaz?

I'm going to try. What a challenge for me!

Thanks again.

Offline

#6 2014-04-28 17:47:56

oatta
Member
Registered: 2014-03-22
Posts: 50

Re: Using Arabic fonts in SliTaz 4.0

merci d'avoir parlé de ce sujet . par l'habitude on  change la langue sur Windows en touchant alt+shift , et nous avons la possibilité d'installer la langue arabe par le cd Windows . ceel nous cherchons l'arabe comme outil de recherche ça veut dire : d'avoir l'arabe sur le clavier ,et lorsque je voudrai chercher sur Google sur un sujet en arabe  je n'ai  qu'a taper en arabe. Et merci

Offline

#7 2014-04-28 17:51:13

oatta
Member
Registered: 2014-03-22
Posts: 50

Re: Using Arabic fonts in SliTaz 4.0

thank you for talking about this. by habit you change the language on Windows with touching alt + shift, and we can install the Arabic language by the Windows cd. ceel we seek Arabic as a research tool. it means: to have the Arabic keyboard, and when I want a Google search on a topic in Arabic I can simply type in Arabic. and thank you

Offline

#8 2014-04-30 13:01:20

lexeii
Administrator
Registered: 2012-03-21
Posts: 1,853

Re: Using Arabic fonts in SliTaz 4.0

Hi oatta001,

It seems that I managed to solve your problem. Please, download and install next brand new packages:

[*]locale-ar-4.1.tazpkg — Arabic translations for many applications, time zone info, locale definition files, icons for keyboard layouts, country flags.

[*]slitaz-menus-2.4.1.tazpkg — in the version 2.4.1 Arabic menu categories was added.

Next. Click Applications menu → Preferences → System language. Select your Arabic locale and click OK. Now log out and log in back.

Now keyboard. Right click on LXPanel, add keyboard applet. Configure it: uncheck "Keep system defaults", add "ara | digits" layout, change layout switcher to "alt_shift_toggle", check "Remember layout for window", close. Thats all. Now you can open your web browser, and google in Arabic.

Alternatively, you can setup your keyboard using this command line (this solution takes effect until next shut up / reboot):

[c]setxkbmap -model pc104 -layout us,ar -variant ,digits -option grp:alt_shift_toggle[/c]
And I need your feedback!

Offline

#9 2014-05-01 18:00:34

Ceel
Administrator
Registered: 2011-04-02
Posts: 1,424

Re: Using Arabic fonts in SliTaz 4.0

Waooooh!

Thanks to have done it Aleksej.

ض ص ث ق ف غ

Y T E R Z A
I cannot do this so quickly. But tell me: where did you find the .mo (or corresponding .po) files for applications?

Offline

#10 2014-05-01 19:00:28

Ceel
Administrator
Registered: 2011-04-02
Posts: 1,424

Re: Using Arabic fonts in SliTaz 4.0

@oatta,

With SliTaz 4.0 things seem a bit different than on Rolling.

After having select your arabic language and log out / log in, for keyboard, right click on the LXPanel bar, add "Sélecteur de disposition du clavier". Then double click on "Sélecteur de disposition du clavier" in the Panel Applets tab and choose your Disposition par défaut (FR(?) or ARA).

Change keyboard from one to the other by clicking on the upper left symbol in the LXPanel bar or with [Alt] + [Shift]

Offline

#11 2014-05-02 15:45:18

oatta
Member
Registered: 2014-03-22
Posts: 50

Re: Using Arabic fonts in SliTaz 4.0

Merci ceel et Aleksej; pour votre temps et efforts fournis sur slitaz . Enfin, j'ai pu me naviguer sur l'internet en utilisant ma langue native (arabe + berber). Mon intérêt non dans le changement de la langue du système mais d'avoir tous les outils nécessaires à une recherche fructueuse. Ceel, j'avais eu des difficultés sur ceci : in the Panel Applets tab and choose your Disposition par défaut (FR(?) or ARA).

Change keyboard from one to the other by clicking on the upper left symbol in the LXPanel bar or with [Alt] + [Shift] mais la commande d'Aleksej m'a sauvée. Maintenant, je peux changer la langue en temps réel. Merci encore.Ceel comment ajouter la langue manuellement ? Car j'avais été bloque à la dernière étape.Et merci

Offline

#12 2014-05-02 15:51:35

oatta
Member
Registered: 2014-03-22
Posts: 50

Re: Using Arabic fonts in SliTaz 4.0

Ceel thank you and Aleksej; for your time and efforts on slitaz. Finally, I was able to navigate  on the internet using my native language (Arabic + berber). My interest in not changing the system language but have all the tools necessary for successful research. Ceel, I had difficulties on this: in the Panel Applets tab and choose your Default Layout (FR () or ARA?). Change keyboard from one to the other by clicking close on the upper left symbol in the LXPanel gold bar with [Alt] + [Shift]. but the command of Aleksej has saved me. Now I can change the language in real time. Thank you encore.Ceel how to add language manually? Because I was blocked at the last étape.Et thank you for all

Offline

#13 2014-05-02 15:54:57

oatta
Member
Registered: 2014-03-22
Posts: 50

Re: Using Arabic fonts in SliTaz 4.0

شكرا على مجهوداتكم الجبارة ونتمنى لكم التوفيق و السداد عاشت سليتاز

Offline

#14 2014-05-02 17:23:31

Ceel
Administrator
Registered: 2011-04-02
Posts: 1,424

Re: Using Arabic fonts in SliTaz 4.0

Hello oatta,

You don't have to thank me for this, Aleksej's done all the job.

comment ajouter la langue manuellement

Deux méthodes :

[*]Tu cliques sur Applications > Préférences > Langage ; tu es invité à entrer le mot de passe de root et tu choisis la langue que tu veux. Tu dois faire un log out / log in pour que le changement prenne effet.

[*]À partir d'un terminal root, tape

[c]tazlocale[/c]

et choisis dans la liste qui s'affiche ; là encore, log out / log in pour que le changement soit effectif

Pour le choix du clavier par défaut, un petit dessin vaut mieux qu'un long discours ;-)

Les affichages sont en anglais parce que c'est la langue que j'utilise par défaut sur SliTaz, c'est plus facile pour le forum.

[attachment=29525,1426]

Offline

#15 2014-05-02 18:17:40

oatta
Member
Registered: 2014-03-22
Posts: 50

Re: Using Arabic fonts in SliTaz 4.0

merci pour la réponse  ; pour moi je trouve dans "défaut layout " Br{brésil]je n'ai pas installe la langue brésilienne .comment le changer en arabe ou francais et merci

Offline

#16 2014-05-02 18:43:18

oatta
Member
Registered: 2014-03-22
Posts: 50

Re: Using Arabic fonts in SliTaz 4.0

voici ce que me donne mon tazpanel:

Offline

#17 2014-05-02 19:10:45

oatta
Member
Registered: 2014-03-22
Posts: 50

Re: Using Arabic fonts in SliTaz 4.0

this is what gives me my tazpanel: br instead of Arabic or fr

[attachment=29531,1429]

Offline

#18 2014-05-02 22:04:29

oatta
Member
Registered: 2014-03-22
Posts: 50

Re: Using Arabic fonts in SliTaz 4.0

Hi Aleksej,

I tried many times to implement your method, but to no avail only the command works perfectly. I have treated this <<uncheck "Keep system defaults", add "ara | digits" layout, change layout switcher to "alt_shift_toggle", check "Remember layout for window", close >> well I just landed on slitaz me try to describe the steps clearly and thank you.

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.017 seconds, 7 queries executed - Memory usage: 1.57 MiB (Peak: 1.77 MiB) ]