hello friends,
i need to know how shoud add persian keyboard layout.
and reading in midori is hard how should i fix this is there any package that i have to install?
thank you so much!

persian reading and writing
(15 posts) (4 voices)-
Posted 12 years ago #
-
Hi MADMAN,
Let's solve your problem together.
I know that:
- your language code is fa_IR (/usr/share/i18n/locales/fa_IR);
- your keyboard code is ir (/usr/share/X11/xkb/symbols/ir).
Where these files are? Let's search.
There is glibc-locale and xorg-xkeyboard-config packages. Install them.Next, what is type of your SliTaz installation?
You can start it with lang=fa_Ir kmap=ir kernel options.Now, open your TazPanel → Settings → System language → select fa_IR, then log off and log in again.
For keyboard you can … hmm (maybe you know simple way?) … edit as root user this file /etc/X11/xorg.conf.d/40-Keyboard.conf
Put your keyboard codes to the line Option "XkbLayout"… Like this:
Section "InputClass" Identifier "Keyboard Defaults" MatchIsKeyboard "yes" Option "XkbLayout" "ir,en" Option "XkbOptions" "grp:ctrl_shift_toggle, grp_led:scroll, compose:ralt" Option "XkbOptions" "terminate:ctrl_alt_bksp" EndSection
Don't forget to remove this line from /etc/X11/xorg.conf.d/40-evdev.conf:
Option "XkbOptions" "terminate:ctrl_alt_bksp"
You'll see effects after log out/log in or after reboot.
You can setting up your keyboard immediately by this command in the terminal:
setxkbmap "ir,us"
Right now you can switch keyboard layout from ir to us and type your text in text editor or in browser.
By the way, I can.Next your question about Midori.
reading in midori is hard
What do you mean?
PS. If you get a wrong keys, maybe you need to add next line to file /etc/X11/xorg.conf.d/40-Keyboard.conf
Option "XkbVariant" ",pes_keypad"
Put it next to first "Option" line.Posted 12 years ago # -
I am using slitaz 5-rc3 for now
I have the same problem what should i do to solve persian writing?
thanks a lotPosted 9 years ago # -
....
Posted 9 years ago # -
for writing I found this solution just need put the code in below in a file and execute the file every time system starts,
and for reading for web browsing use firefox for subtitles use vlc this softwares don't have any problems.
I hope solve this problems in perfect way.
thank you firendscode:
#!/bin/sh
setxkbmap -option grp:switch,grp:alt_shift_toggle,grp_led:scroll us,irPosted 9 years ago # -
just need put the code in below in a file and execute the file every time system starts
Normally you don't have to do this. You can do what Aleksej told you above (adjust XkbOptions to reflect your -option parameters, and XkbLayout to "us,ir"):
edit as root user this file /etc/X11/xorg.conf.d/40-Keyboard.conf
Put your keyboard codes to the line Option "XkbLayout"… Like this:Section "InputClass"
Identifier "Keyboard Defaults"
MatchIsKeyboard "yes"
Option "XkbLayout" "ir,en"
Option "XkbOptions" "grp:ctrl_shift_toggle, grp_led:scroll, compose:ralt"
Option "XkbOptions" "terminate:ctrl_alt_bksp"
EndSectionPosted 9 years ago # -
that's not working dear llev, that's the problem.
Posted 9 years ago # -
Really strange. If you want to investigate you should post /var/log/Xorg.0.log (first edit /etc/X11/xorg.conf.d/40-Keyboard.conf, restart X or reboot, then post the log using http://paste.slitaz.org). You're using a hard disk install, right?
Posted 9 years ago # -
Hi there,
Guys, sorry, seems it won't work because of my typos in original advice:
Option "XkbLayout" "ir,en"
I mistakenly put here "en" as for English language, but here should be "us" as for "English (US)" keyboard layout. There is no typo in the next command, that's why it works:
setxkbmap "ir,us"
Posted 9 years ago # -
Hi,
I told Madman to adjust the Options to his setxkbmap parameters, so I think he tried to.
I've just noticed something strange that may be related: it seems my /etc/X11/xorg.conf.d/40-Keyboard.conf is recreated at each boot (its date is the time when I booted). However, I see nowhere in /etc/init.d a command that would do this. In rcS there is a test for existence of 40-Keyboard.conf: since I have a HDD install, the current file should persist until next login. If this is relevant, there is no language setting in my grub entry.
Posted 9 years ago # -
Hi
madman
have you some Persian font on your system? If not, you will never see somewhat!
Please check it (open a "good" coded page in Persian language, if possible a page checked by using amaya from www! If all is ok on the screen, you can continue...
Different language are NOT included in usual Linux distros else they belong to the most spoken languages of world (for ex. Hindi, about 1.000.000.000 speakers only!). You need a tricky keyboard driver of course, but you need at first ONE (or more) adequate *.ttf files (I can operate with the Hindi keyboard, one of the most terrible keyboards of the world written from left side to right side of page, and it also did go in the old SliTaz versions; but I did have to copy my *.ttf files (from Debian, it not a problem as buzybox offers always a minimal support to install *.deb's, but you also can copy them directly from an other drive of your PC, for ex. from an old live linux CD of/in that language!) into SliTaz. I did try last week to write Tamoul in Linux, it goes. But I did have to install both: *.ttf and language support and did do it in Lubuntu minimal using synaptic (I never use synaptic else! I always install all in CLI because I can see the system messages... I did first install synaptic for that operation!). But, after that, I did really write using Tamoul signs. They are to small really see them in Leafpad but if you write in Abiword or OOo4Kids, you can grow the signs to size 18..24 and ...
...wonder!Pls check it!
But, as I belong a beautiful old Persian learning book (St-Clair-Tisdall, «Modern Persian conversations grammar» 1923 in Germany by Julius Groos, Heidelberg) I am afraid you speaks about a writing FROM RIGHT TO LEFT on the page (as Urdu)! Urdu and Hindi are about the same language. I can write Hindi relatively fast. But I would never do that with Urdu as Urdu uses Arabic sign's... An Ataturk hat to first change that (Turkish, Bahasa Indonesia did also be written using Arabic sign's!). The probably best way would be to build an Arabic / Hebraic SliTaz and after that, to develop at it's periphery the other languages using the writing of the Semitic writing community! I don't know if SliTaz did develop that at this time.
Good luck!
Posted 9 years ago # -
Hi oui,
Our default font DejaVu Sans provides Persian, and you not need to install any additional fonts. Anyway, here's a good page: http://www.wazu.jp/gallery/Fonts_Persian2.html
Yesterday I've boot new SliTaz Rolling ISO and look pkgs.slitaz.org on Persian.Hi Lucas,
Thing you've found strange is something in the "tazx boot" iirc, I'll try to dig it tomorrow (or, already today).
Posted 9 years ago # -
Hi Aleksej,
Is slitaz-tools changeset 959 http://hg.slitaz.org/slitaz-tools/rev/c6b3e0d9a922 made to solve the problem?
Posted 9 years ago # -
The file contents is preserved. So MADMAN should not have to launch his script at each boot any more. MADMAN, can you test it?
However, somehow the date of modification is changed and reflects the boot time.
Posted 9 years ago #
Reply
You must log in to post.