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 | |
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')
-rw-r--r-- | pith/charconv/makefile.wnt | 2 | ||||
-rw-r--r-- | pith/conf.c | 15 | ||||
-rw-r--r-- | pith/conf.h | 4 | ||||
-rw-r--r-- | pith/conftype.h | 3 | ||||
-rw-r--r-- | pith/pine.hlp | 30 |
5 files changed, 53 insertions, 1 deletions
diff --git a/pith/charconv/makefile.wnt b/pith/charconv/makefile.wnt index 6700ec3b..a692150c 100644 --- a/pith/charconv/makefile.wnt +++ b/pith/charconv/makefile.wnt @@ -56,3 +56,5 @@ libpithcc.lib: $(OFILES) clean: $(RM) *.lib $(RM) *.obj + $(RM) *.pdb + 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 : diff --git a/pith/conf.h b/pith/conf.h index 4584cd98..94a94310 100644 --- a/pith/conf.h +++ b/pith/conf.h @@ -161,6 +161,10 @@ #define GLO_EDITOR vars[V_EDITOR].global_val.l #define VAR_SPELLER vars[V_SPELLER].current_val.p #define GLO_SPELLER vars[V_SPELLER].global_val.p +#ifdef _WINDOWS +#define VAR_DICTIONARY vars[V_DICTIONARY].current_val.l +#define GLO_DICTIONARY vars[V_DICTIONARY].global_val.l +#endif /* _WINDOWS */ #define VAR_FILLCOL vars[V_FILLCOL].current_val.p #define GLO_FILLCOL vars[V_FILLCOL].global_val.p #define VAR_DEADLETS vars[V_DEADLETS].current_val.p diff --git a/pith/conftype.h b/pith/conftype.h index b7ec5eb0..6d077785 100644 --- a/pith/conftype.h +++ b/pith/conftype.h @@ -79,6 +79,9 @@ typedef enum { V_PERSONAL_NAME = 0 , V_UNK_CHAR_SET , V_EDITOR , V_SPELLER +#ifdef _WINDOWS + , V_DICTIONARY +#endif /* _WINDOWS */ , V_FILLCOL , V_REPLY_STRING , V_REPLY_INTRO diff --git a/pith/pine.hlp b/pith/pine.hlp index d1544960..454317e0 100644 --- a/pith/pine.hlp +++ b/pith/pine.hlp @@ -140,7 +140,7 @@ with help text for the config screen and the composer that didn't have any reasonable place to be called from. Dummy change to get revision in pine.hlp ============= h_revision ================= -Alpine Commit 109 2015-11-07 18:56:21 +Alpine Commit 110 2015-11-15 17:54:38 ============= h_news ================= <HTML> <HEAD> @@ -179,6 +179,12 @@ addresses bugs found in previous releases and has a few additions as well. <P> Additions include: <UL> + <LI> 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. + <LI> Ignore message from smtp server after a successful authentication challenge. @@ -4045,6 +4051,7 @@ There are also additional details on <li><a href="h_config_smtp_server">OPTION: <!--#echo var="VAR_smtp-server"--></a> <li><a href="h_config_sort_key">OPTION: <!--#echo var="VAR_sort-key"--></a> <li><a href="h_config_speller">OPTION: <!--#echo var="VAR_speller"--></a> +<li><a href="h_config_aspell_dictionary">OPTION: <!--#echo var="VAR_aspell-dictionary-list"--></a> <li><a href="h_config_sshcmd">OPTION: <!--#echo var="VAR_ssh-command"--></a> <li><a href="h_config_ssh_open_timeo">OPTION: <!--#echo var="VAR_ssh-open-timeout"--></a> <li><a href="h_config_sshpath">OPTION: <!--#echo var="VAR_ssh-path"--></a> @@ -23424,6 +23431,27 @@ That won't work because spell works in a different way. <End of help on this topic> </BODY> </HTML> +====== h_config_aspell_dictionary ===== +<HTML> +<HEAD> +<TITLE>OPTION: <!--#echo var="VAR_aspell-dictionary-list"--></TITLE> +</HEAD> +<BODY> +<H1>OPTION: <!--#echo var="VAR_aspell-dictionary-list"--></H1> + +PC Alpine only. +<P> +This option specifies a list of dictionaries you will use with +aspell. A sample entry is "en_US" for american english, or +"en_GB" for brittish english. + +<P> +<UL> +<LI><A HREF="h_finding_help">Finding more information and requesting help</A> +</UL><P> +<End of help on this topic> +</BODY> +</HTML> ====== h_config_display_filters ===== <HTML> <HEAD> |