telegramdesktop / tdesktop

Telegram Desktop messaging app
https://desktop.telegram.org/
Other
25.93k stars 5.13k forks source link

Graphic accents in vocals (èéàú...) do not appear #1360

Closed plagasul closed 7 years ago

plagasul commented 8 years ago

I am on Telegram Desktop 0.9.10 under Linux Mint 17.2 Rafaela Cinnamon

Spanish/catalan graphic accents on vocals, such as é è ú.... but also ü, etc, are simply not written when writing a message. They are not shown on text input, and neither when the message is sent and appears in the shared part of the screen.

Graphic accents work without any problem in any other part of the system, without exceptions, at least that I come accross.

Thank you

auchri commented 8 years ago

Works on windows image

z3ntu commented 8 years ago

selection_010 Works in Ubuntu 15.10

psergiojr commented 8 years ago

Here on Telegram 0.9.15 under Ubuntu 14.04 LTS

I've noticed this too. But it only happens after some time. Right after opening the window, it works perfectly. I keep it opened while doing anything else with another program, and then back to the Telegram window, accents do not appear anymore.

If I close the window, then reopen it from the tray icon, it still doesn't work. But if I change the keyboard layout to any other language (here between pt-BR and en-US) and then back, it works again. Just to stop working again after some time :)

psergiojr commented 8 years ago

Testing now, I found something strange. When switching between windows using the mouse, it works perfectly. But when switching using Alt+Tab the accents stop working.

psergiojr commented 8 years ago

If it helps tracking the problem: I was testing in Manjaro, and the problem doesn't happen here. Even the Alt+Tab works fine with accents. XFCE 4.12

Maybe it's like #1041

Crashillo commented 8 years ago

Problem persists. Telegram just ignores accent keys. xfce4-about 4.11.1 (Xfce 4.10) VERSION="14.04.4 LTS, Trusty Tahr" Telegram Desktop: v 0.9.49

UPDATE The same at my working computer: xfce4-about 4.12.1 (Xfce 4.12) VERSION="16.04 LTS (Xenial Xerus)" Telegram Desktop: v 0.9.49

Contraculto commented 8 years ago

I also have this problem. In XFCE 4.12 over Ubuntu 16.04 accented characters don't work, they're simply ignored. It works perfectly if I switch to Gnome. Telegram version is 0.9.49, but I have at least a few times in the last couple of weeks.

z3ntu commented 8 years ago

Happened on: XFCE (Ubuntu 16.04, Ubuntu 14.04) Unity (Ubuntu 16.04) Cinnamon (Mint)

Did NOT happen on: XFCE (Manjaro) GNOME (Ubuntu 16.04) Unity (Ubuntu 15.10) i3 (Arch Linux)

RomBuch commented 8 years ago

Same behaviour here. Any dead keys, i.e. accents as well, don't work on Telegram Desktop.

Operating System Ubuntu 16.04 64-bit

Telegram Desktop Version 0.9.49

z3ntu commented 8 years ago

@Rom4nB what Desktop environment are you using?

RomBuch commented 8 years ago

@z3ntu I use the standard Unity 7 Desktop environment of Ubuntu 16.04.

Unity Version 7.4.0

z3ntu commented 8 years ago

@auchri @john-preston I compiled a list where it worked and where it didn't: https://github.com/telegramdesktop/tdesktop/issues/1360#issuecomment-224034232

soadroxs commented 8 years ago

Not working here either.

XFCE 4.12 Xubuntu 16.04 Telegram 0.9.51

EDIT Layout:

rules: evdev model: pc105 layout: pt

Patola commented 8 years ago

Working in one computer (Ubuntu 16.04 64 bits with NVidia and Unity), not working in another (same configuration). First computer uses abnt2 brazilian portuguese layout for accents, second one does not. Tested in both with dead keys and non-dead keys (composed letters), same thing, in the first one it works, in the second it does not.

Telegram version: 0.9.49

luccamendonca commented 8 years ago

Doesn't work here either

XFCE 4.1 Xubuntu 15.10 Linux 4.4.4-040404-generic Telegram 0.9.51

[EDIT]

Keyboard layout: PT-BR (ABNT2)

rcotrina94 commented 8 years ago

+1 Doesn't work here either

GNOME Shell 3.16.4 Ubuntu GNOME 15.10 GNU/Linux 4.2.0-36-generic Telegram 0.9.51

[EDIT]

$ setxkbmap -query
rules:      evdev
model:      pc105
layout:     latam,us
variant:    ,
z3ntu commented 8 years ago

PLEASE! If you write, that it doesn't work for you, please also write what keyboard layout you are using! I am pretty sure, that it isn't because of a desktop environment/window manager, but because of the "special" keyboard layout you are using.

ByScripts commented 8 years ago

Same problem here with dead keys.

Keyboard layout: "Français (Variante)" (AZERTY)

For the moment, I don't have problem with accented letters (éàù...), only with composition (^ ¨ ...)

rules:      evdev
model:      pc105
layout:     fr,us,fr
variant:    oss,,oss
plagasul commented 8 years ago

I initiated this thread, I've noticed the following message on the terminal when updating telegram that I believe may be related, at least in my case, to the problem at hand:

Configurando telegram (0.9.50-0ubuntu0) ...
Telegram/
Telegram/Updater
Telegram/Telegram
Configurando kpartx (0.4.9-3ubuntu7.13) ...
Configurando kpartx-boot (0.4.9-3ubuntu7.13) ...
update-initramfs: deferring update (trigger activated)
Processing triggers for menu (2.1.46ubuntu1) ...
Processing triggers for initramfs-tools (0.103ubuntu4.3) ...
update-initramfs: Generating /boot/initrd.img-3.19.0-32-generic
Warning: No support for locale: es_ES.utf8
z3ntu commented 8 years ago

@plagasul is the language uncommented in your /etc/locale.conf? If not, uncomment it and run locale-gen. (I don't know if this works on Ubuntu, but it works on Arch Linux so try it)

plagasul commented 8 years ago

@z3ntu, there is a etc/locale.alias with a "spanish es_ES.ISO-8859-1" line, uncommented, I run locale-gen, shutdown and up Telegram, but nothing particular happened, graphic accents still not visible. Thanks. Any other ideas?

plagasul commented 8 years ago

I tried reinstalling telegram and got this:

perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LC_TIME = "es_ES.UTF-8", LC_MONETARY = "es_ES.UTF-8", LC_ADDRESS = "es_ES.UTF-8", LC_TELEPHONE = "es_ES.UTF-8", LC_NAME = "es_ES.UTF-8", LC_MEASUREMENT = "es_ES.UTF-8", LC_IDENTIFICATION = "es_ES.UTF-8", LC_NUMERIC = "es_ES.UTF-8", LC_PAPER = "es_ES.UTF-8", LANG = "es_ES.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_MESSAGES to default locale: No such file or directory locale: Cannot set LC_ALL to default locale: No such file or directory Selecting previously unselected package telegram. (Reading database ... 286519 files and directories currently installed.) Preparing to unpack .../telegram_0.9.50-0ubuntu0_amd64.deb ... Unpacking telegram (0.9.50-0ubuntu0) ... Processing triggers for bamfdaemon (0.5.1+14.04.20140409-0ubuntu1) ... Rebuilding /usr/share/applications/bamf-2.index... Processing triggers for gnome-menus (3.10.1-0ubuntu2) ... Processing triggers for desktop-file-utils (0.22-1ubuntu1) ... Processing triggers for mime-support (3.54ubuntu1.1) ... Setting up telegram (0.9.50-0ubuntu0) ... Telegram/ Telegram/Updater

Lonami commented 8 years ago

Not working here either. It's strange, because in other operative systems (Linux Mint 17.3 Rosa featuring XFCE desktop) I could type on the chat input with those characters, but not on the photos. I had to use Alt+Tab.

Now under Xubuntu 16.04 with the latest Telegram version as of now (0.9.56) is still not working, anywhere. My keyboard is Generic PC 105 keys (intl), Spanish (Windows keys)

john-preston commented 8 years ago

@XyLoNaMiyX Can you try in other systems (where the chat input was working, but not the photo caption input) does photo caption input now work?

Lonami commented 8 years ago

Yeah, on Linux Mint 17.3 Rosa featuring XFCE desktop it works now (ran it on a Virtual Machine setting the Spanish keyboard, not Windows layout though), both on chat input and photo captions.

However, thinking the issue could be the Windows layout part, I switched to "plain" Spanish layout on Xubuntu, and it doesn't work there (not in the chat input, not in the photo captions)

camilacampos commented 8 years ago

not working on my ubuntu 14.04 LTS either. keyboard is qwerty for brazilian portuguese. The accents work fine when I first start telegram desktop, and sometime later it stops working. I have to close it and open again, or re-select my keyboard settings, then the accents start working again ):

camilosampedro commented 8 years ago

I managed to solve this in Manjaro Budgie 16.06 by adding these lines to my ~/.xinitrx (or ~/.xprofile depending on the Window Manager):

export GTK_IM_MODULE=ibus
export XMODIFIERS=@im=ibus
export QT_IM_MODULE=ibus
ibus-daemon -drx

Check if you have ibus installed on your system. Source.

rcotrina94 commented 8 years ago

@camilosampedro It worked for me. Thanks!

Lonami commented 8 years ago

@camilosampedro in my case, I only had to sudo apt-get install ibus and set it up in Configuration, but it's working now. Thanks for the hint

rafaelcn commented 8 years ago

Confirmed here, Xubuntu 16.04 using the Portuguese (Brazil) keyboard layout. Also, in previous versions of Telegram sign accents worked like a charm, not sure though in which version this bug has appeared, since it has stopped working I've been using the web version of Telegram.

plagasul commented 8 years ago

After installing Linux Mint Sarah, Cinnamon, I have graphical accents.

successus100 commented 8 years ago

@XyLoNaMiyX Thanks, solved with the same on Xubuntu 16.04, sudo apt install ibus, and sep up on language options and reboot.

douglasrizzo commented 8 years ago

@rafaelcn my case is exactly the same as yours.

brwolfgang commented 8 years ago

Just noticed: 10 months already...

douglasrizzo commented 8 years ago

I found out that the workaround proposed by @narcelio on https://github.com/telegramdesktop/tdesktop/issues/1041#issuecomment-231395019 works for me.

brwolfgang commented 8 years ago

@douglasrizzo works here too, I can now leave the web version alone, thanks

rafaelcn commented 7 years ago

Well, I just changed the desktop that I use (to KDE), since then I have no complaints regarding telegram. Either way, as you said the problem is still not solved on Xubuntu.

Regards, Rafael Campos Nunes. rafaelnunes@engineer.com

Le 16 sept. 2016 à 12:23, "Douglas De Rizzo Meneghetti" notifications@github.com a écrit :

@rafaelcn my case is exactly the same as yours.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

vs0uz4 commented 7 years ago

For those who are using distros like Elementary OS, just edit the file telegramdesktop.desktop, and remove the first line of the [Desktop Entry] that setting encoding to file is UTF-8, that way here worked perfectly accents.

After some testing, I found instability in the previously presented solution, which had only remove the key "Encoding". So talking to the my friend @vinicius73 who went through the same problem accent, I took with him the adjustments he made in .desktop, which was to add the environment variable "QT_IM_MODULE" before calling the executable Telegram. Getting the telegramdestop.desktop the way described below, and solving the problem of accents without instability.

Replace "USERNAME" at login your user

[Desktop Entry]
Version=1.0
Name=Telegram Desktop
Comment=Official desktop version of Telegram messaging app
Exec=env QT_IM_MODULE=xim /home/USERNAME/Telegram/Telegram -- %u
Icon=telegram
Terminal=false
StartupWMClass=Telegram
Type=Application
Categories=Network;
MimeType=x-scheme-handler/tg;
X-Desktop-File-Install-Version=0.22
luismanolo commented 7 years ago

First, sorry about my english... ;-)

Thanks to @vs0uz4 for the solution, but don't work for me.

This is my modification...

create a file in /home/USERNAME/bin/TG.sh with:

#!/bin/bash
QT_IM_MODULE=xim /home/USERNAME/Telegram/Telegram

then: chmod +x /home/USERNAME/bin/TG.sh

And finally change the file: /home/USERNAME/.local/share/applications/telegramdesktop.desktop with:

[Desktop Entry]
Version=1.0
Name=Telegram Desktop
Comment=Official desktop version of Telegram messaging app
Exec=/home/USERNAME/bin/TG.sh
Icon=telegram
Terminal=false
StartupWMClass=Telegram
Type=Application
Categories=Network;
MimeType=x-scheme-handler/tg;
X-Desktop-File-Install-Version=0.22

This work for me.

Lonami commented 7 years ago

Thanks @luismanolo, I was having the issue again and I didn't want to bother with ibus xD

Edit: For those who are not so much into Linux-based distributions, you don't need to actually create the TG.sh file where @luismanolo's comment says. It can even be under the same directory as telegramdesktop.desktop. And you can also replace /home/USERNAME with ~, which is shorter!

stek29 commented 7 years ago

@luismanolo @XyLoNaMiyX Why not do Exec=QT_IM_MODULE=xim /home/USERNAME/Telegram/Telegram? or with eval if it won't work.

Lonami commented 7 years ago

@stek29 Exec=QT_IM_MODULE=xim /home/USERNAME/Telegram/Telegram fails. I don't know where to put eval, and with env it didn't work for me either.

Aokromes commented 7 years ago

1041 ?

stek29 commented 7 years ago

@XyLoNaMiyX oh, i meant env, huh.

douglasrizzo commented 7 years ago

When I alter the .desktop file that fires up Telegram (like @XyLoNaMiyX mentions), sometimes it reverts back to its original state. I don't know if it is related to Telegram updates. However, if I create my own .desktop file in some other directory, like ~/.local/autostart, I am able to keep the custom Exec command.

realjumy commented 7 years ago

Also having problems with elementaryOS:

$ setxkbmap -query rules: evdev model: pc105 layout: es,us variant: , options: grp:alt_shift_toggle

luismanolo commented 7 years ago

You can put this on your .profile

export QT_IM_MODULE=xim

El vie., 10 feb. 2017 a las 17:41, Jumy Elerossë (notifications@github.com) escribió:

Also having problems with elementaryOS:

$ setxkbmap -query rules: evdev model: pc105 layout: es,us variant: , options: grp:alt_shift_toggle

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/telegramdesktop/tdesktop/issues/1360#issuecomment-278994348, or mute the thread https://github.com/notifications/unsubscribe-auth/ABGkeGhg92dniL6rS6GQ1gya0aYDb_ZJks5rbJMsgaJpZM4GuJ6g .

revagomes commented 7 years ago

@realjumy I've fixed that by running $ ibus-setup. But just runing the config this way is not enough because it didn't work after restarting the machine, for example. I'll try some of the other suggestions anyway. but at least there is another workaround.

luiarhs commented 7 years ago

This works for me on elementary OS 0.3 and 0.4

You should have ibus-unikey installed, if you don't do it with this command:

sudo apt-get install ibus-unikey

Now configure ibus through ibus-setup. To do this, run the command on a terminal and go to the input method tab.

  1. Install your desired input method for IBus.
  2. Run ibus-setup command from terminal.
  3. Select 'Input method' tab and Add your desired input method.
  4. Close 'IBus Setup' and run ibus-daemon -drx in terminal.
  5. And on iBus Preferences unmark Use system keyboard layout

If you want IBus to automatically start with the system, then go to System Settings > Applications > Startup and add ibus-daemon -drx as a custom command or just click on Add Startup App and search iBus.

jesusgn90 commented 7 years ago

The @luiarhs solution works for me, Ubuntu 16.04, Spanish Spain, 64 bits