Article View: news.software.readers
Article #248601Re:  Jeff Relf has set a bad example.
From: Demented Traveler
Date: Tue, 14 Feb 2012 08:13
Date: Tue, 14 Feb 2012 08:13
232 lines
13786 bytes
13786 bytes
On 14/02/2012 2:07 AM, Russ Allbery wrote: > Demented Traveler<detravel@simic.net> writes: >> But considering user searches for message IDs, where are they getting it >> in the first place? Probably by copy and paste from someplace (perhaps >> Google Groups). It's likely the already-normalized message ID and if >> it's not it'll be the original as injected, which will normalize to the >> same value. > > You're assuming that copy and paste preserves the Unicode normalization > form. Are you sure this is a valid assumption? Copy and paste, properly implemented, should just be a bit-exact copy operation. > I don't see any reason to assume that your OS copy/paste, with a > Unicode-aware OS (and that's nearly all of them these days), is going to > do an octet-by-octet copy of the raw octets. Among other things, it's > quite plausible that the OS or software program will have changed > normalization forms for display, to match what's expected by the font in > use for example, so what's displayed (and hence copied) may not be the > original form. That would be very broken behavior. If I select a block of text and hit copy, I expect what's copied to be *the text as it exists in the document*, not something that's been massaged for display. Copy is supposed to act on the underlying document text, not on what happens to be on the screen. I certainly don't expect that if I select some text that is partly overlapped by the mouse pointer that a chunk of mouse pointer will get copied with it. :) Nor should anything else that has to do with the text's display, rather than the document content itself, influence it. If I set a Notepad to a 24-point font size and copy from it and paste into a Notepad set to 12-point, I expect 12-point text coming out, not 24-point. (If it's word processor text that has attributes and formatting, pasted to another word processor, then that's another matter. The point size is then a feature of the text as it exists in the application's document model, rather than a display setting that is separate from the document model. So it should be part of what's copied.) In MVC terminology, copy and paste should act on the model, not on the view, and copy in particular should get its data from the model, not the view. > You are, like most people who see gatewaying and think it's something > exotic and rare, neglecting newsgroup moderation. :) I didn't say it was "exotic and rare"; I said it occurs mainly at the edges, and mainly is not two-way-automated (i.e. an article gets injected and when it propagates to host X, it gets gatewayed to medium Y, say email, sent to host Z, and then gatewayed back to usenet without any human intervention). In particular, newsgroup moderation makes a round trip through email but with a manual click on an "approve" button by a moderator along the way. > frequently passes through the most stunning array of ad hoc scripts, > bizarre mail clients, and weird file handling that you have ever seen in > your life. Moderators use an amazing variety of bailing wire and chewing > gum to run their groups. Perhaps they shouldn't. I'd guess they're sticking to what they're used to rather than upgrading to more modern stuff that doesn't need to be jerry-rigged. The main complication I can foresee is if they've built an elaborate antispam filter along the way to autoreject the most obvious and commonplace junk. Even if they discarded that it wouldn't take them long to train a modern Bayesian spam filter on that, and if they used some mail services (notably including gmail) they could even take advantage of a pre-existing Bayesian filter that's kept up to date by a whole raft of mail users. >> And nothing stops this being done for netnews too. The only viable >> alternative may be to reject such message IDs outright and put up with >> Relf's whining. :) > > What gets me is that message IDs are just a dumb place to do this work. > They're much more critical than other parts of the message, and Unicode in > message IDs serves very little useful practical purpose. That's back to the not-user-exposed argument. Again, the less user-exposed message-IDs are, the less justification there is for anything more complicated than dropping problematic message-IDs, but also the less potential client-interaction issues (such as users pasting them into a search) matter. And do keep in mind that it would be mainly flattened-to-ASCII message-IDs that these users would be copying and pasting and that would be entering those ad-hoc, ancient, jerry-rigged moderation systems. Moderators could, in particular, just tack an initial step onto their scripts that flattened the message-ID. Whereas, making INN reject all non-ASCII message-IDs has *no effect whatsoever* on your moderation worries, since the article with the wonky message-ID will go directly to the moderator's possibly-broken scripts without ever passing through INN. It will cause all the trouble it could cause there *before* potentially being injected to or passing through an INN server that could prevent it using *either* normalization *or* blocking! Every moderator that might see an incoming message with a non-ASCII message-ID already has to do something (and each separately from the other, it seems, as well as separately from news servers) about it, such as auto-reject or normalize in some manner. > If we're going to go to the work of allowing Unicode, let's do > newsgroup names! They're actually user-visible, they're actively > buggy at the moment for our non-English-speaking users who have words > they want to use in newsgroup names that don't collapse into ASCII, > and the payoff is much more satisfying. And they pose many of the > same issues. No objection there. > Message IDs are the last thing I'd try to change. Unlike every other > place one would look to add Unicode support, being ASCII-only isn't really > hurting message IDs in any appreciable way. I was, actually, mostly playing the devil's advocate. I'm all for blocking Relf's malformed-by-current-standards posts at the source. :) >> Blame the dumbass that decided to allow multiple equivalent ways to >> specify the same character in the first place. > > There are also a lot of politics involved in character sets. "Politics" is a synonym for "dumbassery", so my point stands. ;) > I followed Unicode development for a long time, and I can assure you that > the people who worked out the compromises and details of the current > standard aren't dumbasses. That's the funny thing about design-by-committee: you can get dumbassery out even if none of the committee members, taken alone, is a dumbass. And you usually do. ;) > They were operating under a bunch of constraints, though Of which the worst two were, no doubt, trying to be back-compatible with ISO 8859-1 and maybe other extended charsets and not just ASCII, plus space constraints (so just giving every combination of base glyph + accent might quickly run out of room). Without the latter, just having every distinct glyph have its own code would be simple and work, and without the former having accents specified by a separate code would work. > (and there's some committee stupidity, as there is in any large cooperative > effort involving humans). This is why a project with a clearly-in-charge BD (like Linus Torvalds and the Linux kernel, Rich Hickey and Clojure, etc.) is generally superior to either a free-for-all or DBC. > (It would be simpler in a lot of ways, and elegant, if the only accent > marks were combining marks.) I believe I already said that. Having the whole "combining marks" complication missing also would have been, but I guess they were worried about the charset growing too big. > And they were also trying to solve a bunch > of other difficult problems at the same time (such as Arabic script, which > simply requires reasonable support for combining characters). One clever solution if you had the codespace for a huge charset would have been to structure the Arabic section in such a manner that you could treat the code point as an X-bit record with fields and read off the combining characters that way. That would give the desirable property "each distinct glyph has exactly one code" and still allow shortcuts in fonts and display code based on decomposing points in that part of the codespace into those fields and using the separate field values to find and combine the appropriate graphic pieces to assemble the displayed glyph. If we had it to do over again ... But we don't. > You need more than 256 different combining characters, because they're not > just used for accent marks such as in the languages that you're probably > thinking of. Take a look at Arabic; it's really rather interesting. The > comment about not many valid combinations of accents also makes me think > that you've never seen written Vietnamese. :) My focus was on European languages, yes. But I also said "accents" specifically, and not other decomposable glyphs. Korean has a consonant-vowel pair encoded by combining two symbols within one character's worth of space, as I recall. Something like that might be best represented with a single character for each component, and smart display software that knows to combine a Korean consonant symbol and following Korean vowel symbol into a single glyph according to whatever rules. Note the general pattern: if I'd designed this, I'd have made a clear distinction between bit-pattern representation and display representation and expected fairly smart font rendering engines to do the job. The combining character mechanism seems to do this anyway. But the lack of a single canonical representation for a particular combination is a problem. One I think was avoidable, back when this was still being designed. Another compromise they could have used. The main charsets they wanted to stay back-compatible with were the European accented ones, which have just a smattering of specific accented glyphs rather than an explosion of combination characters. So, they could have had all European character codes been integrated (no combining characters) but used combining characters (with no equivalent integrated-version characters) in other language spaces, including Arabic, Korean, and Vietnamese. Why they decided to throw in European-accent combining characters as well is anybody's guess. Maybe someone thought it was less elegant to lack them but use combining characters for similar features in other languages. I would think it's less elegant still to have multiple equivalent representations of single strings, and encourage things other than bit-exact copying when moving data around as well as more complicated than "are they bit-identical?" case-sensitive equality tests. (Case-insensitive would always have been a bugabear, but is unimportant for things like newsgroup names and message-IDs.) > UTF-32 is something akin to what you are describing, to mention, although > it doesn't divide up the character space in the way that you describe and > it of course still has combining marks. Yes, I know. > But you can't use UTF-32 with any > legacy protocol because all those 0 bytes look like nul characters and > break everything written with C string handling. Hence UTF-8. We'd probably have still had something like UTF-8. But UTF-8 would have kept the "one representation, one string" correspondence with a "smarter UTF-32" backing it. (Well, there's the UTF-8 and the UTF-32 bit-patterns, but if you assume the input is always UTF-8 there's only one representation. Or you can just unpack to UTF-32 in-memory before any comparisons and if UTF-32 has the single-representation property then that also works on the non-legacy systems. If the legacy systems have to compare, then equal UTF-32 byte sequences must also produce equal UTF-8 byte sequences.)
Technical Details
Message-ID:
<jhd53e$hv8$1@speranza.aioe.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.free.newsservers.20150605.mbox.gz!border1.nntp.ams3.giganews.com!border1.nntp.ams2.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!rt.uk.eu.org!aioe.org!.POSTED!not-for-mailReferences:
<slrnjikokv.3g8.steve@news.mixmin.net> <jhb1r2$fqd$1@news.trigofacile.com> <Jeff-Relf.Me@2012_Feb.13^11.35.am> <jhbr4j$ddu$1@news.trigofacile.com> <jhcb00$sks$1@pcls6.std.com> <Jeff-Relf.Me@2012_Feb.13^5.53.pm> <Z@Z> <87lio6m2q9.fsf@windlord.stanford.edu> <jhcqa9$s64$1@speranza.aioe.org> <87hayum1kq.fsf@windlord.stanford.edu> <jhcrdq$ube$1@speranza.aioe.org> <87d39im0fd.fsf@windlord.stanford.edu> <jhcukh$4fu$1@speranza.aioe.org> <87zkcllwpq.fsf@windlord.stanford.edu>Show Full Headers
Complete Article Headers
Message-ID: <jhd53e$hv8$1@speranza.aioe.org>
Subject: Re:  Jeff Relf has set a bad example.
Date: Tue, 14 Feb 2012 03:13:32 -0500
From: Demented Traveler <detravel@simic.net>
References: <slrnjikokv.3g8.steve@news.mixmin.net> <jhb1r2$fqd$1@news.trigofacile.com> <Jeff-Relf.Me@2012_Feb.13^11.35.am> <jhbr4j$ddu$1@news.trigofacile.com> <jhcb00$sks$1@pcls6.std.com> <Jeff-Relf.Me@2012_Feb.13^5.53.pm> <Z@Z> <87lio6m2q9.fsf@windlord.stanford.edu> <jhcqa9$s64$1@speranza.aioe.org> <87hayum1kq.fsf@windlord.stanford.edu> <jhcrdq$ube$1@speranza.aioe.org> <87d39im0fd.fsf@windlord.stanford.edu> <jhcukh$4fu$1@speranza.aioe.org> <87zkcllwpq.fsf@windlord.stanford.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.free.newsservers.20150605.mbox.gz!border1.nntp.ams3.giganews.com!border1.nntp.ams2.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!rt.uk.eu.org!aioe.org!.POSTED!not-for-mail
Newsgroups: news.software.nntp,alt.free.newsservers,news.software.readers
Organization: Simics
Lines: 232
NNTP-Posting-Host: pey7czwR0gmv4Sv993NaqA.user.speranza.aioe.org
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Complaints-To: abuse@aioe.org
User-Agent: tin/1.6.2-20030910 ("Pabbay") (UNIX)
(CYGWIN_NT-6.0/1.5.22(0.156/4/2) (i686)) Hamster/2.0.2.2
X-Notice: Filtered by postfilter v. 0.8.2
X-Original-Bytes: 13590