diff options
author | Eduardo Chappa <chappa@washington.edu> | 2015-11-15 17:56:28 -0700 |
---|---|---|
committer | Eduardo Chappa <chappa@washington.edu> | 2015-11-15 17:56:28 -0700 |
commit | b3ad27e8991fdbd64fd4db58c0c89538b5f02959 (patch) | |
tree | db96448acc54c9893d17970c4dfffbcc95279eec /pith/conf.c | |
parent | abf5b4cfbff3150ad3340679b80dc1ff5adf6298 (diff) | |
download | alpine-b3ad27e8991fdbd64fd4db58c0c89538b5f02959.tar.xz |
* PC-Alpine: New configuration option "Aspell Dictionaries" allows a
user to choose the dictionary used to spell, in case the user
communicates in more than one language. Examples of values for the
variable are "en_US" or "de_DE", etc. Only the first 10 dictionaries
are offered.
Diffstat (limited to 'pith/conf.c')
-rw-r--r-- | pith/conf.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/pith/conf.c b/pith/conf.c index 66dc6dbe..d7c055eb 100644 --- a/pith/conf.c +++ b/pith/conf.c @@ -224,6 +224,10 @@ CONF_TXT_T cf_text_editor[] = "Specifies the program invoked by ^_ in the Compo CONF_TXT_T cf_text_speller[] = "Specifies the program invoked by ^T in the Composer."; +#ifdef _WINDOWS +CONF_TXT_T cf_text_speller_dictionary[] = "Specifies the list of dictionaries used by Aspell."; +#endif /* _WINDOWS */ + CONF_TXT_T cf_text_deadlets[] = "Specifies the number of dead letter files to keep when canceling."; CONF_TXT_T cf_text_fillcol[] = "Specifies the column of the screen where the composer should wrap."; @@ -560,6 +564,10 @@ static struct variable variables[] = { NULL, cf_text_editor}, {"speller", 0, 1, 0, 1, 1, 0, 0, 0, 0, 1, 0, NULL, cf_text_speller}, +#ifdef _WINDOWS +{"aspell-dictionary-list", 0, 1, 0, 1, 1, 1, 0, 0, 0, 1, 0, + "Aspell Dictionaries", cf_text_speller_dictionary}, +#endif /* _WINDOWS */ {"composer-wrap-column", 0, 1, 0, 1, 1, 0, 0, 0, 0, 1, 0, NULL, cf_text_fillcol}, {"reply-indent-string", 0, 1, 0, 1, 1, 0, 0, 0, 0, 0, 0, @@ -2005,6 +2013,9 @@ init_vars(struct pine *ps, void (*cmds_f) (struct pine *, char **)) set_current_val(&vars[V_FORM_FOLDER], TRUE, TRUE); set_current_val(&vars[V_EDITOR], TRUE, TRUE); set_current_val(&vars[V_SPELLER], TRUE, TRUE); +#ifdef _WINDOWS + set_current_val(&vars[V_DICTIONARY], TRUE, TRUE); +#endif /* _WINDOWS */ set_current_val(&vars[V_IMAGE_VIEWER], TRUE, TRUE); set_current_val(&vars[V_BROWSER], TRUE, TRUE); set_current_val(&vars[V_SMTP_SERVER], TRUE, TRUE); @@ -7689,6 +7700,10 @@ config_help(int var, int feature) return(h_config_editor); case V_SPELLER : return(h_config_speller); +#ifdef _WINDOWS + case V_DICTIONARY : + return(h_config_aspell_dictionary); +#endif /* _WINDOWS */ case V_DISPLAY_FILTERS : return(h_config_display_filters); case V_SEND_FILTER : |