Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

The autocomplete ("Complete Selection") feature Ctrl-K (or F2 on Windows) works fine for functions and code input.

Is there a way to enhance it for text input?

Today’s standard (see e.g. OpenOffice etc.) is to autocomplete based on words already occuring in the text.

For text Mathematica will just display words from a (very simple) dictionary. If I type e.g. "Grav" it will show "Grave", "Gravy" etc. It does not even seem to know "Gravity" or "Gravitation" (despite these being common words and despite occurences in my text)

share|improve this question
    
have you seen this: mathematica.stackexchange.com/a/6842/169 and the reference therein? I think it is the closest if you want full control over the auto-completion mechanism. That stuff is undocumented, unsupported, and really low level. And I can't see whether it would be possible to really do what you want but suspect it might be... –  Albert Retey Oct 30 '12 at 17:03
    
I have just played around with that and now think that the autocompletion for text unlike that for input doesn't even go through the kernel, which probably leaves you with what Verbeia has suggested... –  Albert Retey Oct 31 '12 at 11:22
add comment

1 Answer 1

Actually, Mathematica does know these words, but requires a bit of prodding to suggest them.

Step 1 Step 2 Step 3

You can add additional word suggestions via the Options Inspector, but I don't think there is a general way to customize the ordering of the words that appear in the suggestions popup menu.

enter image description here

share|improve this answer
1  
Thx for the hint. So we would rather have to take away words than add new ones. The sorting is really strange, as you show in your screenshot. –  NoEscape Oct 16 '12 at 13:01
    
Adding suggestions (which then appear first in the list) works sometimes, but only after fiddling around with other options (Language Category), restarting? I cannot reproduce it. Anyway it is not an option to add a myriad of suggestions by hand. –  NoEscape Oct 16 '12 at 13:25
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.