Page 1 of 1

Accented characters don't work on Wine (Linux)

Posted: Fri Aug 19, 2016 2:20 pm
by aalonso
Hi there,
I've installed Scrivener on Linux using Wine / Crossover. It works apparently fine, except for one thing:
** I can't use accented characters (like á é í ó ú ã õ ê).
I can type only 1 accented character (let's say á), then, when I try to type other characters (like é, ó etc.), Scrivener keeps putting the first accented character (á), even if I'm typing accent+e, accent+o etc.
Any tips on how to fix that?
Thanks,
AA.

Re: Accented characters don't work on Wine (Linux)

Posted: Fri Aug 19, 2016 11:03 pm
by Linus
Only because of your post I realised that I had the same problem. I write in German, so there are only rare occasions where I have to use accents.

This link helped me:
http://askubuntu.com/questions/360696/keyboard-not-working-100-after-ubuntu-13-10-upgrade

In my case I set Keyboard Input Method to IBUS, restarted and everything was fine, just like this: áéíóúÁÉÍÓÚ àèìòùÀÈÌÒÙ.

I am using Linux Mint but any distro should have a similar dialogue in System Settings.

Hope that helps!

Re: Accented characters don't work on Wine (Linux)

Posted: Sat Aug 20, 2016 5:25 am
by aalonso
Linus wrote:Only because of your post I realised that I had the same problem. I write in German, so there are only rare occasions where I have to use accents.

This link helped me:
http://askubuntu.com/questions/360696/keyboard-not-working-100-after-ubuntu-13-10-upgrade

In my case I set Keyboard Input Method to IBUS, restarted and everything was fine, just like this: áéíóúÁÉÍÓÚ àèìòùÀÈÌÒÙ.

I am using Linux Mint but any distro should have a similar dialogue in System Settings.

Hope that helps!


Thanks for your message. I tried the ibus system and still get the same behavior...
I'll try to dig a little bit more. Too bad that they dropped the Linux version...
Thanks once more,
AA

Re: Accented characters don't work on Wine (Linux)

Posted: Wed Sep 21, 2016 9:55 pm
by caiohungria
Open terminal and type: ibus-setup
Switch to Advanced tab and uncheck "Global input method settings".
Restart system, open Scrivener and have fun.

Re: Accented characters don't work on Wine (Linux)

Posted: Sat Nov 12, 2016 8:36 pm
by Sidney76
Hello Linus,
I am considering getting Scrivener. I write a lot in both German and English. Does Scrivener have its own German language setting (the way most word processors now do)?
I use Windows 7 as an operating system.
Thank you.
Sidney

Re: Accented characters don't work on Wine (Linux)

Posted: Sun Nov 13, 2016 8:58 am
by Linus
Sure, under Tools>Options>Corrections you can select - or, if not yet available, first download - a German dictionary (see manual B.6 Corrections). However, you cannot have a multi-language project. So the dictionary is applied evenly to all documents in a project. Therefore also, unlike in Word, you cannot have e.g. parts of a document use one language and other parts another language. So, if you have a project with German and English texts in it, you would have to switch spelling settings back and forth to check documents or document parts in different languages.

Re: Accented characters don't work on Wine (Linux)

Posted: Mon Nov 14, 2016 3:46 am
by Sidney76
Great. Thanks.

Re: Accented characters don't work on Wine (Linux)

Posted: Wed Feb 27, 2019 7:27 am
by gijsh
I use Scrivener for Windows under wine (from winehq, OS=Linux Mint 18.3). I experienced the same dead-key issues mentioned above. After installing and activating (in startup applications) ibus Scrivener worked OK: é,á etc.
....
And then, after a while, only the first accented char I use in a session showed up, e.g. é when I type á afterwards. No idea how this came about.

Re: Accented characters don't work on Wine (Linux)

Posted: Fri Nov 15, 2019 5:53 pm
by clombard
I have the same problem with accented characters. Using Scrivener under Wine with ArchLinux. I've tried ibus, but it doesn't solve the problem.

Has anyone been able to solve it?

Currently I am able to reset what character appears by typing one with the opposite case, e.g. if it's currently ê, type a capital letter with an accent, then type the one you actually want.

Re: Accented characters don't work on Wine (Linux)

Posted: Mon Dec 16, 2019 4:47 pm
by andrewbond
I use Mint (Linux Mint 19.2 Cinnamon) and run Scrivener under Crossover. I have loaded multiple "keyboards" (System settings | Keyboards) and do not have any problems.

It's not IBUS, but it works.

Re: Accented characters don't work on Wine (Linux)

Posted: Mon Jan 06, 2020 12:26 pm
by Benjamin Rittgers
I usually use the Windows version under wine and don't have this issue. But I enter accented characters with the right alt key. Will that work or do you have to use compose?

Re: Accented characters don't work on Wine (Linux)

Posted: Mon Jan 06, 2020 12:51 pm
by clombard
Hi Benjamin,

My compose key is the right Alt key :). Could you expand on your setup?

Thanks
Cecilia

Re: Accented characters don't work on Wine (Linux)

Posted: Thu Feb 27, 2020 9:37 am
by Lambekin
I just solved this on my system, so I thought I'd post the solution here.

Ibus was installed on my computer using Kubuntu 19.10, but I still ran into the problem where Scrivener would produce the same character every time I tried typing an accent. I.e., if I first typed é, every accented character that I would subsequently try to type would come out as é.

A workaround that I used, and which I have not seen anyone else post about, was to type an accented capital in upper case if the first one was in lower case. This would then allow typing a new accented lower case character. For instance, after typing é, typing Ú would allow me to type a new accented lower case character like ï. This procedure would have to be repeated every time I needed a new accented character, though.

Earlier today I decided to have another look at how my keyboard was configured. Using KDE, I opened the 'Input Method' window which, after clicking OK, allowed me to select the 'active intelligent input bus':

Image

Apparently, 'ibus' had not been fully activated. Another OK, and a new 'ibus preferences' applet appeared in my system tray - and typing accented characters in Scrivener worked perfectly. :-)

Re: Accented characters don't work on Wine (Linux)

Posted: Sat Feb 29, 2020 6:50 pm
by clombard
The solution Lambekin gave doesn't work for me,unfortunately, because I'm on archlinux, which doesn't have im-config. But the fact that it could still be an activate/setup problem had me digging again.

This time when I tried running Scrivener from the command line as a test, the diacritics suddenly worked like they should. I know I tried this before (and ctrl-r confirms it) and it didn't work. Yes, there was a big Arhlinux update in the meantime. Running Scrivener from the launcher in xfce still had the diacritics problem, however

Long story short: adding XMODIFIERS="@im=ibus" to the command of the launcher did the trick. The command is now:
env XMODIFIERS="@im=ibus" WINEPREFIX="/home/cecilia/.wine" wine C:\\windows\\command\\start.exe /Unix '/home/cecilia/.wine/drive_c/Program Files (x86)/Scrivener/Scrivener.exe'

Question now is, why the difference between the launcher and the command line? Do they use different environment variables?

Re: Accented characters don't work on Wine (Linux)

Posted: Sat Feb 29, 2020 7:19 pm
by devinganger
clombard wrote:Question now is, why the difference between the launcher and the command line? Do they use different environment variables?


Yes, typically they do not share the same set of environment variables. Many launchers do not invoke your shell environment and don't get the full setup of your environment variables, so you have to explicitly declare the appropriate ones.