Re: Enabling a 2nd aspell language in compose
Alexander Skwar wrote: So sprach Mr. Wade am Sun, May 20, 2001 at 06:47:44PM -0400: You shouldn't need to do that. Mutt should call whatever you specify by the $ispell variable with the -x switch and the temporary file name on the command line for you. Yeah, and that works very fine, indeed. I've set ispell=aspell -d deutsch -x -c in my muttrc. But, I'd also like to check english texts for spleing errors. So I'd like to have a key which would invoke aspell -d american -x -c How would I go about it? Have you tried something like the following? macro compose i 'enter-commandset ispell=aspell -d deutsch -c \ enterispell' 'Deutsch' macro compose I 'enter-commandset ispell=aspell -d american -c \ enterispell' 'American' Note that the -x switch ought not need to be specified. Mutt alreay includes it on the command line when it calls whatever you specified by the $ispell variable. Good luck! -- Mr. Wade -- Linux: The Choice of the GNU Generation
Re: Enabling a 2nd aspell language in compose
Hello Alexander! On Sun, 20 May 2001, Alexander Skwar wrote: In addition to the predefined 'i' keybinding for invoking ispell with the default language, I'd like to add a 'I' keybinding, which should invoke aspell with another language (american). How would I do this? I tried: macro compose I | aspell -d american -x -c %s\n Maybe this will also work for you: macro compose i :set ispell=ispell -T latin1 -p $HOME/.ispell_english macro compose I :set ispell=/path_to_your_aspell\n aspell-american bye - Wilhelm -- ._. Wilhelm Wienemann [EMAIL PROTECTED] / _,\ | (_./ Debian GNU/Linux Version 2.2 Potato \, To learn more visit = http://www.debian.org/
Re: Enabling a 2nd aspell language in compose
Alexander Skwar wrote: So sprach Wilhelm Wienemann am Sun, May 20, 2001 at 07:38:53PM +0200: Maybe this will also work for you: macro compose i :set ispell=ispell -T latin1 -p $HOME/.ispell_english macro compose I :set ispell=/path_to_your_aspell\n aspell-american Hmm, I don't understand - what should I put in for 'path_to_your_aspell'? I was looking for a way to give mutt some kind of 'special character', which it would replace by the name of the temporary file. Like (made up): aspell -d deutsch -x -c $1 And when this is executed, mutt would run: aspell -d deutsch -x -c /home/askwar/tmp/mutt-teich-1928-2 so, it would replace '$1' by '/home/askwar/tmp/mutt-teich-1928-2', if '/home/askwar/tmp/mutt-teich-1928-2' is the name of the temporary file with the message body. You shouldn't need to do that. Mutt should call whatever you specify by the $ispell variable with the -x switch and the temporary file name on the command line for you. -- Linux: The Choice of the GNU Generation
Re: Enabling a 2nd aspell language in compose
Hello Alexander! On Sun, 20 May 2001, Alexander Skwar wrote: So sprach Wilhelm Wienemann am Sun, May 20, 2001 at 07:38:53PM +0200: Maybe this will also work for you: macro compose i :set ispell=ispell -T latin1 -p $HOME/.ispell_english ^^^ macro compose I :set ispell=/path_to_your_aspell\n aspell-american ~~~ Hmm, I don't understand - what should I put in for 'path_to_your_aspell'? I was looking for a way to give mutt some kind of 'special character', which it would replace by the name of the temporary file. Like (made up): Sorry, but I will repeat were you was asking for: --- cut here - In addition to the predefined 'i' keybinding for invoking ispell with ^^^ ^^^ the default language, I'd like to add a 'I' keybinding, which should invoke aspell with another language (american). --- cut here - ...and now look at my suggestion above. You are be able to copy paste it to your ~/.mutt/keybind file. Note that you have to change the path to your 'aspell' binary file. Then you can use the 'i' key to use 'ispell' and the 'I' key to use aspell. bye - Wilhelm -- ._. Wilhelm Wienemann [EMAIL PROTECTED] / _,\ | (_./ Debian GNU/Linux Version 2.2 Potato \, To learn more visit = http://www.debian.org/