Sunday, January 27, 2013

Cedilla on Fedora 18 and GTK 3.X


I couldn't find anywhere a recipe for putting cedilla as default on Fedora 18. None of them work properly for my environment, which is:
  • Desktop in a non-Portuguese language (in my case English)
  • Make the combination + produce a cedilla (รง)
The way I did it is:

1. Set Input Method to NONE:


Go to
-> System -> Preferences ->  Input Method Selector.


This should produce a window similar to that below. Select: No Input Method



2. Set, in your .bash_profile, to use ibus:

Edit your ${HOME}/.bash_profile file and add the following:

export GTK_IM_MODULE=ibus

Or:

#---
cat >> ${HOME}/.bash_profile << __END__
export GTK_IM_MODULE=ibus
__END__
#---


3. Setup GTK:


Add your language (in red) to the corresponding lines in:

/usr/lib/gtk-3.0/3.0.0/immodules.cache: 
"/usr/lib/gtk-3.0/3.0.0/immodules/im-cedilla.so"
"cedilla" "Cedilla" "gtk30" "/usr/share/locale" "az:ca:co:fr:gv:oc:pt:sq:tr:wa:de:en"


/usr/lib64/gtk-3.0/3.0.0/immodules.cache:
"/usr/lib64/gtk-3.0/3.0.0/immodules/im-cedilla.so"
"cedilla" "Cedilla" "gtk30" "/usr/share/locale" "az:ca:co:fr:gv:oc:pt:sq:tr:wa:en:de"


/etc/gtk-2.0/x86_64-redhat-linux-gnu/gtk.immodules:
"/usr/lib64/gtk-2.0/2.10.0/immodules/im-cedilla.so"
"cedilla" "Cedilla" "gtk20" "/usr/share/locale" "az:ca:co:fr:gv:oc:pt:sq:tr:wa:en:de"


Sources:

https://wiki.archlinux.org/index.php/IBus

No comments: