From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Greg Hill Newsgroups: gmane.emacs.help Subject: Re: line drawing characters Date: Fri, 29 Oct 2004 15:49:30 -0700 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <2uab8bF270qltU1@uni-berlin.de> <2uae8jF27urf2U1@uni-berlin.de> <2ucvheF29ovgrU1@uni-berlin.de> <2udfo4F28v06rU1@uni-berlin.de> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" ; format="flowed" X-Trace: sea.gmane.org 1099090215 14313 80.91.229.6 (29 Oct 2004 22:50:15 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 29 Oct 2004 22:50:15 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Oct 30 00:50:08 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CNfZQ-00083K-00 for ; Sat, 30 Oct 2004 00:50:08 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CNfhF-0007Et-JQ for geh-help-gnu-emacs@m.gmane.org; Fri, 29 Oct 2004 18:58:13 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CNfh7-0007EP-4K for help-gnu-emacs@gnu.org; Fri, 29 Oct 2004 18:58:05 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CNfh6-0007Dm-Hq for help-gnu-emacs@gnu.org; Fri, 29 Oct 2004 18:58:04 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CNfh6-0007Dj-Fn for help-gnu-emacs@gnu.org; Fri, 29 Oct 2004 18:58:04 -0400 Original-Received: from [207.158.54.5] (helo=renfield.synergymicro.com) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1CNfYv-00077k-Gt for help-gnu-emacs@gnu.org; Fri, 29 Oct 2004 18:49:37 -0400 Original-Received: from synergy.san.synergymicro.com (synergy.san.synergymicro.com [10.1.2.12]) by renfield.synergymicro.com (8.12.10/8.12.10) with ESMTP id i9TMtumQ001021 for ; Fri, 29 Oct 2004 15:55:56 -0700 Original-Received: from [10.1.5.75] ([10.1.5.75]) by synergy.san.synergymicro.com (8.12.10/8.12.10) with ESMTP id i9TMmIWx006213 for ; Fri, 29 Oct 2004 15:48:19 -0700 In-Reply-To: <2udfo4F28v06rU1@uni-berlin.de> Original-To: help-gnu-emacs@gnu.org X-CanItPRO-Stream: default X-Canit-Stats-ID: 384475 - f0cd2a78ea91 X-Scanned-By: CanIt (www . canit . ca) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:21610 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:21610 At 6:04 PM -0600 10/28/04, Kevin Rodgers wrote: >Greg Hill wrote: >> I am using emacs (GNU Emacs 21.2.2 (sparc-sun-solaris2.7, X toolkit)) on >> a unix system under X. > >Not as good as Emacs 21.3 or 21.3.50 (CVS), but should be recent enuf. > >> I would like to create some simple line drawings by mixing line-drawing >> characters along with ordinary text. Surely the One True Editor is >> capable of that, but I haven't been able to glean any useful information >> on how to proceed from the Gnu Emacs Manual (Fifteenth Edition), the Gnu >> Emacs Lisp Reference Manual, or anything I could find doing a Goolge >> search. > >1. These line drawing characters must belong to some character set > e.g. Unicode http://www.unicode.org/charts/PDF/U2500.pdf > >2. Once you've identified the character set you want to use, you need to > figure out which Emacs coding system supports it. Then you specify > that coding system with `C-x RET c' when you edit your buffer/file. > >3. Finally, you'll need how to input those characters while you're > editing. If your keyboard can enter them directly, `C-x RET k' > should handle it; but you may need to install LEIM and rebuild Emacs > and use `C-\'. Thanks. So far what I have is... 1. It appears as if U2500-2575 contains the glyphs I am after. 2. I switched to a computer that has emacs 21.3.1with leim support. 3. The variable 'charset-list tells me that there is a character set named "mule-unicode-2500-33FF", which sounds like it's probably a pretty good bet. 4. The function 'find-coding-system-for-charsets tells me there is a coding system named "emacs-mule" that can encode characters in both mule-unicode-2500-33FF and ascii. 5. I can use `C-x RET c' to create a new file in a buffer using the emacs-mule coding system. Now, what I can't figure out is: a. How do I find out what character codes correspond to which glyphs? b. How to I get those glyphs to actually appear on my screen? I tried eval-ing the following fragment of code (let ((ic 0)) (while (< ic 10000) (if (char-valid-p ic) (insert-char ic 1)) (setq ic (1+ ic)))) with my "emacs-mule" buffer as my current buffer, and all I get is regular ascii, a lot of glyphs I am not interested in, and a lot of empty boxes which are probably where the glyphs I am interested in should be. Any more tips you can give me will be greatly appreciated. Thanks again. --Greg