Giter VIP home page Giter VIP logo

gnome-cedilla-fix's Introduction

gnome-cedilla-fix

Versão em português

Configure your Gnome "US-International" keyboard layout to generate a cedilla c (ç) instead of an accented c (ć). This project should be particularly useful to Brazilian Portuguese users with a US-International layout, but could also be used by anyone else who needs to constantly type a cedilla c.

Why do I need this?

The traditional Microsoft "US International" keyboard generates accented characters by sequences of accent+letter, making text typing easy and familiar for latin language users. This behavior was translated into X, and then into the earlier versions of Gnome.

Eventually, most countries defined their own keyboard layouts and Gnome added full support for those. Unfortunately, at some point during this time, the Gnome project decided that '+c (accent+c) should generate an accented c instead of a cedilla c, breaking the widely used US-Intl layout in Gnome for many users.

This move generated substantial frustration, and many bugs have been reported on this topic, without a clear and concise solution. This behavior also causes confusion when migrating users from other operating systems, and makes Linux adoption more difficult for those who need to use cedilla-c regularly.

How do I use this?

At the shell prompt, type:

wget -q https://raw.githubusercontent.com/marcopaganini/gnome-cedilla-fix/master/fix-cedilla -O fix-cedilla
chmod 755 fix-cedilla
./fix-cedilla

To activate the changes, log out and re-login. This is usually enough. If you still see the wrong results after the logout/login procedure, reboot your computer.

Uninstallation

To uninstall, just run:

rm ${HOME}/.XCompose

Again, you will need to log out and re-login for changes to take effect.

How does it work?

The script copies your system "Compose" file into ~/.XCompose (your personal compose file), translating every occurrence of an accented-c (ć) into a cedilla c (ç). This should satisfy non-Gnome programs.

Compatibility

I've tested this with a few versions of Debian, Ubuntu, Mint Linux, and Fedora with success. Please let me know about success and failure stories in other versions of Linux.

Pull Requests (PRs) with fixes and updates are always welcome.

You may also like

You may also like these other (unrelated) repos from the same author:

  • coolsites: A collection of cool, useful, and interesting sites around the Internet. There's something for everyone here.
  • termschool-vim-theme: A pleasant green/gray dark theme for vim and gvim (requires 256 color terminals or gvim).
  • mojave-vim-theme: A warm dark theme for Vim and Gvim.
  • netbackup: A backup frontend for many common backup tools (rsync, rdiff-backup, etc). Simplify your backups using similar configuration files, generate log files on common locations, etc.
  • mkvtool: A "swiss-army knife" tool to manipulate, clean, rename MKV movie files and subtitles.
  • bitrot: A simple tool to detect bitrot (silent media corruption) in your media. Particularly useful for flash drives.
  • quotes exporter: A prometheus financial quotes exporter.

gnome-cedilla-fix's People

Contributors

marcopaganini avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gnome-cedilla-fix's Issues

ERROR: QT module set to xim

I had this error:

ERROR: /etc/environment sets QT_IM_MODULE to xim. Please edit the file and fix this.

I got rid of it by including the line unset QT_IM_MODULE before source "$ENVFILE"

I don't know if this overwrote any setting that should be useful. And in that case, how to undo that and still be able to do the fix for cedilla. Can you help me with this?

Script stops telegram dead keys working

This script fixes all the input such as browser, terminal, office etc, but before running the script Telegrams accents work with the dead keys (except of course the the cedilla is the wrong accent), but after running it Telegram has no dead keys at all.

A simpler solution

According to this page

add one line in /etc/environment

GTK_IM_MODULE=cedilla QT_IM_MODULE=cedilla

This solution is working on my Pop! OS 20.04.

Maybe no need to duplicate the entire Compose file?

Hi @marcopaganini ,

I've spent some time on this issue since it started to annoy me this week. I ended up with a smaller solution that you might be interested in testing: https://garajau.com.br/2021/02/enabling-cedilla-acute-c-on-gnome

Basically, you don't need to copy the entire Compose file, just the overrides. Moreover, while the sole .XCompose file will work fine for non-GTK applications, when on GTK apps, the overrides won't pick up, unless I explicitly tell GNOME to use ibus as the input method.

Let me know if that works for you! 👍

On Linux Mint 20.2 does not work

I had used this script on LM 19.3 and works. But with new version it stop working. When I press ' + C i got 'C.
Even with all configruations about language set to BR.
This could be a bug of the new version of LM? Or there is something that colud be done to solve this problem?

Regards,

Gustavo

Emoji input (ctrl + shift + e)

Applying this fix makes the key combination of ctrl + shift + e to enable the emoji input. I've tried removing this configuration on the ibus-setup interface, but without results. And I couldn't find these key combinations on my compose files to manually exclude. Any ideas of what it could be?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.