* Gnus posting charsets
@ 2006-06-06 9:06 codebuger
2006-06-06 12:52 ` Katsumi Yamaoka
0 siblings, 1 reply; 6+ messages in thread
From: codebuger @ 2006-06-06 9:06 UTC (permalink / raw)
Good day, All:
I have emacs 22.0.50 from cvs (gentoo ebuild) and gnus version 5.11.
So, my question:
I read some news groups in koi8-r (fido7), some in iso-8859-1 (comp,
...) and so on. How to teach gnus send messages in different encodings?
I probe gnus-group-posting-charset-alist and other, that works in emacs
21 but not in 22.
If I do:
(setq mm-coding-system-priorities '(iso-8859-1 koi8-r utf-8))
emacs sends messages in koi8-r when can encode, if no - sends in utf-8.
But I like something like this:
(setq gnus-group-posting-charset-alist '((".*catap.*" utf-8 (utf-8))
(".*fido7.*" koi8-r (koi8-r))))
Can anybody to help me? Thanks.
With best regards, Evgeniy Zamriy.
P.S.: Sorry, my english isn't good. :-(
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Gnus posting charsets
2006-06-06 9:06 Gnus posting charsets codebuger
@ 2006-06-06 12:52 ` Katsumi Yamaoka
2006-06-07 14:41 ` codebuger
0 siblings, 1 reply; 6+ messages in thread
From: Katsumi Yamaoka @ 2006-06-06 12:52 UTC (permalink / raw)
Well, I might be mistaken, so I thank anyone who corrects me.
>>>>> In <1149584781.421939.250360@i39g2000cwa.googlegroups.com>
>>>>> codebuger@gmail.com wrote:
> Good day, All:
> I have emacs 22.0.50 from cvs (gentoo ebuild) and gnus version 5.11.
> So, my question:
> I read some news groups in koi8-r (fido7), some in iso-8859-1 (comp,
> ...) and so on. How to teach gnus send messages in different encodings?
I think the best way is to make `mm-coding-system-priorities' a
group parameter and have a value per group. For example:
--8<---------------cut here---------------start------------->8---
;; Set the default value of `mm-coding-system-priorities'.
(eval-after-load "gnus-sum"
'(add-to-list
'gnus-newsgroup-variables
'(mm-coding-system-priorities
. '(iso-8859-1 koi8-r utf-8))))
;; Prefer `koi8-r' in the fido7 hierarchy.
(add-to-list
'gnus-parameters
'("\\`fido7\\."
(mm-coding-system-priorities '(koi8-r iso-8859-1 utf-8))))
;; Prefer `utf-8' in the catap hierarchy.
(add-to-list
'gnus-parameters
'("\\`catap\\."
(mm-coding-system-priorities '(utf-8 iso-8859-1))))
--8<---------------cut here---------------end--------------->8---
> I probe gnus-group-posting-charset-alist and other, that works in emacs
> 21 but not in 22.
I cannot recall how it behaved in the past, though. Now it
decides whether to MIME-encode non-ASCII text in a message
header, and whether to use the 8bit encoding (which appears in
the Content-Transfer-Encoding header) in a message body. See
the documentation of `gnus-group-posting-charset-alist' for
details.
> If I do:
> (setq mm-coding-system-priorities '(iso-8859-1 koi8-r utf-8))
> emacs sends messages in koi8-r when can encode, if no - sends in utf-8.
> But I like something like this:
> (setq gnus-group-posting-charset-alist '((".*catap.*" utf-8 (utf-8))
> (".*fido7.*" koi8-r (koi8-r))))
`gnus-group-posting-charset-alist' contains the element for the
fido7 hierarchy by default. Therefore, what you need to add
will be the following:
--8<---------------cut here---------------start------------->8---
(eval-after-load "gnus-msg"
'(add-to-list
'gnus-group-posting-charset-alist
'("^catap\\.[^,]*\\(,[ \t\n]*catap\\.[^,]*\\)*$" utf-8 (utf-8))))
--8<---------------cut here---------------end--------------->8---
> Can anybody to help me? Thanks.
> With best regards, Evgeniy Zamriy.
> P.S.: Sorry, my english isn't good. :-(
Me too. ;-)
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Gnus posting charsets
2006-06-06 12:52 ` Katsumi Yamaoka
@ 2006-06-07 14:41 ` codebuger
2006-06-08 1:29 ` Katsumi Yamaoka
0 siblings, 1 reply; 6+ messages in thread
From: codebuger @ 2006-06-07 14:41 UTC (permalink / raw)
Good day, All:
Katsumi Yamaoka:
Thank you, but it doesn't work for me :(
With best regards, Evgeniy Zamriy.
P.S.: Sorry, my english isn't good. :-(
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Gnus posting charsets
2006-06-07 14:41 ` codebuger
@ 2006-06-08 1:29 ` Katsumi Yamaoka
2006-06-09 8:28 ` Ivan Boldyrev
[not found] ` <mailman.2787.1149843395.9609.info-gnus-english@gnu.org>
0 siblings, 2 replies; 6+ messages in thread
From: Katsumi Yamaoka @ 2006-06-08 1:29 UTC (permalink / raw)
[-- Attachment #1: Type: text/plain, Size: 1761 bytes --]
>>>>> In <1149691274.093917.171800@i39g2000cwa.googlegroups.com>
>>>>> codebuger@gmail.com wrote:
> Thank you, but it doesn't work for me :(
Hmm, how is your message encoded? I guess the reason the
encoding failed is one of them:
1. You hadn't opened the summary buffer of the group to which
you were about to post a message then. Note that the
following group parameter is effective only when the summary
buffer of a fido7 newsgroup is opened or just after closing
that summary buffer, for instance.
--8<---------------cut here---------------start------------->8---
;; Prefer `koi8-r' in the fido7 hierarchy.
(add-to-list
'gnus-parameters
'("\\`fido7\\."
(mm-coding-system-priorities '(koi8-r iso-8859-1 utf-8))))
--8<---------------cut here---------------end--------------->8---
2. If a message contains Russian text and Ukrainian text, though
it is unlikely, it cannot be encoded with the koi8-r charset.
3. You crossposted a message to groups including groups which
weren't specified by `gnus-group-posting-charset-alist'.
I attached a message that I've posted to the fido7.testing group
with the following configuration in my ~/.gnus.el file:
--8<---------------cut here---------------start------------->8---
;; Set the default value of `mm-coding-system-priorities' which is
;; suitable for the Japanese language environment.
(eval-after-load "gnus-sum"
'(add-to-list
'gnus-newsgroup-variables
'(mm-coding-system-priorities
. '(iso-8859-1 iso-2022-jp iso-2022-jp-2 shift_jis utf-8))))
;; Prefer `koi8-r' in the fido7 hierarchy.
(add-to-list
'gnus-parameters
'("\\`fido7\\."
(mm-coding-system-priorities '(koi8-r iso-8859-1 utf-8))))
--8<---------------cut here---------------end--------------->8---
[-- Attachment #2: article_fido7.gz --]
[-- Type: application/x-gzip, Size: 493 bytes --]
[-- Attachment #3: Type: text/plain, Size: 161 bytes --]
_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
http://lists.gnu.org/mailman/listinfo/info-gnus-english
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2006-06-10 10:50 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-06-06 9:06 Gnus posting charsets codebuger
2006-06-06 12:52 ` Katsumi Yamaoka
2006-06-07 14:41 ` codebuger
2006-06-08 1:29 ` Katsumi Yamaoka
2006-06-09 8:28 ` Ivan Boldyrev
[not found] ` <mailman.2787.1149843395.9609.info-gnus-english@gnu.org>
2006-06-10 10:50 ` codebuger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).