Article View: news.software.nntp
Article #84481Re: ? Jeff Relf has set a bad example.
From: Demented Traveler
Date: Wed, 15 Feb 2012 05:18
Date: Wed, 15 Feb 2012 05:18
81 lines
5495 bytes
5495 bytes
On 14/02/2012 11:28 AM, Adam H. Kerman wrote: > Demented Traveler<detravel@simic.net> wrote: >> 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. > > Here's a straightforward example, seamus, of why that's not necessarily so: Who's this "seamus"? > A user sees text on a Web page, say a URL that's not a hyperlink, capable of > being displayed as plain old ASCII if it were a plain text document. Certain > characters allowed or required to be in URLs must be encoded on Web pages. > It's not going to be obvious to the user that the glyph displayed of > such characters isn't using the character's code, but is further encoded. Did you read any of what I said about document models? In this case the document model is not the same as either the display representation or the encoded form it's sent over the network. The document model is something like a tree: a web page contains a title, which is some string, and a body, which is a sequence of headings, paragraphs, images, etc.; and embedded in one paragraph is a link, and a link has a URL, and, and, etc. The paragraph text is what it is. It may be encoded (e.g. > to >) for transmission and storage as HTML but in the conceptual model that's just a greater-than sign and tags like </h1> are out-of-band things, existing outside of the paragraph text, and only represented by ascii "</h1>" when serialized for storage and transport. The same goes for the target of a clickable link. Put another way, we have serialized form <----> document model <----> displayed form and you're objecting to "don't copy from the displayed form instead of from the document model" by conflating that with the distinct proposition "copy from the serialized form". > Things are ever more complicated if it's an 8-bit character since copy-n-paste > operations have no way of telling the document being pasted into what > character set was in use in the originating document. A properly designed OS would likely treat all text as UTF-8, UTF-16, UTF-32, or some other thing during such transport, and would encourage application developers to use full Unicode text rather than specific encodings in document models, whatever was being used for serialization when the application needed to store files or communicate over the network. Failing that, the application would have to convert to Unicode on copy, and from Unicode on paste. Put another way, "the system clipboard" should be treated as akin to another network protocol, and probably one that specifies UTF-8. If no canonical encoding like that, then the alternative would be for it to carry an analogue of the Content-Encoding: header common to various kinds of network traffic, which applications would need to set when copying and deal with when pasting. Of course, right now there isn't a properly designed OS. We have Windows, which you're implying copies and pastes octet streams that can be interpreted differently by different applications, and then we have the Unixen, most of which don't even have a system clipboard. (MacOS is the big question mark here. There are also clipboards in most of the popular Linux window systems/managers, but I'm not sure how they work, and they only work with graphical apps. You couldn't copy from KWrite and paste into an emacs running in a terminal, not using emacs's own yank command. The terminal, if graphical, might support a "paste" that just simulates you typing into emacs whatever was in the clipboard, but there's probably all kinds of char. enc. headaches in that!)
Technical Details
Message-ID:
<jhff7v$98k$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!border2.nntp.ams3.giganews.com!border2.nntp.ams2.giganews.com!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!news.mixmin.net!aioe.org!.POSTED!not-for-mailReferences:
<slrnjikokv.3g8.steve@news.mixmin.net> <jhcukh$4fu$1@speranza.aioe.org> <87zkcllwpq.fsf@windlord.stanford.edu> <jhd53e$hv8$1@speranza.aioe.org> <jhe233$bil$4@news.albasani.net>Show Full Headers
Complete Article Headers
Message-ID: <jhff7v$98k$1@speranza.aioe.org>
Subject: Re: ? Jeff Relf has set a bad example.
Date: Wed, 15 Feb 2012 00:18:52 -0500
From: Demented Traveler <detravel@simic.net>
References: <slrnjikokv.3g8.steve@news.mixmin.net> <jhcukh$4fu$1@speranza.aioe.org> <87zkcllwpq.fsf@windlord.stanford.edu> <jhd53e$hv8$1@speranza.aioe.org> <jhe233$bil$4@news.albasani.net>
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!border2.nntp.ams3.giganews.com!border2.nntp.ams2.giganews.com!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!news.mixmin.net!aioe.org!.POSTED!not-for-mail
Newsgroups: news.software.nntp,alt.free.newsservers,news.software.readers
Organization: Simics
Lines: 81
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: 5379