[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: IBM extended character set
From: |
Pascal J. Bourguignon |
Subject: |
Re: IBM extended character set |
Date: |
Wed, 08 Dec 2010 15:22:35 -0000 |
User-agent: |
Gnus/5.101 (Gnus v5.10.10) Emacs/23.2 (gnu/linux) |
harry weston <harryweston@btinternet.com> writes:
> I have searched the 'net, but cannot find out how to incorporate
> into emacs the symbols from the IBM extended character set that draw
> boxes of single or double lines. It used to be easy on my old Epson
> dot-matrix printer. My failure to locate it is most likely because I
> don't know exactly what to look for among the ISOs and all
> that. I'll be very grateful for any help your can give,
These characters are in unicode, and emacs 23 uses unicode, so you can
insert them directly. That is, you can bind them to your X keyboard
with xmodmap.
For example, I have in my ~/.xmodmap:
!------------------------------------------------------------
! Numerical Keypad
!------------------------------------------------------------
! Second line:
!keycode 77 = Num_Lock Pointer_EnableKeys
keycode 77 = Num_Lock
keycode 106 = KP_Multiply XF86_ClearGrab
keycode 63 = KP_Divide XF86_Ungrab
keycode 82 = KP_Subtract KP_Subtract 0x1002500 0x1002550
! Third line:
keycode 79 = KP_Home KP_7 0x100250C 0x1002554
keycode 80 = KP_Up KP_8 0x100252C 0x1002566
keycode 81 = KP_Prior KP_9 0x1002510 0x1002557
! Fourth line:
keycode 83 = KP_Left KP_4 0x100251C 0x1002560
keycode 84 = KP_Begin KP_5 0x100253C 0x100256C
keycode 85 = KP_Right KP_6 0x1002524 0x1002563
keycode 86 = KP_Add KP_Add 0x1002502 0x1002551
! Fifth line:
keycode 87 = KP_End KP_1 0x1002514 0x100255A
keycode 88 = KP_Down KP_2 0x1002534 0x1002569
keycode 89 = KP_Next KP_3 0x1002518 0x100255D
! Sixth line:
keycode 90 = KP_Insert KP_0
keycode 91 = KP_Delete KP_Decimal
keycode 104 = KP_Enter
So I can insert:
┌─┬─┐
│ │ │
├─┼─┤
│ │ │
└─┴─┘
╔═╦═╗
║ ║ ║
╠═╬═╣
║ ║ ║
╚═╩═╝
by typing: Mode_switch KP_1, etc.
Of course, you can also insert these characters directly in emacs:
(insert (string #x250C #x2500 #x2500 #x2500 #x2510 10
#x2502 32 32 32 #x2502 10
#x2514 #x2500 #x2500 #x2500 #x2518 10))
┌───┐
│ │
└───┘
For example, you could bind them to keys.
--
__Pascal Bourguignon__ http://www.informatimago.com/
- Re: IBM extended character set,
Pascal J. Bourguignon <=