Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Indian Language support in GNOME2.4 & XFCE4
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
Kream
n00b
n00b


Joined: 19 Apr 2002
Posts: 30
Location: New Delhi, India

PostPosted: Sat Feb 07, 2004 12:12 pm    Post subject: Indian Language support in GNOME2.4 & XFCE4 Reply with quote

Indian Language support in GNOME2.4 & XFCE4

This mini-HOWTO details the steps involved in getting Indian language support in Gentoo Linux - as of this time of writing (KDE 3.2), KDE does not yet support Indian languages with anything like the ease with which they are supported in GNOME. We will be using Indlinux 0.73 which can be downloaded here.

Guntupalli Karunakar is the dude who packages Indlinux and writes the install scripts.. I've just modified them so that they work on Gentoo, that's all. All credit should go to him. Thanks also to Mary for first helping me install Indlinux on Gentoo and showing me the correct way to install fonts. :oops:

You have to be root to install IndLinux. Create a temporary directory and download the tarball there. Enter the directory and unpack the tarball using:
Code:
tar xzf Indlinux-Hindi-0.73.tar.gz
cd Indlinux-Hindi-0.73
In this directory, you'll find scripts to install Indlinux. DO NOT RUN THESE SCRIPTS. They are designed for RedHat / Mandrake / Debian. We need to edit these scripts before running em or duplicate the commands they issue manually.

  • Installing the locale
    Edit inslocale.sh
    Code:
    $EDITOR inslocale.sh

    In this file, edit LOCALEDIR so that it points to /usr/share/locale
    Run inslocale.sh
    Code:
    inslocale.sh

  • Installing the fonts
    Code:
    cd fonts
    tar xzf pango-fonts-0.3.tar.gz
    mkdir -p /usr/share/fonts/default
    cp -R pango-fonts-0.3 /usr/share/fonts/default
    cp -R indic /usr/share/fonts/

    Code:
    $EDITOR /etc/X11/fs/config

    in the catalogue section of this file, add /usr/share/fonts/default/pango-fonts-0.3/indic and /usr/share/fonts/indic/OpenType
    Make sure that the last line in the catalogue section is the only one that does not end with a comma. all other lines have to end with a comma.

    Code:
    catalogue =/usr/share/fonts/default/pango-fonts-0.3/indic,
            /usr/share/fonts/indic/OpenType

    Restart the X Font Server and, just to be on the safe side, re-initialise the font cache...
    Code:
    /etc/init.d/xfs restart
    fc-cache -fv

  • Install the Keymap
    Code:
    cd ..
    inskeymap.sh

    You will need to add GKB - the keyboard switching layout tool - to the Gnome panel. In GNOME, right click on the panel - Add -> Utility ->Keyboard layout switcher. Then right click on the GKB applet, select Prefrences , click Add. Then add all the Indic layouts. Indic options are avaialble as Hindi -> India -> Hindi inscript xkbmap. Indic GKB settings will be available by default in future versions of Gnome. If anyone is using XFCE4 and wants to know how to easily switch language layouts, please mail or pm me.

  • Install the Translations
    Code:
    cd trans

    if /usr/share/locale/hi/LC_MESSAGES doesnt exist then create it, using
    Code:
    mkdir -p /usr/share/locale/hi/LC_MESSAGES

    Code:
    cp  -v mo-2.4/*.mo /usr/share/locale/hi/LC_MESSAGES
    cp -v xfcemo/*.mo /usr/share/locale/hi/LC_MESSAGES
    cd ..
    $PAGER README


[edit] inserted missing code that installs pango fonts :oops: :x


Last edited by Kream on Tue Mar 23, 2004 12:20 pm; edited 1 time in total
Back to top
View user's profile Send private message
tuxlearner
Tux's lil' helper
Tux's lil' helper


Joined: 09 Aug 2003
Posts: 75
Location: Mumbai, India.

PostPosted: Sat Feb 07, 2004 3:51 pm    Post subject: Reply with quote

great to see support for Indian languages!

i use XFCE4, kream could you provide the furthur details ?
_________________
In an Open World , who needs Windows and Gates ?
Back to top
View user's profile Send private message
trumee
Guru
Guru


Joined: 02 Mar 2003
Posts: 462
Location: London,UK

PostPosted: Sun Feb 08, 2004 11:03 pm    Post subject: Reply with quote

Thanks a lot for writing this howto. I also would like to use it under XFCE-4. any ideas?
Back to top
View user's profile Send private message
Appu
n00b
n00b


Joined: 24 Apr 2002
Posts: 39
Location: Hyderabad, India

PostPosted: Tue Feb 10, 2004 8:33 am    Post subject: Reply with quote

I had followed Karunakar's instructions to have Telugu support in yudit and after a lot
of self-torment (if that's the word!) I got around to making Telugu docs in yudit. However
I use KDE and maybe that's the reason why I was unable to really *see* it working
under KDE.

Do you have any idea what needs to be done to enable support under Mozilla? I use
the Pothana2k font and it doesn't seem to me that X recognizes it. Yudit gets it because
I have the ttf placed ~/.yudit and edited the properties/conf. file accordingly.

Great work, Kream!

Bye,
Appu
Back to top
View user's profile Send private message
rush_ad
l33t
l33t


Joined: 22 Jul 2004
Posts: 863
Location: New Jersey, USA

PostPosted: Tue Sep 07, 2004 1:29 am    Post subject: Reply with quote

good to see someone doing work on asian language.
Back to top
View user's profile Send private message
kavurip
n00b
n00b


Joined: 19 Jan 2005
Posts: 1
Location: Malaysia

PostPosted: Wed Jan 19, 2005 10:46 am    Post subject: Indian Language support in GNOME2.4 & XFCE4 Reply with quote

Hai All,

Great to see that Indian languages are working on Lunux. Thanks to all who involved in this.

Besides that I need a help, Iam using KDE, so is there any chance of installing this on KDE.

If so please help me ...

Thanks,
Prasad.
Back to top
View user's profile Send private message
Kream
n00b
n00b


Joined: 19 Apr 2002
Posts: 30
Location: New Delhi, India

PostPosted: Thu Jan 20, 2005 3:57 am    Post subject: Re: Indian Language support in GNOME2.4 & XFCE4 Reply with quote

kavurip wrote:
is there any chance of installing this on KDE.



kde-i18n already has hindi.

I use gentoo so before emerging kde-i18n, I just pass a LINGUAS="hi" to it ... works great for me..

cheers
k
_________________
http://forums.gentoo.org/search.php?search_id=unanswered
Back to top
View user's profile Send private message
krall
n00b
n00b


Joined: 28 Oct 2004
Posts: 51

PostPosted: Sat Aug 27, 2005 1:47 pm    Post subject: Reply with quote

Can anyone explain what is the way to easily switch layouts in XFCE4?
Is there a solution similar to the one in Gnome, where you can associate a
different layout for each window?
Back to top
View user's profile Send private message
karmac0ma
n00b
n00b


Joined: 29 Aug 2007
Posts: 1

PostPosted: Wed Aug 29, 2007 2:57 pm    Post subject: XFCE layout switching Reply with quote

@krall and others who might be stuck with this,

Not sure if this is what you wanted; since xfce4-xkb cannot handle the layouts by itself, we just need to edit /etc/X11/xorg.conf.
In my example I'm alternating between the standard US layout (which will be the default choice) and European Portuguese.

Code:
Section "InputDevice"
    Identifier  "Keyboard"
    Driver      "kbd"
    Option      "XkbLayout" "us,pt"
EndSection


(note that the relevant line is the "XkbLayout" one; the rest of the section probably doesn't need more tweaking)

This is quite a simple-ish workaround without using locales or the like. Still, it's fine for users like me that just need to switch layouts frequently and don't want to get Gnome stuff on their XFCE desktops.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum