https://bugs.kde.org/show_bug.cgi?id=386611

            Bug ID: 386611
           Summary: Spell-checking broken for both correct and incorrect
                    words
           Product: kile
           Version: 2.9.91
          Platform: Archlinux Packages
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: editor
          Assignee: michel.lud...@kdemail.net
          Reporter: ree...@gmail.com
  Target Milestone: ---

Spell-checking no longer works to either underline incorrectly spelt words or
to not underline correctly spelt words. The choice of dictionary appears to be
almost entirely ignored, except for at the broadest level of choosing one
language rather than another. (And it does not work consistently even then.)

I have configured the default dictionary in both KDE settings and in Kile as
British English with -ise endings and accents. I believe this corresponds to
aspell's en_GB-ise-w_accents.multi.

The problem is not in aspell: spell-checking a sample file on the command line
with aspell works as expected. (Words are marked as incorrect if and only if
not in the dictionary.)

In Kile, however, words in the dictionary are marked as incorrect and words not
in the dictionary are not marked as incorrect. Incorrectly marked incorrect
words offer to replace the word with an identical one. That is, the contextual
menu for spelling includes the current word in the list it offers of possible
corrections. Sometimes choosing this word again causes it to be recognised as
correct. More usually, 'replacing' it still leaves it marked as incorrect. Kile
seems to particularly dislike the word 'which', but there is no consistency
here really.

In addition, words which are present in other English dictionaries, but not the
dictionary selected, are not marked as incorrect (unless they are one of the
words Kile just doesn't like and underlines regardless). 

Here's an example:

echo "flavor flavour flavoring flavouring honor honour color colour recognize
recognise" | aspell -l en_GB-ise-w_accents -a
@(#) International Ispell Version 3.1.20 (but really Aspell 0.60.6.1)
*
*
& flavoring 10 15: flavouring, flavourings, favouring, flaring, flooring,
slavering, flavouring's, flouring, florin, Florine
*
& honor 35 36: ho nor, ho-nor, hon or, hon-or, honour, honer, hone, Hon, hon,
donor, hornier, Hanoi, honey, Horne, honours, Horn, hoing, horn, horny, nor,
Ono, honers, honker, Han, Hun, hen, Hong, hoar, hoer, honk, hons, hour, hon's,
honour's, honer's
*
& color 35 49: col or, col-or, colour, Colo, Coole, cool, Cole, cooler, COL,
Col, col, collar, COLA, cloy, cola, coll, Cooley, Colon, colon, coolie, Cleo,
Clio, coil, coley, colours, coal, cowl, Cl, cl, coo, cools, cor, coolly,
colour's, cool's
*
& recognize 4 62: recognise, recogniser, recognised, recognises
*

Given the same list of words with the same dictionary, Kile marks as incorrect:
flavour flavouring honour colour and recognise. It does not mark as incorrect:
flavor flavoring honor color or recognize.

Expected: Kile should mark flavoring honor color and recognize as incorrect. It
should not mark flavor flavour flavouring honour colour or recognise as
incorrect. That is, it should mark as incorrect all and only words aspell marks
as incorrect when using the same dictionary. 

Dictionary name configured in Kile's settings: "British English (United
Kingdom) [-ise suffixes with accents]".

Relevant section of ~/.config/kilerc:

[Spelling]
backgroundCheckerEnabled=true
checkUppercase=true
checkerEnabledByDefault=true
defaultClient=
defaultLanguage=en_GB
skipRunTogether=false

Note that no dictionary is specified here. This does not seem to be recorded
anywhere for Kile specifically. However, 

grep dictionary .config/kate*

returns

.config/katemoderc:Variables=kate: current-line-color #c0c0c0;
default-dictionary en_GB-ise-w_accents; font Source Code Pro [ADBO];
indent-mode latex; replace-tabs true; replace-tabs-save true; syntax LaTeX;

Details of my environment etc. are included in a thread at
https://bbs.archlinux.org/viewtopic.php?id=231431. (I don't suppose they are
relevant here, so I won't repeat them, but give the link just in case.) 

KDE forum topic with posts by two other users having the same problem:
https://forum.kde.org/viewtopic.php?f=66&t=140513&p=376745&hilit=kile#p376745.
(The topic title suggests the problem is specific to UK English, but the
responses to the initial post make clear that the issue occurs for non-English
spell-checking as well.)

I found some previous bugs reporting similar problems. However, none of those
appeared to match the details of the issue I'm seeing. The problem I'm seeing
is not with aspell - aspell works fine - and it is not something resolved by an
earlier update of KDE/Kile. Rather, this is a problem I'm seeing for the first
time with the new QT5-based version of Kile in Plasma 5. In fact, recent
updates to Plasma appear to have exacerbated the problem, if anything.

It would be much appreciated if a response to this report could indicate
whether this is likely to get fixed shortly or not, as I need to know whether I
should switch to another editor. Spell-checking is a deal-breaker for me. I can
spell-check at the command line if a fix is coming soon, but that's a pain. So
if no fix is likely or likely soon, I should find an alternative editor.

I would be happy to provide further information, if somebody tells me what
might be helpful.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to