Allow additional dictionaries for the spell checker on OS X
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| Inkscape |
Undecided
|
Michael Wybrow |
Bug Description
As reported by ~suv on the mailing list:
- spellcheck: none of this years development builds for osx had the
spell checker enabled. On my vanilla OS X 10.5.7 invoking the
spellchecker crashes Inkscape when closing the unfunctional dialog. In
the Spellcheck preferences panel I cannot select any languages except
<none>, console message says
** (inkscape-
This crash happens independant of any $LANG settings in bin/inkscape. I
need some time (or hints) to find out what's missing and how to (if
possible) configure spellcheck outside of inkscape.
Changed in inkscape: | |
assignee: | nobody → Michael Wybrow (mjwybrow) |
status: | New → In Progress |
Michael Wybrow (mjwybrow) wrote : | #1 |
Michael Wybrow (mjwybrow) wrote : | #2 |
The Inkscape-
Changed in inkscape: | |
status: | In Progress → Fix Released |
su_v (suv-lp) wrote : | #3 |
Wow, that aspell folder doubles the size of the packages!
LeWitt:Resources suv$ du -sch share/*
203M share/aspell
3.5M share/mime
206M total
LeWitt:Resources suv$
su_v (suv-lp) wrote : | #4 |
- Default 'en_US' dictionary spell-checks correct, no more crashes - thanks for fixing it :)
nitpicking: Language selection does not work (only option is 'None')
- Dictionary language can't be changed in 'Preferences > Spellcheck', changing the interface language in the preferences does not influence the dictionary language options.
- setting 'export LANG="de_CH.UTF-8"' explicitly in 'Contents/
- adding the option "lang de_CH;" or "lang german;"to $ASPELL_CONF in 'Contents/
possibly related console msgs:
07.07.09 10:32:21 LeWitt [0x0-0x5cc5cc]
07.07.09 10:32:21 LeWitt [0x0-0x5cc5cc]
these seem to happen when mousing over/clicking the widget to select a dictionary language in the preferences dialog and when trying to select a different language in the spellcheck dialog.
su_v (suv-lp) wrote : | #5 |
Mac OS X 10.5.8 (9L30)
XQuartz 2.3.3.2 (xorg-server 1.4.2-apple42)
Inkscape 0.46+devel r22011, built Aug 7 2009
compiled with these spell check packages installed:
LeWitt:svn suv$ port installed | grep spell
aspell @0.60.6_2+macosx (active)
aspell-dict-de @20030222_0 (active)
aspell-dict-en @6.0_0 (active)
gtkspell2 @2.0.15_0 (active)
hunspell @1.2.8_0 (active)
LeWitt:svn suv$
enables the a additional anguage selection in 'Preferences > Spellcheck' and subsequently 'Text > Check Spelling…'
I took up the hint about 'gtkspell2' from David Evans portfile for 'inkscape-devel'.
su_v (suv-lp) wrote : | #6 |
s/a additional anguage/additional language/
su_v (suv-lp) wrote : | #7 |
Reopening because build environment needs to be changed to make Inkscapes spell checker work with additional dictionaries.
Changed in inkscape: | |
status: | Fix Released → Confirmed |
su_v (suv-lp) wrote : | #8 |
seems like with ImageMagick (bug #390024)
- either not all resources are copied to the app bundle
- or some environment variable is still missing in 'bin/inkscape'
- or both?
test: rename/move $(macport-prefix), restart Inkscape
result: pref spellcheck language selection/select dictionary language are no longer available.
I don't know if it is connected to aspell or gtkspell2, but it explains why you don't see the bug as long as you have MacPorts installed with the default prefix (or with the same as when building the app).
su_v (suv-lp) wrote : | #9 |
1) The spell checker dialog itself works (including the popup list with selected dictionaries) once the preferences have been set for all 3 language choices - independent whether $(macport-
2) In the Preferences dialog for Spellcheck however the popup lists for language choices (main, lang2, lang3) are not filled with available dictionaries if the aspell directories in $(maports-
As far as I can see having gtkspell2 installed (and included by configure) doesn't make a difference. Sorry for the misleading assumption in comment 5.
summary: |
- Spell checker crashes the OS X package + Allow additional dictionaries for the spell checker on OS X |
Fix commited in rev21749:
- Fix bug #396322: "Spell checker crashes the OS X package"
- Include the aspell dictionary files in the app bundle.
- Show an error if at least the en dictionary files are not available.
- Replace the GtkOptionMenu (for selecting which dictionary to add
extra words to) with a GtkComboBox since this one behaves correctly
when it is insensitive. GtkOptionMenu is deprecated and the menu
would appear when clicking on the insensitive widget and then could
not be closed.