Spell Check

ur
urasni
Posts: 5
Joined: Thu Oct 31, 2013 4:27 pm
Platform: Linux

Fri Nov 01, 2013 3:30 pm Post

Addendum: It appears that when Scrivener is launched from the unity launchers bar, it ignores the aspell prefix calls and reverts back to the 64bit calls. I've been unable to coax it into working from there, so have just reverted to calling it from command line where this problem doesn't occur. If anyone knows why this happens I'd be delighted to know!

ed
edf
Posts: 99
Joined: Thu Oct 19, 2006 7:45 pm
Platform: Linux
Location: New York, NY

Sat Nov 02, 2013 4:58 pm Post

It looks like the .desktop file attempts to execute Scrivener before running scrivener.sh:

Code: Select all

bash$ cat /usr/share/applications/Scrivener.desktop[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Name=Scrivener
GenericName=Scrivener writing software
Comment=Scrivener writing software
TryExec=/usr/share/scrivener/bin/Scrivener
Exec=/usr/share/scrivener/bin/scrivener.sh %U
Path=/usr/share/scrivener/bin
Icon=Scrivener
Terminal=false
Categories=Office


You can try commenting out the TryExec line in order to force it to use the shell script. Also, ensure that the shell script in the Exec line matches the one you modified with the AC_CONF directive (it sounds like it is, but best double-check).

ur
urasni
Posts: 5
Joined: Thu Oct 31, 2013 4:27 pm
Platform: Linux

Tue Nov 05, 2013 5:20 pm Post

Yeah - first thing I tried was to remove the TryExec bit, but no joy. It's not a major problem as I've just installed it as an icon on the desktop rather than the unity launcher bar and it runs fine from there.

ed
edf
Posts: 99
Joined: Thu Oct 19, 2006 7:45 pm
Platform: Linux
Location: New York, NY

Tue Nov 05, 2013 8:32 pm Post

It could be an environment problem. Try creating a shell script in your home dir which sources your .bashrc, and update the Scrivener .desktop file to use that:

Code: Select all

#!/bin/sh

. ~/.bashrc
/usr/share/scrivener/bin/scrivener.sh $*


Also, you might want to put a line in the shell script to touch a file in /tmp (e.g. 'touch /tmp/scrivener_called.txt') in order to verify that Unity is in fact invoking the shell script (and not just failing silently for whatever reason).

ur
urasni
Posts: 5
Joined: Thu Oct 31, 2013 4:27 pm
Platform: Linux

Wed Nov 06, 2013 9:57 pm Post

Hmm - good thinking. I'll give it a go when I get a chance to play around a bit. Thanks for the ideas. :)

Ol
OldLink
Posts: 2
Joined: Wed Nov 13, 2013 5:13 pm
Platform: Windows

Tue Nov 19, 2013 10:19 pm Post

Got the spell check running, thanks for that, but I can't get the French one :(

I download it without error message, quit Scrivener then restart it, but still no French in the dictionnaries, only English ones.

Somebody has an idea ?

Thanks.

Ol
OldLink
Posts: 2
Joined: Wed Nov 13, 2013 5:13 pm
Platform: Windows

Tue Nov 19, 2013 10:27 pm Post

Ok, just solved my problem myself :

I downloaded the French dictionnary from Ubuntu, not from Scrivener :)

Thank you guys for the tip to make spell check working :)

User avatar
DustyLedge
Posts: 9
Joined: Sun Dec 02, 2012 1:01 pm
Platform: Linux + Windows
Location: England

Sun Jan 12, 2014 7:01 pm Post

Just want to say thanks for the libaspell-dev tip.

Installed libaspell-dev from the Linux Mint Software Manager.

Closed Scrivener and restarted it.

Bingo! I now have a working spell checker. :D
--Thomas (DustyLedge)

Ni
Nick222
Posts: 3
Joined: Tue Jan 21, 2014 4:25 pm
Platform: Linux

Tue Jan 21, 2014 4:28 pm Post

I cannot change SpellChecking Language on Russian under Xubuntu 13.10-64.

What must I do to switch Russian spellchecking on?

ts
ts.salvador
Posts: 9
Joined: Sun Feb 16, 2014 11:05 pm
Platform: Linux

Sun Feb 23, 2014 8:21 pm Post

Oddly enough, I somehow managed to get spellcheck (en) to work on Ubuntu 13.10 64 bits by accident. Following the steps only got me as far as having it find the right dictionaries, but the actual spell check did not work. Now, if I run the actual executable (without the script), it just works.

Attempting to reproduce this on another machine (by copying over the tarball directory to an user, same path, same version, same permissions), but so far, no luck. Finds the dict and that's it. Odd to say the least.

User avatar
DustyLedge
Posts: 9
Joined: Sun Dec 02, 2012 1:01 pm
Platform: Linux + Windows
Location: England

Mon Mar 03, 2014 10:09 am Post

Nick222 wrote:I cannot change SpellChecking Language on Russian under Xubuntu 13.10-64.

What must I do to switch Russian spellchecking on?


I'm not running Ubuntu, but when I list the Aspell modules available in my Linux distro I see one for each language. In my case I have aspell-en. There's one for Russian, aspell-ru. I'm guessing you need that, plus, of course, Aspell itself, if you don't already have it installed :) Also need libaspell-dev.
--Thomas (DustyLedge)

Ni
Nick222
Posts: 3
Joined: Tue Jan 21, 2014 4:25 pm
Platform: Linux

Mon Mar 03, 2014 10:58 am Post

DustyLedge wrote:aspell-ru ... Aspell itself ... libaspell-dev

All installed few years ago...