← Back to team overview

zim-wiki team mailing list archive

Re: Ubuntu 16.04; zim spell checking? how to?

 

Thanks for reply. This sounds so well.

Now I've added *sonett* stuff and removed python-gtkspell, which had been
taken from somewhere else but not Ubuntu 16.04.

There is no change. See attachment, message: gtkspell - Failed.

I've enabled spell checker plugin nevertheless, but activating it
leads to a crash:

   (zim:27663): Gtk-ERROR **: Char offset 61 is off the end of the line

See attachment debug from

    zim -D --standalone

Any hints?

Thanks a lot,

     Andreas





On 06/30/2016 12:59 PM, Charles Nepote wrote:
> Le 30/06/2016 12:41, Wehler Andreas a écrit :
>> Hi.
>>
>> I still cannot get zim spell checker to work under Ubuntu 16.04. Does
>> any one have a pointer? Activation of spell checker plugin just gives
>> "* gtkspell - Failed".
>>
>> Found so far:
>>
>> https://bugs.launchpad.net/ubuntu/+source/zim/+bug/1573923
>> http://packages.ubuntu.com/wily/i386/python-gtkspell/download
>>
>> dpkg -l |grep spell |cut -c 1-80
>> ii  aspell                                0.60.7~20110707-3build1
>> ii  aspell-en                             7.1-0-1.1
>> ii  dictionaries-common                   1.26.3
>> ii  enchant                               1.6.0-10.1build2
>> ii  hunspell-en-us                        20070829-6ubuntu3
>> ii  libaspell15:amd64                     0.60.7~20110707-3build1
>> ii  libenchant1c2a:amd64                  1.6.0-10.1build2
>> ii  libgtkspell0                          2.0.16-1.1ubuntu1
>> ii  libgtkspell3-3-0:amd64                3.0.7-2
>> ii  libhunspell-1.3-0:amd64               1.3.3-4ubuntu1
>> ii  python-enchant                        1.6.6-2
>> ii  python-gtkspell                       2.25.3-13
>> ii  python-gtkspellcheck                  3.0-1.1
>> ii  python3-enchant                       1.6.6-2
>> ii  python3-gtkspellcheck                 3.0-1.1
>>
> Works perfect for me in Ubuntu 16.04. Here is my config.
>
> dpkg -l |grep spell |cut -c 1-80
> ii aspell 0.60.7~20110707-
> ii aspell-en 7.1-0-1.1
> ii aspell-fr 0.50-3-7
> ii dictionaries-common 1.26.3
> ii enchant 1.6.0-10.1build2
> ii hunspell-en-au 1:5.1.0-1ubuntu2
> ii hunspell-en-ca 1:5.1.0-1ubuntu2
> ii hunspell-en-gb 1:5.1.0-1ubuntu2
> ii hunspell-en-us 20070829-6ubuntu
> ii hunspell-en-za 1:5.1.0-1ubuntu2
> ii hunspell-fr 1:5.5-1
> ii hunspell-fr-classical 1:5.5-1
> ii libaspell15:amd64 0.60.7~20110707-
> ii libenchant1c2a:amd64 1.6.0-10.1build2
> ii libgtkspell0 2.0.16-1.1ubuntu
> ii libgtkspell3-3-0:amd64 3.0.7-2
> ii libhunspell-1.3-0:amd64 1.3.3-4ubuntu1
> ii libkf5sonnet5-data 5.18.0-0ubuntu1
> ii libkf5sonnetcore5:amd64 5.18.0-0ubuntu1
> ii libkf5sonnetui5:amd64 5.18.0-0ubuntu1
> ii python-enchant 1.6.6-2
> ii python-gtkspellcheck 3.0-1.1
> ii sonnet-plugins 5.18.0-0ubuntu1
>
> Charles.
>
>
>>
>> Thanks,
>>
>>    Andreas
>>
>>
>> Ubuntu 16.04
>> zim 0.65-2
>>
>>
>>
>>
>> _______________________________________________
>> Mailing list:https://launchpad.net/~zim-wiki
>> Post to     :zim-wiki@xxxxxxxxxxxxxxxxxxx
>> Unsubscribe :https://launchpad.net/~zim-wiki
>> More help   :https://help.launchpad.net/ListHelp

Attachment: Snapshot_gtkspell-Failed.png
Description: Snapshot_gtkspell-Failed.png

INFO: This is zim 0.65
DEBUG: Python version is sys.version_info(major=2, minor=7, micro=11, releaselevel='final', serial=0)
DEBUG: Platform is posix
DEBUG: Zim revision is:
  branch: zim-trunk
  revision: 805 jaap.karssenberg@xxxxxxxxx-20151101144245-0g7s8a7qjt5xu1d0
  date: 2015-11-01 15:42:45 +0100
DEBUG: Not running from a source dir
DEBUG: Set XDG_DATA_HOME to /home/awehler/.local/share
DEBUG: Set XDG_DATA_DIRS to [<Dir: /usr/share/xubuntu>, <Dir: /usr/share/xfce4>, <Dir: /usr/local/share>, <Dir: /usr/share>, <Dir: /var/lib/snapd/desktop>, <Dir: /usr/share>]
DEBUG: Set XDG_CONFIG_HOME to /home/awehler/.config
DEBUG: Set XDG_CONFIG_DIRS to [<Dir: /etc/xdg/xdg-xubuntu>, <Dir: /usr/share/upstart/xdg>, <Dir: /etc/xdg>, <Dir: /etc/xdg>]
DEBUG: Set XDG_CACHE_HOME to /home/awehler/.cache
DEBUG: Loading config from: <zim.notebook.VirtualFile object at 0x7f9601dc84d0>
DEBUG: Loading config from: /home/awehler/info/Info_Zim/InfDashboard/notebook.zim
DEBUG: Loading config from: /home/awehler/info/Info_Zim/InfMap/notebook.zim
DEBUG: Loading config from: /home/awehler/ivm/GitBase/ZimBase/ZimBa/notebook.zim
DEBUG: Loading config from: /home/awehler/info/Info_Zim/ZimGitSlides/notebook.zim
DEBUG: Loading config from: /home/awehler/info/Info_Zim/InfScratch/notebook.zim
DEBUG: Loading config from: /home/awehler/privat/Priv_Zim/PrivMap/notebook.zim
DEBUG: Loading config from: /home/awehler/info/Info_Zim/GitLeftover/notebook.zim
DEBUG: Loading config from: /home/awehler/privat/procts_0000/p_0140/ZimBook/notebook.zim
DEBUG: Wrote /home/awehler/.config/zim/notebooks.list
INFO: Using default notebook: file:///home/awehler/info/Info_Zim/InfDashboard
DEBUG: Wrote /home/awehler/info/Info_Zim/InfDashboard/.zim/tmp
INFO: Remove file: /home/awehler/info/Info_Zim/InfDashboard/.zim/tmp
DEBUG: Loading config from: /home/awehler/info/Info_Zim/InfDashboard/notebook.zim
DEBUG: Cache dir: /home/awehler/info/Info_Zim/InfDashboard/.zim
DEBUG: Index database file: /home/awehler/info/Info_Zim/InfDashboard/.zim/index.db
DEBUG: Opening notebook: <zim.notebook.Notebook object at 0x7f9601e58590>
DEBUG: Loading config from: <ConfigFile: /home/awehler/.config/zim/preferences.conf>
DEBUG: Loading plugin: bookmarksbar
DEBUG: Loading plugin: calendar
DEBUG: Loading plugin: insertsymbol
DEBUG: Loading plugin: linesorter
DEBUG: Loading plugin: printtobrowser
DEBUG: Loading plugin: sourceview
DEBUG: Loading plugin: spell
DEBUG: Loading plugin: tableofcontents
DEBUG: Loading plugin: tags
DEBUG: Loading plugin: tasklist
DEBUG: Loading plugin: versioncontrol
INFO: No VCS detected
DEBUG: Gtk version is (2, 24, 30)
DEBUG: Pygtk version is (2, 24, 0)
DEBUG: Loading config from: <ConfigFile: /home/awehler/.config/zim/style.conf>
DEBUG: Loading config from: <ConfigFile: /home/awehler/.config/zim/customtools/openterminal-usercreated.desktop>
DEBUG: Loading config from: <ConfigFile: /home/awehler/.config/zim/customtools/openterminalnbook-usercreated.desktop>
DEBUG: Loading config from: /home/awehler/info/Info_Zim/InfDashboard/.zim/state.conf
INFO: Starting async index update
DEBUG: Action: toggle_show_bookmarks(True)
DEBUG: Registered object code
DEBUG: Action: set_pathbar_recent
DEBUG: Accelmap: /home/awehler/.config/zim/accelmap
INFO: Open page: <FileStorePage: 30.Zim:20.UseCases:Gtd> (<HistoryPath: 30.Zim:20.UseCases:Gtd>)
INFO: Index update done
DEBUG: Action: show_preferences
DEBUG: Loading description for plugin: arithmetic
DEBUG: Opening dialog "Preferences - Zim"
DEBUG: Wrote /home/awehler/.config/zim/preferences.conf
DEBUG: Unloading plugin spell
DEBUG: Loading description for plugin: spell
DEBUG: Loading plugin: spell
DEBUG: Wrote /home/awehler/.config/zim/preferences.conf
DEBUG: Loading description for plugin: spell
DEBUG: Wrote /home/awehler/.config/zim/preferences.conf
DEBUG: Unloading plugin spell
DEBUG: Loading description for plugin: spell
DEBUG: Loading plugin: spell
DEBUG: Wrote /home/awehler/.config/zim/preferences.conf
DEBUG: Loading description for plugin: spell
DEBUG: Dialog response OK
DEBUG: Wrote /home/awehler/.config/zim/style.conf
DEBUG: Wrote /home/awehler/.config/zim/preferences.conf
DEBUG: Closed dialog "Preferences"
DEBUG: Action: toggle_spellcheck(True)
DEBUG: Spellcheck language: en_US
DEBUG: requesting name for code "de_AT"
DEBUG: requesting name for code "en_US"
DEBUG: requesting name for code "de_AT_frami"
DEBUG: requesting name for code "en"
DEBUG: requesting name for code "en_CA"
DEBUG: requesting name for code "en_GB"
/usr/lib/python2.7/dist-packages/gtkspellcheck/spellcheck.py:548: GtkWarning: /build/gtk+2.0-KsZKkB/gtk+2.0-2.24.30/gtk/gtktextbtree.c:4096: char offset off the end of the line
  end = self._buffer.get_iter_at_line_offset(start.get_line(), match.end())

(zim:27663): Gtk-ERROR **: Char offset 61 is off the end of the line

Follow ups

References