From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Eli Zaretskii" Newsgroups: gmane.emacs.devel Subject: Re: Print eight-bit-* characters with ps-print Date: Fri, 17 May 2002 17:21:38 +0300 Sender: emacs-devel-admin@gnu.org Message-ID: <3277-Fri17May2002172137+0300-eliz@is.elta.co.il> References: <200205130623.PAA06806@etlken.m17n.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: localhost.gmane.org X-Trace: main.gmane.org 1021645440 19062 127.0.0.1 (17 May 2002 14:24:00 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 17 May 2002 14:24:00 +0000 (UTC) Cc: emacs-devel@gnu.org, vinicius@cpqd.com.br Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 178ieG-0004xL-00 for ; Fri, 17 May 2002 16:24:00 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 178iqn-0003L3-00 for ; Fri, 17 May 2002 16:36:57 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 178ieW-0000Td-00; Fri, 17 May 2002 10:24:16 -0400 Original-Received: from freya.inter.net.il ([192.114.186.14]) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 178idX-0000SH-00 for ; Fri, 17 May 2002 10:23:16 -0400 Original-Received: from Zaretsky ([80.230.2.40]) by freya.inter.net.il (Mirapoint Messaging Server MOS 2.9.3.2) with ESMTP id BKX45060; Fri, 17 May 2002 17:23:02 +0300 (IDT) Original-To: handa@etl.go.jp X-Mailer: emacs 21.2.50 (via feedmail 8 I) and Blat ver 1.8.9 In-Reply-To: <200205130623.PAA06806@etlken.m17n.org> (message from Kenichi Handa on Mon, 13 May 2002 15:23:29 +0900 (JST)) Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.9 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:4060 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:4060 > Date: Mon, 13 May 2002 15:23:29 +0900 (JST) > From: Kenichi Handa > > Please try to add more delq for eight-bit-* here, and set > ps-print-control-characters to `8-bit' (the default is > `8-bit-control'). Then all eight-bit-* should be printed in > octal form. Isn't it what you want? Well, having eight-bit-* characters printed as octal escapes is less than optimal. The code I posted does slightly better: it prints them in the default font built into the PostScript printer (usually Latin-1). As I said, this is not 100% correct, but in many cases it matches what you see on the screen. And it certainly is nicer than the octal escapes. > > (Btw, it looks like iso-safe can safely encode eight-bit-* characters. > > If that's true, I think we should update its doc string. Handa-san, > > can you please comment on this?) > > This is a difficult part. Currently, as far as I remember > all coding-systems encode them as is. They are treated as > special bytes that should be written out as is. I'm not > sure whether or not we should make iso-safe as an exception. > Instead, how about documenting clearly that there's a super > rule that any coding system encodes eight-bit-* as is? I will look for a proper place, thanks.