keshavbhatt / whatsie

Feature rich WhatsApp Client for Desktop Linux
MIT License
1.91k stars 55 forks source link

accentuation is not working #7

Closed alansenairj closed 2 years ago

alansenairj commented 3 years ago

It is not accepting accentuation like "ã ô ó" etc.

Using Ubuntu21.04 pt-br

keshavbhatt commented 3 years ago

What do you mean by not accepting? I am able to Paste these characters and send them.

Screenshot from 2021-06-09 20-41-14

alansenairj commented 3 years ago

It is not working: image

chrome: image

alansenairj commented 3 years ago

that's my configs here: image

keshavbhatt commented 3 years ago

Hi, I don't have those characters on my keyboard but I tried typing them with virtual keyboard app (onboard) it works perfectly fine here.

keshavbhatt commented 3 years ago

that's my configs here: image

There is nothing in the settings that will prevent users from typing characters in text input.

keshavbhatt commented 3 years ago

Can you post the output of Whatsie when you start it from terminal ? Open terminal type whatsie hit enter to open app.

Copy the whole output from terminal to next comment here.

alansenairj commented 3 years ago

of course, here is the output:

image

alansenairj commented 3 years ago

I have no idea how to solve this. Could you help me? I'm using this gnome fonts here: image

keshavbhatt commented 3 years ago

Can you change the system font to Ubuntu and try typing again?

alansenairj commented 3 years ago

I swaped to original fonts but I think it was some king of problem of "WhatsApp standalone core" in my system. Web whatsapp is ok via Chrome. I've been installing other Whatsapp apps for Linux and got same problem again. If I use Telegram app here dead keys are working perfectly.

keshavbhatt commented 3 years ago

I will look into it.

jakley commented 3 years ago

I'm Brazilian, I had the same problem with accents. So I downloaded the source code, installed qtcreator, loaded the code and compiled it, without making any changes to the code. The new executable allowed the use of accents. I have no experience with Qt, but if I can help with any information, just let me know.

keshavbhatt commented 3 years ago

The problem is i am not able to reproduce this issue on my system as well. I tried typing those characters with virtual soft keyboard and everything just worked fine. I have to test on other machines.

alansenairj commented 3 years ago

tcreator, loaded the code and comp

opa, tudo bem jakley, me passa a dica de como eu faço isso por favor?

jakley commented 3 years ago

tcreator, loaded the code and comp

opa, tudo bem jakley, me passa a dica de como eu faço isso por favor?

Massa, "brazuca" na área hehhehe.

Então, eu uso ubuntu 20.04. Fui no site da Qt (https://www.qt.io) e baixei o binário do instalador on-line da versão open source.

No instalador eu escolhi a versão 5.15, vou logo avisando que instalou ~10Gb de arquivos.

Baixei e descompactei o .zip a brach main do código fonte do whatsie

Usando o QtCreator abri o projeto do whatsie

Escolhi o kit Desktop e a Build Profile

Compilei a build que gerou um executável do whatsie inclusive um atalho .desktop

Então foi só rodar o executável e seguir os procedimentos para vincular a conta

English version: Massa, 'brazuca' in the area hehhehe.

So, I use ubuntu 20.04. I went to the Qt website (https://www.qt.io) and downloaded the online installer binary of the open source version.

In the installer I chose version 5.15, I'll tell you that it installed ~10Gb of files.

I downloaded and unzipped the .zip a brach main from the whatsie source code

Using QtCreator I opened the whatsie project

I chose the Desktop kit and the Build Profile

I compiled the build that generated a whatsie executable including a .desktop shortcut

So just run the executable and follow the procedures to link the account

jakley commented 3 years ago

Eu só preciso saber como manter o whatsie funcionando sem precisar manter os 10Gb de arquivos do Qt.

@keshavbhatt você poderia me dar uma ajuda com isso?

Quando desinstalei o Qt fiz uma cópia das bibliotecas e tentei usar de forma manual, tentei em várias pastas, inclusive na pasta do projeto, mas sem sucesso.

Não queria ter que manter os 10Gb. Eu programo só em python, e só por hobby.

English version: I just need to know how to keep whatsie running without having to keep the 10Gb of Qt files.

@keshavbhatt could you help me with this?

When I uninstalled Qt I made a copy of the libraries and tried to use them manually, I tried in several folders, including the project folder, but without success.

I didn't want to have to keep the 10Gb. I only program in python, and just as a hobby.

jakley commented 3 years ago

The problem is i am not able to reproduce this issue on my system as well. I tried typing those characters with virtual soft keyboard and everything just worked fine. I have to test on other machines.

When I compiled the project I didn't need to make changes, I just compiled

I had no crashes and no error messages.

It compiled , and when I ran the program it started to accept accents

Portuguese version:

Quando eu compilei o projeto não precisei fazer alterações, apenas compilei

Não tive falhas e nem mensagens de erro.

Compilou de primeira, e quando executei o programa ele já passou a aceitar acentos

keshavbhatt commented 3 years ago

I will make an appimage for whatsie, and announce it here. You can use that to prevent the qt install. Also Qt do not take 10Gb, you should open the maintenance tool and remove unnecessary components.

ibere82 commented 3 years ago

I am also Brazilian and I have the same problem. I want to try doing the walkthrough suggested by @jakley. Thanks @jakley. But 10 GB is too much. However, I want to expose the details about this problem to try to solve it. In Brazil, for example, to type the character 'é' (\u00E9), we first press the acute accent key, then we press the 'e ' key.

But, note that when we press the acute accent key, it doesn't show anything on the screen, but this event is captured and processed to change the result when we press the "e" key.

This is the behavior when using the physical keyboard, as the physical keyboard does not have a key to char 'é' (\u00E9). Thus, the combination of both keyboards events results in this unicode char. This is a behavior of a Latin keyboard Layout configuration. However, when you use a virtual keyboard, the behavior is different, probably because this keyboard must have a specific key for this unicode.

The issue with your app is not a screen output problem. If I type in another text editor, copy and paste into your whatsie, nothing goes wrong. Text with Latin characters is successfully pasted.

But, the problem happens when we type directly into your app. When I press the acute accent key and then the 'e' key, the result on the screen is the 'e' character and not the 'é' which is the expected behavior. This is likely a keyboard layout configuration error.

I think that the tests routines should dispatch the specific keyboards events to test the correctly latin layout keyboard configuration.

Thank for your attention.

keshavbhatt commented 3 years ago

wait for the appimage.

RoinujNosde commented 3 years ago

https://bugs.launchpad.net/snapd/+bug/1936962 I've reported this bug on launchpad, it should help if you guys marked it as "This bug affects me".

RoinujNosde commented 3 years ago

@keshavbhatt unfortunately my issue was closed as invalid, they said the bug is due to how the app was built and you could discuss this on their forums.

keshavbhatt commented 3 years ago

I will open a forum post as suggested.

RoinujNosde commented 3 years ago

Post the link to the discussion when you open it, please. I would like to follow it.

alansenairj commented 3 years ago

Hi guys. I solved my problem here. It was a IBUS problem. I put it on IBUS mode here in Ubuntu 21.04:

Captura de tela de 2021-09-10 11-14-45

Now everything is working very well. I hope you guys can solve it too.

voltaxvoltax commented 3 years ago

Hi guys. I solved my problem here. It was a IBUS problem. I put it on IBUS mode here in Ubuntu 21.04:

Captura de tela de 2021-09-10 11-14-45

Now everything is working very well. I hope you guys can solve it too.

I've tried this on Ubuntu 20.04, and it doesn't work, still no accents for Portuguese chars ( á,à,ó,é,ã) It only works if we copy-paste. Can you please fix this issue?

keshavbhatt commented 2 years ago

Hi can any one you try, whatsie from edge channel and let me know if the problem is still there?

snap refresh whatsie --edge

RoinujNosde commented 2 years ago

snap refresh whatsie --edge

Didn't fix it.

Edit: Also tried the commands you mentioned on #21

QT_IM_MODULE=xim whatsie and QT_IM_MODULE=ibus whatsie env QT_IM_MODULE=xim QT_XKB_CONFIG_ROOT=/snap/whatsie/current/qt515-core20/usr/share/X11/xkb QTCOMPOSE=/snap/whatsie/current/qt515-core20/usr/share/X11/locale snap run whatsie

None helped.

keshavbhatt commented 2 years ago

Thanks for the update. I am still trying to figure out a solution :(

keshavbhatt commented 2 years ago

Hi @RoinujNosde can you try running : LANG="en_IN.UTF-8" whatsie

keshavbhatt commented 2 years ago

The issue is fixed in 0483b030043f13fe048f575882ffb78d4177b479 You can refresh whatsie with snap refresh whatsie --stable to get the changes. Feel free to reopen for further assistance.

manozzo commented 2 years ago

hello. I made the refresh command, but the portuguese accents doesn't work yet =/ I just need do this command? snap refresh whatsie --stable ?

keshavbhatt commented 2 years ago

I just need do this command? snap refresh whatsie --stable ?

Yeah that is sufficient, you can also run rm -rf ~/snap/whatsie to remove the old configurations of whatsie.

voltaxvoltax commented 2 years ago

Updated to version 2, but the problem remains.

RoinujNosde commented 2 years ago

It's working here, thanks!

stefanodefaria commented 2 years ago

I still have this problem. Using version Whatsie version v4.7.1.e0d15c2, with IBus input system.

joaorodrigo commented 2 years ago

This bug is closed, but the problem persists, any update?

Leolucas12 commented 2 years ago

Same thing here, using Xubuntu 22.04. If I try to change the language to pt-BR, restart the computer and open Whatsie, the accents work. But if the system language is en-US, the language I use, accents don't work. Tried to change the language in the Whatsie settings, but it doesn't seem to work.

gtonussi commented 1 year ago

Hi, just reporting that the issue remains, using latest version from snap and Ubuntu 22. I am also using my system in english. When I type "é ã" for example it just goes by "e a". It would be amazing if I could remain using the system in english..

GoulartNogueira commented 1 year ago

It might be related to Telegram's bug. It looks like they solved it:

https://github.com/telegramdesktop/tdesktop/issues/1041

davincif commented 1 year ago

I'm having the same problem. And notice that if I copy/past a "á", for instance, from another place to there, it works. But if I type it, it doesn't.

gzmarcatto commented 1 year ago
>snap refresh whatsie --stable
snap "whatsie" has no updates available
>rm -rf ~/snap/whatsie
>LANG="en_IN.UTF-8" whatsie
Qt: Session management error: Could not open network socket
WhatSie is already running with PID: 24398 by USER: gzmarcatto
>snap refresh whatsie --edge
whatsie (edge) v4.10.3.74216cf from keshavbhatt (keshavnrj✪) refreshed

Tried everything above, still not being able to use accentuation.

I'm having the same problem. And notice that if I copy/past a "á", for instance, from another place to there, it works. But if I type it, it doesn't.

And the behavior is the same for me, copy/paste works, but typing doesn't

thiagorsti commented 1 year ago

Same problem here. Using 4.10 version from edge channel. Any solution?

lbdonato commented 1 year ago

Same problem, Ubuntu 22.04, IBUS, my installation in english.

fscosta commented 1 year ago

I get this error when I run from the command line:

xkbcommon: ERROR: /snap/whatsie/142/qt515-core20/usr/share/X11/locale/pt_BR.UTF-8/Compose:54:9: failed to open included Compose file "/usr/share/X11/locale/en_US.UTF-8/Compose": No such file or directory xkbcommon: ERROR: /snap/whatsie/142/qt515-core20/usr/share/X11/locale/pt_BR.UTF-8/Compose:54:9: failed to parse file qt.xkb.compose: failed to create compose table

What is wierd is that the file is right there:

-rw-r--r-- 1 root root 531904 abr 3 2022 /usr/share/X11/locale/en_US.UTF-8/Compose

Shouldn't it be looking for the pt_BR file instead of en_US?

fscosta commented 1 year ago

And the directory 'qt515-core20' does not exist, btw, in '/snap/whatsie/142/qt515-core20/usr/share/X11/locale/pt_BR.UTF-8/Compose'

Krauzer94 commented 1 year ago

I'm facing the same issue, been using WhatsDesk instaed, it works fine with the accets

Mateus5187 commented 1 year ago

Galera se vocês estiverem com o sistema em inglês capaz do whatsie não reconhecer o acentos. tentem colocar o linux em português. Aqui estava enfrentando o mesmo problema. vão em idioma e região > gerenciar idiomas instalados - Alterem para português e reiniciem a maquina. Captura de tela de 2023-07-28 00-24-33 Captura de tela de 2023-07-28 00-24-51

FernandoJackMedeiros commented 1 year ago

Same problem here... I don`t want to use portuguese as the system language..

hpicelli commented 11 months ago

Mateus5187, o grande problema é usar o sistema em ptbr. (the big deal is to use the system in pt-br).