Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder1.xlned.com!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.007 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'subject:Python': 0.06; 'anymore.': 0.09; 'dan': 0.09; 'formatting': 0.09; 'text"': 0.09; 'cc:addr:python-list': 0.11; '"rich': 0.16; '<div': 0.16; '(actually': 0.16; 'cc:name:python list': 0.16; 'formerly': 0.16; 'guess.': 0.16; 'guessing': 0.16; 'happily': 0.16; 'html)': 0.16; 'maintainers': 0.16; 'ought': 0.16; 'slight': 0.16; 'text"': 0.16; 'text?': 0.16; 'to:addr:pearwood.info': 0.16; 'to:addr:steve+comp.lang.python': 0.16; "to:name:steven d'aprano": 0.16; 'index': 0.16; 'so.': 0.16; 'wrote:': 0.18; 'wed,': 0.18; 'typing': 0.19; 'example': 0.22; 'cc:addr:python.org': 0.22; 'please?': 0.24; 'text.': 0.24; '(or': 0.24; 'cc:2**0': 0.24; "i've": 0.25; 'options': 0.25; '>': 0.26; 'posts': 0.26; 'this:': 0.26; 'post': 0.26; 'header:In-Reply-To:1': 0.27; 'wondering': 0.29; 'subject:) ': 0.29; 'characters': 0.30; 'dec': 0.30; 'message-id:@mail.gmail.com': 0.30; "i'm": 0.30; 'posting': 0.31; '"remove': 0.31; "d'aprano": 0.31; 'so-called': 0.31; 'steven': 0.31; 'file': 0.32; 'this.': 0.32; 'skip:c 30': 0.32; 'quite': 0.32; 'text': 0.33; 'guess': 0.33; 'plain': 0.33; 'message.': 0.35; 'subject: (': 0.35; 'except': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'really': 0.36; 'doing': 0.36; "didn't": 0.36; 'subject:?': 0.36; 'turn': 0.37; 'two': 0.37; 'button': 0.38; 'skip:& 10': 0.38; 'thank': 0.38; 'gmail': 0.38; 'rich': 0.38; 'pm,': 0.38; 'that,': 0.38; 'does': 0.39; 'realize': 0.39; 'even': 0.60; 'read': 0.60; 'games,': 0.60; 'most': 0.60; 'hope': 0.61; 'forum': 0.61; 'you.': 0.62; 'skip:n 10': 0.64; 'e-mails': 0.65; 'here': 0.66; 'anything.': 0.68; 'skip:r 30': 0.69; 'bulk': 0.74; 'message.\xa0': 0.84; 'noise': 0.84; 'rating.': 0.84; 'subject:Movie': 0.84; 'confidence': 0.95; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=TVPd5RlXMyiKdm53oAbazPOnFe7Q0YLaJOrhUFYgik4=; b=G8E8d0g+T0Hb5PrXM6IFIjjv8A5sj/LvJhoacUG+urD9NLkHKggnyBVxi5LPK0ByL1 EIykp6BEFNlKfIej9AzVfgqFBkXEQ3Wjs/A71/6ZfiP2gOInbTWjgaoIa2VUPi5qovi6 MN/6aTLQAZ9XJJLHC8a7p1RcFqkq964XMZVcVL/YaKU5VIYpKvSeSQDU1QSbWEeM36Y+ CGcm7MUkN+JcsfhYisIXwE632Z57kzsgx6dSJEXs0Vx0b0TNzdhjjMZVeRVLTzrG7hmO NQ/nsvJMCmsE/7RL4qGdkCSnYYq1pLS/ntbYmNyvt0kux9oiR3160hyzB91dnwxEHKDX 4F3w== MIME-Version: 1.0 X-Received: by 10.194.78.77 with SMTP id z13mr3890653wjw.27.1386805184747; Wed, 11 Dec 2013 15:39:44 -0800 (PST) In-Reply-To: <52a8f410$0$29992$c3e8da3$5496439d@news.astraweb.com> References: <2CDEC558-B896-402C-8F70-A3089A5EC93D@gmail.com> <52a8f410$0$29992$c3e8da3$5496439d@news.astraweb.com> Date: Wed, 11 Dec 2013 15:39:44 -0800 Subject: Re: Movie (MPAA) ratings and Python? From: Dan Stromberg To: "Steven D'Aprano" Content-Type: multipart/alternative; boundary=047d7bfcfc9868dd5c04ed4abe4d Cc: Python List X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 138 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1386805193 news.xs4all.nl 2961 [2001:888:2000:d::a6]:49877 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:61629 --047d7bfcfc9868dd5c04ed4abe4d Content-Type: text/plain; charset=ISO-8859-1 On Wed, Dec 11, 2013 at 3:24 PM, Steven D'Aprano < steve+comp.lang.python@pearwood.info> wrote: > On Wed, 11 Dec 2013 15:07:35 -0800, Dan Stromberg wrote: > > > $ chardet mpaa-ratings-reasons.list > > mpaa-ratings-reasons.list: windows-1255 (confidence: 0.97) > > > > I'm aware that chardet is playing guessing games, though one would hope > > it would guess well most of the time, and give a reasonable confidence > > rating. > > What reason do you have for thinking that Windows-1255 isn't a reasonable > guess? If the bulk of the text is Latin-1 except perhaps for one or two > Hebrew characters (or what chardet thinks are Hebrew characters), it may > actually be a reasonable guess. > I get a traceback if I try to read the file as Windows-1255. I don't get a traceback if I read it as ISO-8859-1. > If it is a poor guess, perhaps you ought to report it to the chardet > maintainers as a good example of a poor guess. > I was considering that, and may do so. I've also been wondering if ISO-8859-1 is just an octet-oriented codec, so it'll read about anything. There are clearly non-7-bit-ASCII characters in the file that look like line noise in an mrxvt. By the way, this forum is a text-only newsgroup and so-called "Rich > Text" (actually HTML) posts are frowned upon because most people don't > appreciate having to read gunk like this: > > >

> class="gmail_quote"> ...
> >
> class="im"> ...
> > If you can, would you please turn off rich text posting when you post > here please? > > Thank you. > Apologies. I didn't realize gmail was doing this. I had thought it would only do so if I used the formatting options in the composer, but perhaps it does so even when just typing text. I formerly used MH; are you using MH? There isn't a lot of e-mail programs that don't do HTML anymore. Even mutt can do HTML with very slight configuration; it's actually quite powerful and ISTR it can do MH folders. I found a "remove formatting" button in gmail's composer, and used it on this message. Does this message look like plain text? I'm not really prepared to give up gmail's quick searching; I used to index my e-mails using pyindex and dovecot, but happily I don't need to anymore. --047d7bfcfc9868dd5c04ed4abe4d Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

= On Wed, Dec 11, 2013 at 3:24 PM, Steven D'Aprano <= s= teve+comp.lang.python@pearwood.info> wrote:
On Wed, 11 Dec 2013 15:07:= 35 -0800, Dan Stromberg wrote:

> =A0$ chardet mpaa-ratings-reasons.list
> mpaa-ratings-reasons.list: windows-1255 (confidence: 0.97)
>
> I'm aware that chardet is playing guessing games, though one would= hope
> it would guess well most of the time, and give a reasonable confidence=
> rating.

What reason do you have for thinking that Windows-1255 isn't a re= asonable
guess? If the bulk of the text is Latin-1 except perhaps for one or two
Hebrew characters (or what chardet thinks are Hebrew characters), it may actually be a reasonable guess.

I get a= traceback if I try to read the file as Windows-1255.=A0 I don't get a = traceback if I read it as ISO-8859-1.
=A0
If it is a poor guess, perhaps you ought to report it to the chardet
maintainers as a good example of a poor guess.
I was c= onsidering that, and may do so.

I've also been wonder= ing if ISO-8859-1 is just an octet-oriented codec, so it'll read about = anything.=A0 There are clearly non-7-bit-ASCII characters in the file that = look like line noise in an mrxvt.

By the way, this forum is a text-only newsgroup and so-called "Rich Text" (actually HTML) posts are frowned upon because most people don&#= 39;t
appreciate having to read gunk like this:

> <div dir=3D"ltr"><br><div class=3D"gmail= _extra"><div
> class=3D"gmail_quote"> ... <br>
> <blockquote class=3D"gmail_quote" style=3D"margin:0p= x 0px 0px
> 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">= ;<div
> class=3D"im"> ... <br></div></div></= div></div>

If you can, would you please turn off rich text posting when you post
here please?

Thank you.
=
Apologies.=A0 I didn't realize gmail was doing this. = =A0 I had thought it would only do so if I used the formatting options in t= he composer, but perhaps it does so even when just typing text.

I formerly used MH; are you using MH?=A0 There isn't a l= ot of e-mail programs that don't do HTML anymore.=A0 Even mutt can do H= TML with very slight configuration; it's actually quite powerful and IS= TR it can do MH folders.

I found a "remove formatting" button in gmail'= s composer, and used it on this message.=A0 Does this message look like pla= in text?

I'm not really prepared to give up gmail'= ;s quick searching; I used to index my e-mails using pyindex and dovecot, b= ut happily I don't need to anymore.

--047d7bfcfc9868dd5c04ed4abe4d--