spell check not working

TXS - Help
2012-07-10
2012-10-17
  • Nobody/Anonymous

    Hi,

    My TeXstudio (2.3 svn 2471) is not performing any spell check at all. The
    correct directory (of dictionaries) is selected under Options>General, and all
    inline checking options are selected under Options>Editor (wave underline
    option is checked for spelling mistake).

    How can I fix this?

     
  • Tim Hoffmann

    Tim Hoffmann - 2012-07-11
    • are the available languages displayed in the Config -> General -> Default Language combo box?
    • are the languages displayed in the status bar?
     
  • Nobody/Anonymous

    yes to both.
    I have tried changing the language- that had no effect (nonsense words not
    marked).

     
  • Tim Hoffmann

    Tim Hoffmann - 2012-07-17

    But all other syntax highlighting works correctly?
    Does the Tools -> Check Spelling... dialog find the errors?

     
  • Nobody/Anonymous

    I just installed the latest svn. Other highlighting now works (word
    repetitions), but not spell checking.

    Clicking on the Check Spelling option under Tools brings up the menu, but the
    window says "no more misspelled words" even when I have entered several.

     
  • Nobody/Anonymous

    I am having the same issue.

     
  • Tim Hoffmann

    Tim Hoffmann - 2012-07-29

    Does it happen with default settings? To restore default, close TXS,
    temporarily rename %appdata%\texstudio.ini and start TXS again.
    Restoring your settings: Close, rename back to texstudio.ini (TXS will have
    created a new one that you shoud replace with your existing one)
    Do you use the special comment: % !TeX spellcheck = ...

     
  • Nitesh

    Nitesh - 2012-07-29

    Hi, I am seeing the same problem.
    Restoring the default as indicated by t_hoffmann did not change anything. (the
    .ini file was located under
    ..\appdata\roaming\texstudio\ ).
    I am not sure how or where to use the special comment: % !TeX spellcheck =

     
  • Nitesh

    Nitesh - 2012-07-29

    I must clarify that restoring the default did restore all the defaults, but
    did nothing about the spell check problem.

     
  • Tim Hoffmann

    Tim Hoffmann - 2012-07-29

    What version of TXS are you using? If I understood correctly it's already
    failing with the default settings. Currently I cannot reproduce the problem.
    Can you provide a sample file?

    % !TeX spellcheck = ... can be placed anywhere in the file. It tells TXS to
    use the specified language for spellchecking (e.g. en_GB) instead of the
    default one. Currently the position in the file does not matter. However it is
    recommanded that it's put before any text to be checked, because later
    versions may change this setting from a global file-based one to a local one
    only applying to the text following the comment.
    Just wanted to make sure, the present bug is not related to this feature.

     
  • Tim Hoffmann

    Tim Hoffmann - 2012-07-29

    Clarification: Just wanted to make sure, you are not using the % !TeX
    spellcheck feature. So we can exclude that the bug is related to it.

     
  • Nitesh

    Nitesh - 2012-07-29

    I am using v2.4

    Typing the following text (with en_US also selected as the default dictionary
    in the configure menu) did not result in any errors highlighted:
    "% !TeX spellcheck = en_US

    This is a test of the englash languige dictonaru."

    Selecting "Check Spelling" from the Tools menu did not find any errors either.

     
  • Tim Hoffmann

    Tim Hoffmann - 2012-07-29
    1. What is the dictionary path set to? (Configure -> General -> Dictionary Path)
    2. Where did you get the en_US dictionary from? I think it's currently not supplied with TXS.
    3. Does it also happen with en_GB?

    Note: You don't have to use the % !TeX ... comments. It's completely optional
    and just for your convenience (so you don't have to set up the language each
    time when loading the file). Please leave them out for further tests, if the
    problem exists also without them.

     
  • Nitesh

    Nitesh - 2012-07-30
    1. The path is set to "C:/Program Files (x86)/TeXstudio/dictionaries"
    2. The en_US dictionary (and other dictionaries in the folder) came with TeXStudio (as far as I can remember).
    3. Spell check works when set to en_GB !
     
  • Tim Hoffmann

    Tim Hoffmann - 2012-07-30

    The en_US dictionary (and other dictionaries in the folder) came with
    TeXStudio (as far as I can remember).
    Hm. At least not in the latest SVN and the latest release. There's only en_GB,
    fr_FR and de_DE. Though, I did not package and check versions in between. If
    one version installed it, it will remain.

    Anyway, can you please post the en_US dictionary somewhere (external file
    hoster or in a bug report), so that I can test with that? It consists of two
    files: en_US.dic and en_US.aff

     
  • Nitesh

    Nitesh - 2012-07-30

    I just noticed in the dictionary folder that each language has two files .aff
    and
    .dic, except for en_US which does not have the .aff file. I am guessing
    this has something to do with the problem.

    I got the .aff (and .dic) file from
    here and en_US
    spelling now works!

    I would also like to use an additional custom dictionary
    (chemistry.dic) which does not have its own .aff
    file. Can I simply make a copy of en_US/en_GB and rename that as chemistry.aff
    to make it work? Or should I add the contents of the custom dictionary to one
    of the existing dictionaries?

     
  • Nobody/Anonymous

    There we are!

    You can use a copy of the other aff file. It contains prefixes and suffixes,
    that allows to recognize different flections of a word. However I'm not sure,
    if we correctly recognize dictionaries that are not named after a language.
    Pease report, if you are having problems.

     
  • Nitesh

    Nitesh - 2012-07-30

    I created a new .dic file with the combined contents of en_US.dic and
    chemistry.dic and named it en_chem.dic. Next I made a copy of the en_US.aff
    file which I named en_chem.aff.

    I am not sure if there is a better way to do this, bit it seems to be working
    for now.

    Thanks t_hoffmann.

     
  • Nobody/Anonymous

    Thank you all!
    Spell check now works !

     
  • Nobody/Anonymous

    Hi all.
    i've a problem: i don't see highlights when words are wrong. Instead, if i run
    the spell checker (Moving the cursor at the top of the doc, otherwise does not
    work) it founds misspelled/incorrect words.
    any idea?

    ciao

     
  • Benito van der Zander

    Are you using a mac?

    Do you have the 2.4 version of texstudio? (check in the about dialog to
    be sure)

    Such a bug (3555447) should have been fixed some time ago...

    On 09/21/2012 12:45 PM, SourceForge.net wrote:

     
  • Nobody/Anonymous

    mac. v 2.3. going to update it. thx

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks