Article View: news.software.nntp
Article #79634Re: control-archive 1.0.0 released
From: Julien ÉLIE
Date: Sun, 09 Nov 2008 10:29
Date: Sun, 09 Nov 2008 10:29
57 lines
3515 bytes
3515 bytes
Hi Russ,
> Please let me know of any problems or feature requests not already listed
> in the TODO file.
* Also generating control.conf (DNews) and controlperm (C News)?
* Recognition of the new USEPRO checkgroups syntax (of course, when frozen,
with serial numbers and scopes).
[from TODO]
> Incoming control messages should be parsed for a character set and then
> newsgroup descriptions converted to UTF-8.
The problem is that control articles do not always declare their charset...
In case you manage to find something to do that *automatically*, you can
try to compare the results with what I found out *manually* (and which is
perhaps not up-to-date...):
if hierarchy in ['cn', 'han']:
newsgroups_utf8.write(unicode(line, 'gb18030').encode('utf-8'))
elif hierarchy in ['fido7', 'medlux', 'ukr']:
newsgroups_utf8.write(unicode(line, 'cp1251').encode('utf-8'))
elif hierarchy == 'fr':
# Scheduled to be 'iso-8858-15'.
newsgroups_utf8.write(unicode(line, 'cp1252').encode('utf-8'))
elif hierarchy in ['nctu', 'ncu', 'tw'] or group in ['scout.forum.chinese', 'scout.forum.korean']:
newsgroups_utf8.write(unicode(line, 'big5', 'ignore').encode('utf-8'))
elif hierarchy in ['fido']:
newsgroups_utf8.write(line)
else:
newsgroups_utf8.write(unicode(line, 'cp1252').encode('utf-8'))
Especially, please note that scout.* uses mixed encodings in their messages!
big5 for scout.forum.chinese and cp1252 for scout.fr.admin, for instance.
As for tw.* (I think it was for that one), I did not manage to find the right
encoding: one description seems to be bad in big5; that's why I added 'ignore'
to silently drop one character.
> My plan going forward is to make periodic releases including any changes
> that have gone into the control.ctl file or the PGP keys so that people
> have a snapshot of the near-current configuration underlying control.ctl
> to look at if they wish, probably shortly after I've processed a batch of
> changes.
That's great, thanks!
--
Julien ÉLIE
« C'est la première fois que je vois traiter une affaire avec autant de punch ! » (Astérix)
Technical Details
Message-ID:
<gf6e23$3g4$1@news.trigofacile.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!feeder1.news.weretis.net!newsfeeder.dynfx.net!weretis.net!news.trigofacile.com!not-for-mailReferences:
<87myg91m9b.fsf@windlord.stanford.edu>Show Full Headers
Complete Article Headers
Message-ID: <gf6e23$3g4$1@news.trigofacile.com> Subject: Re: control-archive 1.0.0 released Date: Sun, 9 Nov 2008 11:29:19 +0100 From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> References: <87myg91m9b.fsf@windlord.stanford.edu> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!feeder1.news.weretis.net!newsfeeder.dynfx.net!weretis.net!news.trigofacile.com!not-for-mail Newsgroups: news.software.nntp Organization: TrigoFACILE -- http://www.trigofacile.com/ Lines: 57 NNTP-Posting-Host: aaubervilliers-151-1-40-96.w83-112.abo.wanadoo.fr Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 8bit X-Trace: news.trigofacile.com 1226226563 3588 83.112.151.96 (9 Nov 2008 X-Complaints-To: abuse@trigofacile.com NNTP-Posting-Date: Sun, 9 Nov 2008 10:29:23 +0000 (UTC) In-Reply-To: <87myg91m9b.fsf@windlord.stanford.edu> X-MSMail-Priority: Normal X-Newsreader: Microsoft Windows Mail 6.0.6001.18000 X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6001.18049